-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_api_management_api_operation_tag creates / overwrites tag instead of just attaching #25098
Comments
In the mean time you can fix it by adding a split function to trim the ;rev=1 api_id = split(";", azurerm_api_management_api.example.id)[0] |
Hello @dennis1f @Corendiel |
The issue is that in a recent version they added the revision number ;rev=1 to the api_id. So until they fix how they will handle that change you can remove the ;rev=1 from the id by using the split function to trim that part. |
@Aujjani So besides the ;rev=1 stuff, I do believe that the behaviour that azurerm_api_management_api_operation_tag tries to create a tag instead of just attaching to an existing tag is a bug. At least it is not consistent with the behaviour of azurerm_api_management_api_tag and should be changed. |
Is there an existing issue for this?
Community Note
Terraform Version
1.7.4
AzureRM Provider Version
3.93.0
Affected Resource(s)/Data Source(s)
azurerm_api_management_api_operation_tag
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
There should be one tag with name "example-tag" which is attached to example api and example api operation.
Actual Behaviour
There is one tag with name "This is already managed by azurerm_api_management_tag.example resource" which is attached to example api and example api operation.
And with next terraform apply the api tag will be replaced again.
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: