Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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