Created
November 17, 2015 21:48
-
-
Save devigned/f17d3929ededa6edc5a9 to your computer and use it in GitHub Desktop.
WebApps piping in Azure PowerShell 1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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