terraform-provider-netapp-cloudmanager icon indicating copy to clipboard operation
terraform-provider-netapp-cloudmanager copied to clipboard

User assigned Identity option on the connector in Azure

Open bryanheo opened this issue 6 months ago • 3 comments

Hello

We need to assign a user-assigned identity to the connector in Azure. Is there an option to attach the identity to the netapp-cloudmanager_connector_azure resource?

For reference, the azurerm_virtual_machine resource provides a way to assign an identity, like this:

resource "azurerm_virtual_machine" "main" {
  name                  = "test"
  ...
  identity {
    type         = "UserAssigned"
    identity_ids = [azurerm_user_assigned_identity.example.id]
  }
}

Does something similar exist for netapp-cloudmanager_connector_azure?

Regards Moon

bryanheo avatar May 22 '25 13:05 bryanheo

Specifically, we use an Azure Private DNS Zone for Privatelink, hosted in a different subscription than CVO, as per https://docs.netapp.com/us-en/bluexp-cloud-volumes-ontap/task-enabling-private-link.html#provide-bluexp-with-details-about-your-azure-private-dns.

In order to grant the NetApp Connector permission to modify records in the zone, we would like to grant the Private DNS Zone Contributor role to a User Assigned Managed Identity, then assign the identity to the Connector VM. In this way, we don't need to worry about orchestrating the assignment of cross-subscription roles to VMs, whose identity change if they are rebuilt.

ewanlyall avatar May 29 '25 10:05 ewanlyall

for now we are assigning like below,

"identity": { "type": "systemAssigned" }

Let us know how this needs to be altered for your request ?

suhasbshekar avatar Sep 15 '25 20:09 suhasbshekar

for now we are assigning like below,

"identity": { "type": "systemAssigned" }

Let us know how this needs to be altered for your request ?

we need to be able to pass in the IDs of one of more pre-existing UserAssigned identities, like in @bryanheo's example above

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

ewanlyall avatar Sep 18 '25 16:09 ewanlyall