exec.azurerm.managed_service_identity.user_assigned_identity

Azure Resource Manager (ARM) MSI User Assigned Identity Execution Module

New in version 4.0.0.

maintainer:

<devops@eitr.tech>

configuration:

This module requires Azure Resource Manager credentials to be passed as keyword arguments to every function or via acct in order to work properly.

Required provider parameters:

if using username and password:
  • subscription_id
  • username
  • password
if using a service principal:
  • subscription_id
  • tenant
  • client_id
  • secret

Optional provider parameters:

cloud_environment: Used to point the cloud driver to different API endpoints, such as Azure GovCloud. Possible values:

  • AZURE_PUBLIC_CLOUD (default)
  • AZURE_CHINA_CLOUD
  • AZURE_US_GOV_CLOUD
  • AZURE_GERMAN_CLOUD
idem_azurerm.exec.azurerm.managed_service_identity.user_assigned_identity.create_or_update(hub, ctx, name, resource_group, tags=None, **kwargs)

New in version 4.0.0.

Create or update an identity in the specified subscription and resource group.

Parameters:
  • name – The name of the identity resource.
  • resource_group – The resource group name assigned to the identity.
  • tags – A dictionary of strings can be passed as tag metadata to the identity object.

CLI Example:

azurerm.managed_service_identity.user_assigned_identity.create_or_update test_identity test_group
idem_azurerm.exec.azurerm.managed_service_identity.user_assigned_identity.delete(hub, ctx, name, resource_group, **kwargs)

New in version 4.0.0.

Delete an identity.

Parameters:
  • name – The identity to delete.
  • resource_group – The resource group name assigned to the identity.

CLI Example:

azurerm.managed_service_identity.user_assigned_identity.delete test_identity test_group
idem_azurerm.exec.azurerm.managed_service_identity.user_assigned_identity.get(hub, ctx, name, resource_group, **kwargs)

New in version 4.0.0.

Gets an identity.

Parameters:
  • name – The identity to get.
  • resource_group – The resource group name assigned to the identity.

CLI Example:

azurerm.managed_service_identity.user_assigned_identity.get test_identity test_group
idem_azurerm.exec.azurerm.managed_service_identity.user_assigned_identity.list_(hub, ctx, resource_group=None, **kwargs)

New in version 4.0.0.

Lists all the user assigned identities available under the specified subscription.

CLI Example:

azurerm.managed_service_identity.user_assigned_identity.list