Skip to content

Instantly share code, notes, and snippets.

@devigned
Created November 17, 2015 21:48
Show Gist options
  • Save devigned/f17d3929ededa6edc5a9 to your computer and use it in GitHub Desktop.
Save devigned/f17d3929ededa6edc5a9 to your computer and use it in GitHub Desktop.
WebApps piping in Azure PowerShell 1.0
# Login if you haven't already
Login-AzureRmAccount
# Create a new resource group
New-AzureRmResourceGroup -Location westus -Name webapptestrg
# Create a new WebApp
New-AzureRmWebApp -ResourceGroupName webapptestrg -Location westus -Name djtestwebapp
# List all the WebApps for all of your resource groups
# Note: better piping support
Get-AzureRmResourceGroup | Get-AzureRmWebApp
# List all WebApps for all of your resource groups
# Note: this is the same thing as the previous command, but less key strokes
Get-AzureRmWebApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment