-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Private Endpoint for Web App Slot fails in Azurerm >= 3.108.0 #26557
Comments
Thanks @donjuanmon for raising this issue, I don't see the required field Besides of the required field, have you tried to use app service id as the
Let me know if you have any further questions. |
Hey @xiaxyi, Apologies, I must have removed private_connection_serouce_id when cleaning up extra comments. Here is the full code block I have been using in a web_app_slot module:
I have confirmed this fails on azurerm provider versions 3.108.0 and greater repeatedly. Can you share what version of the provider you are using? |
@donjuanmon I used 3.111.0, but the PE can still be created even if I switched to 3.108.0 Is the failure always happening or intermittently? |
Is there an existing issue for this?
Community Note
Terraform Version
1.8.5
AzureRM Provider Version
>=3.108.0
Affected Resource(s)/Data Source(s)
azurerm_private_endpoint
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
In <=3.107.0, the working solution was to use
subresource_names = ["sites-slotname"]
as pointed out by #17551 and Microsofts own documentation: https://learn.microsoft.com/en-us/azure/app-service/overview-private-endpoint#conceptual-overviewActual Behaviour
In AzureRM >=3.108.0, terraform apply fails with:
Changing subresource_names to singulare
["sites"]
fixes the problem, but I don't see this documented anywhere. Wondering if this was changed with serviceconnector PR?Steps to Reproduce
Use
subresource_names = ["sites-<slot_name>"]
Pin azurerm provider to >=3.108.0 and try to create a Private Endpoint for a web app slot.
Fails with:
Setting
subresource_names = ["sites"]
fixes issue, but this is not documented anywhere.Important Factoids
N/A
References
#17551
https://learn.microsoft.com/en-us/azure/app-service/overview-private-endpoint#conceptual-overview
The text was updated successfully, but these errors were encountered: