Open PrestonR opened 6 months ago
Hi @PrestonR thanks for opening this issue. Could you please explain the specific symptoms of Actual Behaviour
and steps to help reproduce/troubleshoot?
Hi Sinbai,
From a Terraform Plan and Apply point of view everything works fine. The actual behavior is how these recent changes broke interaction between resources in Azure. So, here's the detail:
azurerm_api_management_api
resource and link it to a azurerm_api_management_subscription
resource via api_id
on a version prior to v3.89.0azurerm_api_management_api
id export, it forces the azurerm_api_management_subscription
to recreate - as expectedSo, it appears that when the azurerm_api_management_api
is linked to the azurerm_api_management_subscription
when it includes the revision, API keys don't work. I confirmed this by using the workaround above, and the API keys continue to work fine.
This line:
api_id = replace(azurerm_api_management_api.external_api[each.key].id, ";rev=1", "")
Please let me know if you need anymore detail.
Looks like another issue related to #23031
@tombuildsstuff @mbfrahry should that change be rolled back until all of the issues related to the API ID format can be resolved?
Is there an existing issue for this?
Community Note
Terraform Version
1.5.5
AzureRM Provider Version
3.89.0
Affected Resource(s)/Data Source(s)
azurerm_api_management_subscription
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Subscription keys should work for the API as generated.
Actual Behaviour
The API keys throw this error:
Steps to Reproduce
terraform apply
Important Factoids
No response
References
Probably worth noting that we don't use revisions, so this works as a workaround: