Creating user-assigned Managed Identities
Learn about creating user-assigned Managed Identities.
When creating a new Cloudera Data Engineering service, you need to supply two user-assigned managed identities, one of them is used for common cluster components and the other one is shared across all Cloudera Data Engineering virtual cluster components. These identities are associated with only one Cloudera Data Engineering service, and cannot be used in another Cloudera Data Engineering service.
For more information on creating managed identities on the Azure portal, see Creating Managed Identity.
The following procedure lists the Azure CLI commands to create user-assigned managed identities and role assignments.
For the commands included in the procedure, you need the values for the following variables, based on your Azure environment:
[***RESOURCE-GROUP***]: Your resource group name.
[***LOCATION***]: The location, for example eastus.
[***MANAGED-IDENTITY-NAME***]: The Managed Identity name to be
created.
[***STORAGE-ACCOUNT***]: Your storage account name.
[***LOGS-CONTAINER-NAME***]: The name of the logs container.
[***SUBSCRIPTION-ID***]: The subscription ID.
Example: If abfs://logs@mystorage.dfs.core.windows.net is your
log storage location, then [***STORAGE-ACCOUNT***] is mystorage,
[***LOGS-CONTAINER-NAME***] is logs.
Run the following command to set the variables:
RESOURCE_GROUP="[***RESOURCE-GROUP***]"
LOCATION="[***LOCATION***]"
IDENTITY_NAME="[***MANAGED-IDENTITY-NAME***]"
STORAGE_ACCOUNT="[***STORAGE-ACCOUNT***]"
CONTAINER_NAME="[***LOGS-CONTAINER-NAME***]"
SUBSCRIPTION_ID=$(az account show --query id -o tsv)
