Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Login-AzAccount -UseDeviceAuthentication
- get-AzVM -ResourceGroupName ResourceGroupNameHere -status `
- | Select-Object Name, ResourceGroupName, @{ label = “Status”; Expression = { $_.PowerState } } | Format-Table
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement