-
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_key_vault_key expiration date update triggers force replace when upgrading azurerm provider to 3.74 or higher #24965
Comments
Hi @VeselinaElze , Has the |
Hi @wuxu92 , Even though In our case, several VMs had lost connectivity to their disks when this key was being replaced. I opened a PR here to update this field if the |
It's never empty. I know that removing the expiration date is not an option.
|
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. |
Is there an existing issue for this?
Community Note
We have a KeyVault Key.
The expiration date auto updates every time we deploy. It was never a problem, until we had to upgrade the provider version.
After testing different versions, managed to upgrade up to 3.73 without any issues, but upgrading to 3.74 after that triggers force replacement. for the resource.
Not sure how to tackle this as the vault has purge protection, so replacement fails anyway.
Any ideas why the expiration update would cause a force replacement or what I can do about ... well.. working around it?
Terraform Version
1.5.7
AzureRM Provider Version
3.74.0
Affected Resource(s)/Data Source(s)
azurerm_key_vault_key
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
To update expiration date without recreating the resource
Actual Behaviour
Resource is replaced
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: