lab11_manageVM part 3 - policies, locks, and tags
Автор: The Azure guy
Загружено: 2020-02-18
Просмотров: 3
Описание:
learn how to use policies, locks, and tags on azure resources
#apply a tag to a single Resource - VM example
Get the virtual machine
$r = Get-AzResource -ResourceName speedvm1 `
-ResourceGroupName managevmlab `
-ResourceType Microsoft.Compute/virtualMachines
Apply tags to the virtual machine
Set-AzResource -Tag @{ Dept="IT"; Environment="Test"; Project="green silo" } -ResourceId $r.ResourceId -Force
#use a Tag to perform management tasks - stopping all VM's with a given tag value
Get-AzResource -Tag @{ Environment="Test"} | Where-Object {$_.ResourceType -eq "Microsoft.Compute/virtualMachines"} | Stop-AzVM
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: