Accelerate your onboarding to AKS with; Helper Web App, bicep templating and CI/CD samples. Flexible & secure AKS baseline implementations in a Microsoft + community maintained reference implementation.
Describe the bug
Using bicep to spin up an aks cluster and attempting to pass the currently signedInUser as adminPrincipalId so that the signedInUser can be assigned cluster admin role. However this does not work. It appears that the adminPricipalId is being forcibly cleared in the line right before the resource aks_admin_role_assignment in main.bicep
To Reproduce
Steps to reproduce the behavior:
Provision aks and attempt to provide an adminPrincipalId
Expected behavior
There should be a way to pass an SP or user to the aks_admin_role_assignment
Describe the bug Using bicep to spin up an aks cluster and attempting to pass the currently signedInUser as adminPrincipalId so that the signedInUser can be assigned cluster admin role. However this does not work. It appears that the adminPricipalId is being forcibly cleared in the line right before the resource aks_admin_role_assignment in main.bicep
To Reproduce Steps to reproduce the behavior:
Expected behavior There should be a way to pass an SP or user to the aks_admin_role_assignment