From 9fef9fb093f591f1a2f7b72f7821cd4039d59d4f Mon Sep 17 00:00:00 2001 From: Sumit Ghosh Date: Thu, 19 Aug 2021 11:51:20 +0530 Subject: [PATCH] Fixed instruction commands --- Deployment-With-GitHub-Actions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Deployment-With-GitHub-Actions.md b/Deployment-With-GitHub-Actions.md index c55faab..fc55b47 100644 --- a/Deployment-With-GitHub-Actions.md +++ b/Deployment-With-GitHub-Actions.md @@ -35,7 +35,7 @@ export acrId=$(az acr show -g $rg -n $acr --query "id" -o tsv) # assign push/pull role to SPN spnPassword=$(az ad sp create-for-rbac --name http://$spnName --scopes $acrId --role acrpush --query password --output tsv) -spnId=$(az ad sp show --id http://$spnName --query appId --output tsv) +spnId=$(az ad sp list --display-name http://$spnName --query [0].appId) # Ref : https://github.com/Azure/azure-cli/issues/19179 # for an existing SPN # export spnId="" @@ -45,7 +45,7 @@ spnId=$(az ad sp show --id http://$spnName --query appId --output tsv) az aks create -g $rg -n $aks --node-count 1 --enable-addons monitoring,http_application_routing --enable-rbac --generate-ssh-keys --attach-acr $acr # set the k8s context locally -az get-credentials -g $rg -n $aks +az aks get-credentials -g $rg -n $aks # deploy nginx controller cd deploy/k8s/nginx-ingress