daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Dec 13th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $j = Get-AzureRmResourceGroup | ? {
  2.     $_.ResourceGroupName -like "hogehoge*"
  3. } | % {
  4.     Start-Job {
  5.         param ($c, $n) Remove-AzureRmResourceGroup -AzureRmContext $c -ResourceGroupName $n -Verbose -Confirm:$false -Force
  6.     } -ArgumentList (Get-AzureRmContext), $_.ResourceGroupName
  7. }
  8. $j | Receive-Job -AutoRemoveJob -Wait -WriteJobInResults
RAW Paste Data
Top