-
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
The provider does not update Key Vault Secret tags when there are only tag changes/content type #6222
Comments
@gnlds it seems the latest azurerm provider does not have this problem, could you please upgrade the azurerm and have a try? |
I just tried the 2.9.0 version of the provider and the problem is still present. |
@e1011215 Could you please paste your config snippet ? I am sorry I have tried agian and could not reproduce it. My operation is
execute and then make the modification like below
execute I can see the tags and content_type are correct in the portal, and there is no diff. |
@njuCZ thanks for your support. Please see the following tests and their results;
Another test that includes a user interaction; as you know, when we add a new version for the Key Vault Secret from the Azure Portal it resets tags. When we executed the Terraform after this change we were not able to ADD tags. Side note; we are using refresh parameters. Normally, we are not using the portal but this was just another test and I wanted to let you know. |
@gnlds I am sorry that I have followed your step and still could not reproduce this bug. Neither does my colleague. Could you please give an snippet of the script? |
@njuCZ I apologize, I did not see your question in May was directed at me.
|
This has been released in version 2.26.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.26.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.23
AzureRM 2.2.0
Affected Resource(s)
azurerm_key_vault_secret
Terraform Configuration Files
Terraform Plan Output;
Debug Output
Panic Output
Expected Behavior
The provider should update tags and the content-type without changing the secret's value.
Actual Behavior
The provider just does not update Key Vault Secret tags or content type without any value changes. It's only applying changes when the value changed.
Steps to Reproduce
terraform plan
terraform apply
terraform plan
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: