You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Error: can not parse "custom_hostname_binding_id" as App Service Custom Hostname ID: ID contained more segments than required: "/subscriptions/6bb24934-9d49-45e1-bee2-5bc698af3517/resourceGroups/example-resource-group/providers/Microsoft.Web/sites/example/slots/staging/hostNameBindings/example-staging.githubnext.com", map[slots:staging]
Expected Behaviour
managed certficate should have been created
Actual Behaviour
error as above
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
jaked
changed the title
azurerm_app_service_certificate_binding can't parse custom hostname binding IDs for slots
azurerm_app_service_managed_certificate can't parse custom hostname binding IDs for slots
Aug 14, 2024
Is there an existing issue for this?
Community Note
See #4240 (comment)
This is because
azurerm_app_service_managed_certificate
callsvalidate.AppServiceCustomHostnameBindingID
which does not handle slots, seeterraform-provider-azurerm/internal/services/web/app_service_managed_certificate_resource.go
Line 47 in 1b6e07f
terraform-provider-azurerm/internal/services/web/parse/app_service_custom_hostname_binding.go
Line 18 in 1b6e07f
Terraform Version
1.8.1
AzureRM Provider Version
3.106.1
Affected Resource(s)/Data Source(s)
azurerm_app_service_managed_certificate
Terraform Configuration Files
Debug Output/Panic Output
Error: can not parse "custom_hostname_binding_id" as App Service Custom Hostname ID: ID contained more segments than required: "/subscriptions/6bb24934-9d49-45e1-bee2-5bc698af3517/resourceGroups/example-resource-group/providers/Microsoft.Web/sites/example/slots/staging/hostNameBindings/example-staging.githubnext.com", map[slots:staging]
Expected Behaviour
managed certficate should have been created
Actual Behaviour
error as above
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: