Skip to content

Instantly share code, notes, and snippets.

@darkn3rd
Last active September 19, 2021 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkn3rd/aa8e2bd2b0ee9ef20f661e22b1dec1dc to your computer and use it in GitHub Desktop.
Save darkn3rd/aa8e2bd2b0ee9ef20f661e22b1dec1dc to your computer and use it in GitHub Desktop.
TF/AKS with ExternalDNS/AzureDNS - verify_role_binding.sh
export AZ_PRINCIPAL_ID="$(terraform output -raw kubelet_identity_id)"
############
# show role bindings on kubelet id (managed id assigned to VMSS node pool)
############################################
az role assignment list --assignee $AZ_PRINCIPAL_ID --all \
--query '[].{roleDefinitionName:roleDefinitionName, provider:scope}' \
--output table | sed 's|/subscriptions.*providers/||' | cut -c -80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment