-
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_data_factory changes and corrupts customer_managed_key_id implicitly #27717
Comments
Hi @pw595 can you please provide more detailed instruction to reproduce the problem. I've tried the following:
I'm stuck at the last step above, I got |
@gerrytan thank you for looking at this issue. Can it be that you have created a key vault with RBAC access policy set up and not access policies (legacy). Did you assign permissions using RBAC (not access policies)? |
@pw595 I think we have the same issue, but with "global_parameter".
We are using 3.89.0 version of azurerm provider and 1.0.0 version of terraform |
@pw595 I can reproduce the problem now after referring to https://learn.microsoft.com/en-us/azure/data-factory/enable-customer-managed-key. I confirm this is a bug in
We will need to create a bugfix PR for this, but meanwhile can you confirm if supplying |
Hello @gerrytan, thank you for looking at this issue again. Since our architecture uses System Assigned Managed Identity as the Identity for our ADF and Access Management, using customer_managed_key_identity_id is not possible for us since UMI does not exist for our legacy ADF instances. When we use a ADF with UMI and Custom Encryption Key then this bug will not show up for us. As you mentioned, using APIs, or Azure Portal this issue does not come up, it is a pure terraform issue. |
Is there an existing issue for this?
Community Note
Terraform Version
1.3.9
AzureRM Provider Version
4.6.0
Affected Resource(s)/Data Source(s)
azurerm_data_factory
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Changing tags in datafactory resource should not corrupt and break terraform code
Actual Behaviour
After tag changes, customer_managed_key_id is changed in the Datafactory resource itself where an extra slash is added. This non intended and non-authorized change corrupts the whole deployment
Steps to Reproduce
In a Datafactory resource that has Key Encription enabled just change the tags (add a new tag) and then terraform apply.
Important Factoids
nothing special, tested with West Eruope and North Europe
References
Not that I have found
The text was updated successfully, but these errors were encountered: