This file contains hidden or 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
| az ad sp create-for-rbac \ | |
| --skip-assignment | |
| az aks create \ | |
| --resource-group myResourceGroup \ | |
| --name myAKSCluster \ | |
| --node-count 1 \ | |
| --enable-addons monitoring \ | |
| --generate-ssh-keys \ | |
| --service-principal "208-1029....." |
This file contains hidden or 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
| kubectl run app \ | |
| --image=myAksAcr.azureacr.io/img:v1 \ | |
| --replicas=3 \ | |
| --port=80 |
This file contains hidden or 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
| az acr create \ | |
| --resource-group myaks-rg \ | |
| --name myAksAcr \ | |
| --sku Basic \ | |
| --admin-enabled true | |
| az acr build \ | |
| --registry myAksCluster \ | |
| --image img:v1 . |