$ResourceGroupName = "$(yourpipelinevariable)" $Vmname = "$(yourpipelinevariable)" $VMstatus = Get-AzVm -ResourceGroupName $ResourceGroupName -name $Vmname -Status if ($VMstatus.Statuses[1].code -eq "powerstate/deallocated") { $newVMstatus = ...
All things Azure Cloud Engineering
I am an Azure Cloud Engineer from London. I enjoy learning and sharing knowledge about my Cloud Journey.
Markdown supported · ⌘↵ to post
No responses yet.