Azure / AKS-Construction

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.
https://azure.github.io/AKS-Construction/
MIT License
352 stars 153 forks source link

Not able to pass in a user or SP for AKS admin role assignment #686

Closed carmodyquinnms closed 3 months ago

carmodyquinnms commented 3 months ago

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:

  1. 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

carmodyquinnms commented 3 months ago

@