azurerm_data_factory_credential_user_managed_identity

Manage a Data Factory User Assigned Managed Identity credential resource. These resources are used by Data Factory to access data sources.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "westus"
}

resource "azurerm_data_factory" "example" {
  name                = "example"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

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

resource "azurerm_user_assigned_identity" "example" {
  location            = azurerm_resource_group.example.location
  name                = "my-user"
  resource_group_name = azurerm_resource_group.example.name
}

resource "azurerm_data_factory_credential_user_managed_identity" "test" {
  name            = azurerm_user_assigned_identity.example.name
  description     = "Short description of this credential"
  data_factory_id = azurerm_data_factory.example.id
  identity_id     = azurerm_user_assigned_identity.example.id

  annotations = ["example", "example2"]
}

Argument Reference


Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Data Factory Credentials can be imported using the resource id, e.g.

terraform import azurerm_data_factory_credential_user_managed_identity.example /subscriptions/1f3d6e58-feed-4bb6-87e5-a52305ad3375/resourceGroups/example-resources/providers/Microsoft.DataFactory/factories/example/credentials/credential1