Secrets file format Azure Container Registry

I would like to pull an image from a private Azure Container Registry I followed the documentation but it doesn’t seem to work. Can someone confirm if this is the correct format for ACR?

'company.azurecr.io':
  username: <Enterprise Application App ID>
  password: <Secret created for the application>

When I use the username an password with docker login it just works. When I pass it with a secret.yml to balena push it doesn’t. So my guess is some formatting of the file.

1 Like

To answer my own question: apparently there is a buggy yaml parser. The fields have to be in alphabetical order.

'company.azurecr.io':
  password: <Secret created for the application>
  username: <Enterprise Application App ID>
2 Likes

Thank you @jvds for publishing the solution!

1 Like