github.com/Azure/aad-pod-identity@v1.8.17/tutorial/scripts/1-init-aks/2-create-rg.sh (about)

     1  #!/bin/bash
     2  
     3  set -e # stop on errors
     4  
     5  if [ -z "$RG" ]
     6  then
     7        echo "Resource Group Name Not Set. Set the env variable with the following command:"
     8        echo "export RG = \"rg-name\" "
     9        return 1
    10  else
    11       echo "Creating $RG resource group for this project"
    12  fi
    13  
    14  
    15  set -x # print commands when they are executed
    16  
    17  az group create --name $RG --location eastus