You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
When created manually, it’s possible to set the CMK for the account storage with the identity type set to "SystemAssigned". However, when attempting to apply the configuration using Terraform, it complains that "user_assigned_identity_id" is required, and the apply action fails. Looking at the JSON of the manually created resource, "user_assigned_identity_id" is an empty string. This suggests that requiring "user_assigned_identity_id" itself is incorrect. The mandatory field should be "key_vault_key_id," not "user_assigned_identity_id."
Actual Behaviour
The key_vault_key_id should be a required parameter, while user_assigned_identity_id should be optional. In this way, it would be possible to assign a CMK when using a SystemAssigned identity via terraform apply.
Steps to Reproduce
terraform apply
Important Factoids
Running in a Azure japnaeast
References
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Community Note
Terraform Version
1.10.1
AzureRM Provider Version
4.14.0
Affected Resource(s)/Data Source(s)
azurerm_storage_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
When created manually, it’s possible to set the CMK for the account storage with the identity type set to "SystemAssigned". However, when attempting to apply the configuration using Terraform, it complains that "user_assigned_identity_id" is required, and the apply action fails. Looking at the JSON of the manually created resource, "user_assigned_identity_id" is an empty string. This suggests that requiring "user_assigned_identity_id" itself is incorrect. The mandatory field should be "key_vault_key_id," not "user_assigned_identity_id."
Actual Behaviour
The key_vault_key_id should be a required parameter, while user_assigned_identity_id should be optional. In this way, it would be possible to assign a CMK when using a SystemAssigned identity via terraform apply.
Steps to Reproduce
Important Factoids
Running in a Azure japnaeast
References
No response
The text was updated successfully, but these errors were encountered: