Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_synapse_workspace cannot be updated in-place after setting azuread_authentication_only = true #25755

Open
1 task done
ajgagarin opened this issue Apr 25, 2024 · 0 comments

Comments

@ajgagarin
Copy link

ajgagarin commented Apr 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • 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 "+1" or "me too" comments, 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.

Terraform Version

1.5.7

AzureRM Provider Version

3.100.0

Affected Resource(s)/Data Source(s)

azurerm_synapse_workspace

Terraform Configuration Files

resource "azurerm_synapse_workspace" "this" {
  name                                 = "samplesynapse"
  resource_group_name                  = "samplergname"
  managed_resource_group_name          = "samplergname-synapse"
  location                             = "eastus2"
  storage_data_lake_gen2_filesystem_id = azurerm_storage_data_lake_gen2_filesystem.sample.id
  azuread_authentication_only          = true
  aad_admin {
    login     = data.azuread_group.mygroup.display_name
    object_id = data.azuread_group.mygroup.object_id
    tenant_id = data.azurerm_client_config.current.tenant_id
  }

  azure_devops_repo {
      account_name    = "sampledevops"
      branch_name     = "main"
      project_name    = "test"
      repository_name = "repotest"
      root_folder     = "/"
      tenant_id       = data.azurerm_client_config.current.tenant_id
    }
}

Debug Output/Panic Output

Error: updating Synapse Workspace "samplesynapse" (Resource Group "samplergname"): synapse.WorkspacesClient#Update: Failure sending request: StatusCode=400 -- Original Error: Code="ValidationFailed" Message="Workspace request validation failed, check error details for more information" Details=[{"code":"AadOnlyAuthenticationIsEnabled","message":"Azure Active Directory Only Authentication is enabled. Please contact workspace administrator."}]

Expected Behaviour

azurerm_synapse_workspace should be updated successfully

Actual Behaviour

azurerm_synapse_workspace is getting error when updating

Steps to Reproduce

1.) Create azurerm_synapse_workspace with azuread_authentication_only = true
2.) Make some changes on azure_devops_repo block eg. change root_folder to another value
3.) Try to run apply again then you will get an error once terraform tries to update Synapse Workspace

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant