Dec 05 2020 05:02 AM
Need some help. New at Azure CLI...
is there a way to run the az cli command "below" from Azure Cloud Shell as a .sh script. it's a pretty Also, is there a way for it to prompt for the destination subscription ID? I ask this because i would be deploying this to one of many subscriptions as a one time thing.
script
az vm create -n vrossvm -g DevRG --vnet-name DevNetwork --subnet AppTierSubnet --nsg APPTierNSG --public-ip-address '""' --location eastus --admin-username admin --admin-password password123 --size Standard_DS2_v3 --subscription mytsubscription --image /subscriptions/xxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxx2/resourceGroups/sharedrg/providers/Microsoft.Compute/galleries/sharedimage/images/win10golddisk/versions/1.0.0
Dec 05 2020 07:04 AM
found a solution.