On azurerm_container_app adding custom domain, the field certificate_id is required and should not be #24110
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Terraform Version
1.6.2
AzureRM Provider Version
3.76.0
Affected Resource(s)/Data Source(s)
azurerm_container_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Adding "custom domain" with Terraform dot not raise an error that "certificate_id" is required (exporting on JSON VIEW on the Azure Portal is not required).
Actual Behaviour
In Azure, with container app add two custom domains, go to "overview", click on JSON view and you can see the SCHEMA exported for the custom domains have 2 properties "name" and "bindingType".
Although, if you add these "custom domain" with Terraform it will raise and error that "certificate_id" is required but doing it on the Azure platform it is not required.
Steps to Reproduce
In Azure, with container app add two custom domains, go to "overview", click on JSON view and you can see the SCHEMA exported for the custom domains have 2 properties "name" and "bindingType".
Although, if you add these "custom domain" with Terraform it will raise and error that "certificate_id" is required but doing it on the Azure platform it is not required.
Error on terraform adding a custom domain without certificate (only name="subdomain.example.com" and certificate_binding_type="Disabled" filled):
Source on terraform -> terraform-provider-azurerm\internal\services\containerapps\helpers\container_apps.go:
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: