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

Argument primary_user_assigned_identity is no expected error #15750

Open
krishna007-cloud opened this issue Mar 8, 2022 · 3 comments
Open

Argument primary_user_assigned_identity is no expected error #15750

krishna007-cloud opened this issue Mar 8, 2022 · 3 comments

Comments

@krishna007-cloud
Copy link

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

Terraform (and AzureRM Provider) Version

Terraformv1.1.2 version

Affected Resource(s)

  • "azurerm_machine_learning_workspace"

Terraform Configuration Files

resource "azurerm_machine_learning_workspace" "example" {
name = "example-workspace"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
application_insights_id = azurerm_application_insights.example.id
key_vault_id = azurerm_key_vault.example.id
storage_account_id = azurerm_storage_account.example.id

high_business_impact = true

primary_user_assigned_identity = azurerm_user_assigned_identity.example.id
identity {
type = "UserAssigned"
identity_ids = [
azurerm_user_assigned_identity.example.id,
]
}

encryption {
user_assigned_identity_id = azurerm_user_assigned_identity.example.id
key_vault_id = azurerm_key_vault.example.id
key_id = azurerm_key_vault_key.example.id
}

}

Debug Output

Panic Output

Expected Behaviour

Machine Learning workspace with userassigned identity should get deployed

Actual Behaviour

An Argument named Primary_user_assigned_identity is not expected here.

Steps to Reproduce

Placed the machine learning resource snipped with Primary_user_assigned_identity with the intention to use user assigned identity and erroring as actual behaviour.

  1. terraform apply

Important Factoids

None

References

None

@xuzhang3
Copy link
Contributor

@krisk7129 I cannot reproduce your error. Which provider version you use?

@amalsyahreza
Copy link

Hi, happened to me too.

╷
│ Error: Unsupported argument
│ 
│   on modules/azure_ml/main.tf line 57, in resource "azurerm_machine_learning_workspace" "main":
│   57:   primary_user_assigned_identity = azurerm_user_assigned_identity.main.id
│ 
│ An argument named "primary_user_assigned_identity" is not expected here.

terraform version
Terraform v1.3.0
on linux_amd64
+ provider registry.terraform.io/databricks/databricks v0.3.11
+ provider registry.terraform.io/hashicorp/azurerm v2.92.0
+ provider registry.terraform.io/hashicorp/random v3.3.1

@xuzhang3
Copy link
Contributor

@syhrz primary_user_assigned_identity supproted after v2.97.0. You need upgrade to v2.97.0
Refs: #14181

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

5 participants