Managing Resources with Azure CLI

Length: 00:11:53

Lesson Summary:

In this lesson we look at three examples of managing Azure resources which have already been created.

Through these examples we see there are two main types of management tasks we might perform: configuration changes and administrative operations.

We perform these tasks by harnessing knowledge we've gained so far throughout the course.

All commands used if you wish to follow along:

declare -A book1
book1[name]="hammeroftruth"
book1[rgname]="hammeroftruth-rg"
book1[saname]="hammeroftruthstore"
book1[vnetname]="hammeroftruth-vnet"
book1[location]="australiasoutheast"
book1[vnetID]="id"

'hammeroftruth-vnet'].id" -o tsv
book1[vnetID]=$(az network vnet list --query "[?name=='hammeroftruth-vnet'].id" -o tsv)
echo ${book1[vnetID]}

az network vnet update -h
az network vnet update --ids ${book1[vnetID]} --address-prefixes "10.200.0.0/16"

az network vnet update --ids ${book1[vnetID]} --set addressSpace.addressPrefixes[0]=10.200.0.0/16

az network vnet update --ids ${book1[vnetID]} --add addressSpace.addressPrefixes 10.201.0.0/16

az network vnet subnet create -h
az network vnet subnet create -n subnet1 --address-prefixes 10.200.1.0/24 -g ${book1[rgname]} --vnet-name ${book1[vnetname]}

az vm stop
az storage account keys list -n ${book1[saname]}
az storage account keys renew -n ${book1[saname]} --key primary


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More