-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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_synapse_workspace creation with CMK failing and requires activation #13948
Comments
My configuration is the same as above and getting the same error about activation of workspace. │ Error: updating Synapse Workspace "ab0001-workspace-test" Sql Admin (Resource Group "ab0001-workspace-test"): synapse.WorkspaceAadAdminsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="WorkspaceActivationRequired" Message="Workspace needs to be activated, by adding the managed identity in the KeyVault containing the customer managed key and activating the workspace through the keys subresource." |
@katbyte - can you help us get some traction on this issue? We've raised this with Microsoft through our premium support plan too |
Hi all, I checked this issue, the cause is that aad admin can't be added to a workspace whose cmk is not activated. Would you please try the following configuration? It removes
|
@jamescross91 , do you think the solution provided by ms-henglu could unblock you? If so we may intend to close this issue. |
@mybayern1974 - that works but there's a null pointer exception configuring sql_aad_admin - I see a fix for that has been merged this week pending release is 2.87.0 - hopefully that will fix things |
still failing on 2.87.0 when trying to set sql_aad_admin |
Hi @jamescross91,
You mean still get a null pointer exception or the problem mentioned in this issue? |
The problem mentioned in the issue - NPE is resolved but with the SQL AAD Admin block - it creates the workspace and fails claiming it's inactive |
Got it. Please wait for the same fix as aad_admin block. The PR is #14341 |
Hi @jamescross91 , the fix has been merged and released in https://github.com/hashicorp/terraform-provider-azurerm/releases/tag/v2.90.0, would you please try the latest version? |
@jamescross91 , with assuming the issue reported by you have been fixed and the release post v2.90 could work, I would like to close this issue within the next couple of days if there are no more updates from you. |
@mybayern1974 we can close this - looks to be working - thanks all! |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_synapse_workspace
azurerm_synapse_workspace_key
Terraform Configuration Files
Debug Output
Expected Behaviour
Workspace is created with CMK
Actual Behaviour
Workspace is created, but terraform complains that it's inactive. Re-running terraform results in a resource already exists error
Steps to Reproduce
Run the above
The text was updated successfully, but these errors were encountered: