Why the portal will not allow additional 'User-assigned Managed Identities' to be added to Node Identity Reference?

Daniel-4204 270 Reputation points

In my scenario, Azure Batch Pools currently share a single user assigned managed identity for their nodes. Each batch pool is associated with separate subnets because job's performed by the nodes are to different vnet resource environments across a network peering.

I would like to not share this user assigned managed identity between pools/nodes due to recommended regulations, audit/log trails for isolated environments instead of sharing a single user assigned managed identity.

Therefore, I have added a new user assigned managed identity to each pool. However, the option to add more than one user assigned managed identity is not possible in the Node Identity Reference for autostorage settings of the batch account.

So currently, the pools have 2 each. Being, the old user assigned managed identity, and each their respective new one.

Is this by design that there must only be 1 in this section used for the purpose of autostorage node identity reference?

According to the documentation, these user assigned managed identities must be added in both places: the pool, and the identity reference (see screenshot below). However, in the same documentation (See yellow arrow below), there is verbiage that suggests that the auto storage "one", is indeed only one allowed there.

This makes me think that if I am to configure the Batch Account as I described, I will likely need to maintain 3 user assigned managed identities.

1x: shared for autostorage and added to the identity reference and both pool identities.

2x: separate user assigned managed identities: 1 for each pool identity for nodes accessing designated resources such as seperate app configuratioins, keyvaults, etc, etc...

👁 User's image

(https://learn.microsoft.com/en-us/troubleshoot/azure/hpc/batch/use-managed-identities-azure-batch-account-pool)

0 comments No comments

Sign in to comment

Answer accepted by question author

Hemalatha 14,525 Reputation points Microsoft External Staff Moderator

Hello Daniel,

Thank you for reaching out and for providing the detailed explanation of your scenario.

From your description, I understand that you are attempting to assign separate user-assigned managed identities to different pools in order to maintain isolation across environments (for example, separate VNets and resource access). While doing so, you noticed that the Node Identity Reference for the AutoStorage configuration allows selecting only a single user-assigned managed identity, even though the documentation mentions that multiple identities can be defined.

This behavior is expected and is by design in Azure Batch.

The documentation you referenced states that multiple user-assigned managed identities can be defined at the pool identity level. This allows compute nodes in a pool to authenticate to different Azure resources (such as Key Vault, Storage, or App Configuration) using different identities when required.

However, the Node Identity Reference used for AutoStorage authentication is configured at the Batch account level, and therefore it supports only one user-assigned managed identity. Since the AutoStorage account is associated with the Batch account itself rather than individual pools, the service requires a single identity that all nodes will use when accessing AutoStorage.

As also noted in the documentation:

“You can define more than one user-assigned managed identity in the pool identity. However, the one that's defined in the node identity reference must also be defined in the pool identity.”

This means that:

  • A pool may contain multiple user-assigned managed identities.

The identity used for Node Identity Reference (AutoStorage) must also be included in the pool identity.

The Node Identity Reference itself supports only one identity, which is why the portal does not allow adding additional identities in that field.

Given your architecture, the approach you described is the correct and recommended design:

One shared user-assigned managed identity used for AutoStorage access and configured as the Node Identity Reference.

Separate user-assigned managed identities per pool for accessing environment-specific resources such as Key Vault, Storage accounts, or other services.

Reference: Configure managed identities in Batch pools

Configure customer-managed keys for your Azure Batch account with Azure Key Vault and Managed Identity

The Usage of Managed Identity in the Azure Batch Account and Azure Batch Pool

Hope this helps! Please let me know if you have any queries.

  1. Daniel-4204 270 Reputation points

    @Hemalatha Thank you, I would like to accept your comment as the answer if you could convert it from Comment to Answer. -Daniel

  2. Hemalatha 14,525 Reputation points Microsoft External Staff Moderator

    Thank you Daniel. I have converted my comment to answer. Could you please accept the answer and upvote it.

  3. Daniel-4204 270 Reputation points

    I have a new Question about Azure SQL Metrics I am trying to ask. I have tried posting about 5 different variations in the last 2 hours. Every time I post I get this error: Can a moderator please review one of these deleted posts and see if it can be approved? I cannot find any violation. The title will be variations of "Why does my Azure SQL Database with auto-pause enabled show recurring CPU spikes every 5 minutes".
    👁 User's image

    Thankyou, -Daniel

  4. Hemalatha 14,525 Reputation points Microsoft External Staff Moderator

    Hello Daniel,

    Thank you for reaching out.

    We are currently unable to review your posts because your account appears to be in private mode. Due to this restriction, the submitted questions are not visible on our end.

    Could you please repost your query after ensuring that:

    • No subscription IDs, resource names, or other sensitive details are included
    • All personally identifiable information (PII) has been removed

    Once the post is publicly accessible and compliant, we will be happy to review and assist you further.

    Thank you for your understanding.


Sign in to comment

0 additional answers

Sign in to answer

Your answer