Open danielalvesleandro opened 1 month ago
Could someone please confirm if this is a bug and if it is going to be fixed? It seems that currently there is no way to create multiple custom domains for an API Management instance, even with a dedicated module for it, because of this other issue. It should be fixed as it is possible to create multiple gateway and developer_portal custom domains normally through the Azure Portal, but through Terraform it is not, even using the AZAPI provider.
Is there an existing issue for this?
Community Note
Terraform Version
1.5.4
AzureRM Provider Version
3.114.0
Affected Resource(s)/Data Source(s)
api_management_custom_domain
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
When multiple custom domain names objects are passed to the module it should create multiple custom domain names initiating the calls for the next one when the apim instance is available again to prevent conflicts.
Actual Behaviour
It always starting all the custom domain names in parallel and then just the first one is created and the other(s) fail9s) with a 409 Conflict Error because the APIM instance is in transitioning status. Terraform currently doesn´t support any way of creating instances sequentially using for_each.
Steps to Reproduce
Important Factoids
No response
References
No response