Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Login-AzAccount -UseDeviceAuthentication
  2.  
  3. get-AzVM -ResourceGroupName ResourceGroupNameHere -status `
  4. | Select-Object Name, ResourceGroupName, @{ label = “Status”; Expression = { $_.PowerState } } | Format-Table
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement