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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_synapse_workspace identity issue #25761

Open
1 task done
farwind opened this issue Apr 25, 2024 · 2 comments
Open
1 task done

azurerm_synapse_workspace identity issue #25761

farwind opened this issue Apr 25, 2024 · 2 comments

Comments

@farwind
Copy link

farwind 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

minimal build of synapse workspace based on terraform registry docs.
without identity block since that is marked as optional.

Debug Output/Panic Output

N/A

Expected Behaviour

synapse workspace created

Actual Behaviour

Error: creating Workspace: (Name "synw-cancom-ci-synapse-ytb9-we-test" / Resource Group "rg-cancom-ci-synapse-ytb9-we-test"): synapse.WorkspacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ValidationFailed" Message="Workspace request validation failed, check error details for more information" Details=[{"code":"SystemAssignedManagedIdentityNotSpecified","message":"Workspace creation request should have an identity section with Type = SystemAssigned"}]

│ with module.defaults.azurerm_synapse_workspace.this[0],
│ on ../../main.tf line 54, in resource "azurerm_synapse_workspace" "this":
│ 54: resource "azurerm_synapse_workspace" "this" {

Steps to Reproduce

create resource group, create storage account, in that create data_lake_gen2_filesystem, take all required variables based on the terraform registry and try to spin up synapse workspace.

Important Factoids

no

References

No response

@farwind
Copy link
Author

farwind commented Apr 25, 2024

https://registry.terraform.io/providers/hashicorp/azurerm/3.100.0/docs/resources/synapse_workspace
documentation required parameters do not match criteria for synapse_workspace to be sucesfully built.

@Chambras
Copy link
Contributor

Chambras commented May 8, 2024

@farwind you are right. It failed when using only the required values in the documentation. I added

  identity {
    type = "SystemAssigned"
  }

and it worked. Do not know if it is documentation issue and it needs to say identity block is required or if there is a bug and if the block is not set, it needs to default to SystemAssigned. Most likely it needs to default to SystemAssigned

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

3 participants