Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabriciosanchez/bb49d675a68a1bce63822cadc6a4f22a to your computer and use it in GitHub Desktop.
Save fabriciosanchez/bb49d675a68a1bce63822cadc6a4f22a to your computer and use it in GitHub Desktop.
Define global variables, logs the user into Azure and creates a new resource group
# GLOBAL VARIABLES
ACR_NAME=your acr name
RG=your resource group
RG_ACI=your additional resource group
LOCATION=your location
AKV_NAME=your key vault name
# GETS USER LOGGED IN AZURE TENANT
az login
# SELECTS THE DEFAULT SUBSCRIPTION
az account set -s "Your Subscription Id"
# CREATES A NEW RESOURCE GROUP TO HOST ACR
az group create -n $RG -l $LOCATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment