hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.59k stars 4.63k forks source link

`azurerm_databricks_access_connector`: Identity block is not accepting value "SystemAssigned,UserAssigned" where SAMI and UAMI are allowed together #26062

Open pcsrijith opened 5 months ago

pcsrijith commented 5 months ago

Is there an existing issue for this?

Community Note

Terraform Version

1.8.0

AzureRM Provider Version

3.104.2

Affected Resource(s)/Data Source(s)

azurerm_databricks_access_connector

Terraform Configuration Files

resource "azurerm_databricks_access_connector" "example" {
  name                = "example-resource"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location

  identity {
    type = "UserAssigned,SystemAssigned"
    identity_ids = ["/subscriptions/XXXXXXX/resourceGroups/example-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentity/TEST-UAMI"]
  }

Debug Output/Panic Output

expected identity.0.type e one of ["UserAssigned" "SystemAssigned"], got SystemAssigned, UserAssigned

Expected Behaviour

It should create the access connector with UAMI attached and System Assigned enabled.

Actual Behaviour

expected identity.0.type e one of ["UserAssigned" "SystemAssigned"], got SystemAssigned, UserAssigned

Steps to Reproduce

No response

Important Factoids

No response

References

As per MSFT documentation, "SystemAssigned,UserAssigned"value is allowed

az databricks access-connector create --name
                                      --resource-group
                                      [--identities]
                                      [--identity-type {None, SystemAssigned, SystemAssigned,UserAssigned, UserAssigned}]
                                      [--location]
                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                      [--tags]
pcsrijith commented 3 months ago

Hi Team, Can someone please take this up?

pcsrijith commented 2 months ago

@tombuildsstuff could you please get some help here? Much appreciated.