Created
January 30, 2022 17:29
-
-
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
This file contains 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
# 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