jmlane
jmlane

Reputation: 2198

AD Service Principal for Azure Container Registry from Azure Batch container configuration?

I am trying to use Docker images from an Azure Container Registry as tasks in Azure Batch. In the Docker CLI, I can authenticate to the ACR using an Active Directory Service Principal's credentials, with the application ID as the username and the key as the password, as per the ACR documentation.

When I attempt to use the web portal to manually enter those credentials in the a new pool VM container registry settings, I receive the following error on submission:

The value provided for one of the properties in the request body is invalid.

The maximum length of user name that can be specified on a containerRegistry is 20

If I use the AzureRm.Batch Powershell module cmdlets, the pool is created however the containerRegistry and containerImages properties are null.

Can this AD SP authentication method be used with Azure Batch VM container registration configuration? Do I need to use a specific SDK to accomplish this?

Upvotes: 2

Views: 529

Answers (1)

Related Questions