Skip to content

How do I grant acrPull access to AKS using bicep? #3181

Answered by brwilkinson
ecmcn asked this question in Q&A
Discussion options

You must be logged in to vote

This is the docs...

https://docs.microsoft.com/en-us/azure/aks/use-managed-identity#summary-of-managed-identities

It's the Kublet identity that needs the role assignment against ACR. . . you can also BYO User assigned identity here as well, that way you can perform the Role assignment prior to deploying the AKS cluster.

This should be helpful to get the principal identity that you are looking for

// using this as an exampple, you already have your template for this
resource myAKS 'Microsoft.ContainerService/managedClusters@2021-03-01' existing = {
  name: 'aksapp01'
}

// I don't have a cluster up right now to test if you need 'properties there' ... so I am not sure if that path is accura…

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
3 replies
@ecmcn
Comment options

@brwilkinson
Comment options

@brwilkinson
Comment options

Answer selected by ecmcn
Comment options

You must be logged in to vote
10 replies
@brwilkinson
Comment options

@justinmchase
Comment options

@brwilkinson
Comment options

@brwilkinson
Comment options

@justinmchase
Comment options

Comment options

You must be logged in to vote
1 reply
@justinmchase
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants