Closed tabneib closed 2 years ago
This functionality has been released in v3.0.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.14.4
Affected Resource(s)
azurerm_key_vault_certificate
azurerm_2.57.0
Terraform Configuration Files
Expected Behaviour
On the first run of
terraform apply
, the certificate is created. On the second run ofterraform apply
with no change in between, no resource would be added/updated/replaced.Actual Behaviour
On the first
terraform apply
, the certificate is correctly created. On each subsequentterraform apply
, the certificate is replaced with a new one due to change in thekey_usage
.If the items in
key_usage
are sorted lexicographically, the certificate will not be replaced as expected behavior. azurerm seems to sort the key usages somewhere and do the comparison incorrectly. This is not documented anywhere and also should not be implemented this way.