guyrleech

Show AVD Host Pool details & Session Host status

Mar 4th, 2026 (edited)
275
0
Never
10
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 1.37 KB | Software | 0 0
  1. ## Get various details for all host pools including workspace and session host details
  2.  
  3. ## Fuglied on to 1 line so is self contained when searching in PowerShell history (ctrl r)
  4.  
  5. ## Get workspaces so we can check each host pool has one. Set $sub = @{} for current subscription
  6.  
  7. $sub=@{ SubscriptionId = 'b47ba59e-56bf-4813-bd56-cf43cb26a8ac' } ;$sc = Get-AzWvdScalingPlan @sub ;$ws = @{}; get-azwvdworkspace @sub |where ApplicationGroupReference|% { $ws.Add( $_.ApplicationGroupReference[0] , $_.Name ) };Get-AzWvdHostPool @sub -PipelineVariable hp |% { $esc = $sc |where { $_.HostPoolReference | Where { $_.HostPoolArmPath -ieq $hp.id -and $_.scalingPlanEnabled -eq $true }} ; $sesh = @( Get-AzWvdSessionHost @sub -HostPoolName $hp.name -ResourceGroupName $hp.ResourceGroupName -EA 0); $hp|select @{n='HostPool';e={$_.name}},FriendlyName,Description,ResourceGroupName,HostPoolType,@{n='Enabled Scaling Plans';e={($esc|select -expand name) -join ,','}},SystemDataCreatedAt,Location,@{n='Application Group';e={$_.ApplicationGroupReference -replace '^.*/'}},@{n='Workspace';e={ $ws[ ($hp.ApplicationGroupReference.GetEnumerator()|select -first 1) ] }},@{n='Session Hosts';e={$sesh.Count}},@{n='Session Hosts Status';e={($sesh|group status|sort name|% { "$($_.Name)=$($_.Count)" }) -join ', '}},@{n='Session Count';e={($sesh|measure -Property Session -Sum).Sum}}|sort HostPool,roledefinitionname }
Tags: azure avd
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Vidunuh
    13 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • User was banned
Add Comment
Please, Sign In to add comment