You have a run book in Azure that evaluates the virtual machines (VMs) in a tenant and deallocates the VMs if they are no longer needed. You use the Power State to determine if a VM is running. You need to deallocate only those VMs that are running at the time your runbook runs.
How should you complete the relevant Azure PowerShell script?
To answer, drag the appropriate Azure PowerShell cmdlets to the correct locations. Each Azure PowerShell cmdlet may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place: