0

I am creating Azure Batch service. I have my code in a docker image that is stored in Azure Container Registry, ACR. To access my ACR repositor I have created a user managed identity and assigned the acrPull role.

When I create a Pool from the Azure Portal, I choose "custom Container configuration" and then enter the Registry server. But for some reason there are no identities listed in the Identity reference dropdown. I can confirm that I have multiple user assigned managed identities.

I used the Registry username and Password which worked as expected.

Is there anything else that need to be done first to be able to use a user assigned managed identity? Any help is greatly appreciated.

2
  • Could you please check whether the Managed Identity has been added to the Batch account? Commented Mar 20 at 1:33
  • The problem was that I didnt assign any identity to the pool. Commented Mar 21 at 5:54

1 Answer 1

1

I initially placed a Docker image in the Azure Container Registry (ACR). After that, I created a User-Assigned Managed Identity (UAMI) and assigned the AcrPull role to this identity in the ACR by navigating to IAM → Add role assignment.
enter image description here

I opened my Batch account, navigated to Identity, added the User-Assigned Managed Identity (UAMI) I created, and saved the changes.
enter image description here

After that, I tried to create a pool, selected the Image Type as Custom Image – Azure Compute Gallery, and set the Container Configuration to Custom.

enter image description here
I tried to select the Managed Identity under Identity Reference, but I couldn’t select it from the dropdown.
enter image description here
After that, I selected User-Assigned Identity, added the identity I created, and also selected Custom for the Container Configuration.

enter image description here

I was able to select my User-Assigned Identity instead of using a username and password.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.