Closed chtay1 closed 1 year ago
Thanks for raising this issue. Seems the error you mentioned is returned by service API. TF allowed the "sites-deployment" for subresource_names after checked.
Yes, my fault. You actually need to pass the azurerm_windows_web_app.appservice.id not the azurerm_windows_web_app_slot id. If you do that it does work fine.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.5.7
AzureRM Provider Version
3.7.5
Affected Resource(s)/Data Source(s)
azurerm_private_endpoint
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
subresource_names of the type "sites-" should be supported
Actual Behaviour
States it's an invalid subresource name I believe before it tries to call ARM
Steps to Reproduce
No response
Important Factoids
No response
References
In the conceptual overview of Using private endpoints for App Services it references this.
https://learn.microsoft.com/en-us/azure/app-service/overview-private-endpoint#conceptual-overview