🐛 Wrap SERVICE_PRINCIPAL_SECRET in double quotes

This helps prevent special characters in the password from being interpreted by the shell. Doesn't handle when the password contains double-quotes.
This commit is contained in:
Ben Chatelain 2020-11-16 07:18:39 -07:00 committed by Marcel Dempers
parent 26f7c9c37f
commit bbf9ee299d

View File

@ -79,7 +79,7 @@ az aks create -n aks-getting-started \
--ssh-key-value ./id_rsa.pub \
--network-plugin kubenet \
--service-principal $SERVICE_PRINCIPAL \
--client-secret $SERVICE_PRINCIPAL_SECRET \
--client-secret "$SERVICE_PRINCIPAL_SECRET" \
--output none
# if your SP key is invalid, generate a new one:
@ -126,4 +126,4 @@ kubectl apply -n example-app -f services/service.yaml
```
az group delete -n $RESOURCEGROUP
az ad sp delete --id $SERVICE_PRINCIPAL
```
```