Skip to content

Instantly share code, notes, and snippets.

Last active Jan 6, 2019
What would you like to do?
AKS-Deploy Part 3
spPass="$(openssl rand -base64 30)"
echo "Creating Service Principal"
spId="$(az ad sp create-for-rbac --name sp-kube-api-$envName --password $spPass --skip-assignment --query appId --output tsv)"
echo "Setting permissions for Service Principal on VNet"
az role assignment create --assignee $spId --scope $vNetResourceId --role Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment