Last active
September 19, 2021 04:11
-
-
Save darkn3rd/aa8e2bd2b0ee9ef20f661e22b1dec1dc to your computer and use it in GitHub Desktop.
TF/AKS with ExternalDNS/AzureDNS - verify_role_binding.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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