最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Azure Batch Pool with ACR fails to fetch image - Stack Overflow

programmeradmin2浏览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.

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.

Share Improve this question edited Mar 20 at 1:34 Aguy 934 bronze badges asked Mar 19 at 12:59 Asfandyar AbbasiAsfandyar Abbasi 852 gold badges2 silver badges10 bronze badges 2
  • Could you please check whether the Managed Identity has been added to the Batch account? – Sridevi Commented Mar 20 at 1:33
  • The problem was that I didnt assign any identity to the pool. – Asfandyar Abbasi Commented Mar 21 at 5:54
Add a comment  | 

1 Answer 1

Reset to default 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.

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

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.


I tried to select the Managed Identity under Identity Reference, but I couldn’t select it from the dropdown.

After that, I selected User-Assigned Identity, added the identity I created, and also selected Custom for the Container Configuration.

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

发布评论

评论列表(0)

  1. 暂无评论