Get-AzureWebApp (and Get-AzureRMWebApp) requires the name. It should not. Also, it does not support piping in the Resource Group.
PS C:\Users\mohisri> Get-AzureRMResourceGroup | Get-AzureRMWebApp
cmdlet Get-AzureRMWebApp at command pipeline position 2 Supply values for the following parameters: (Type !? for Help.) ResourceGroupName: Name:
Also, why does it prompt for Name? Shouldn’t it just enumerate all Web Apps in the Resource Group?
Currently I see no way to loop through all web apps in a resource group without this change?
For now, you can do this using the low level Get-AzureResource. e.g.
Get-AzureResource -ResourceGroupName YourRGName -ResourceType Microsoft.Web/sites -isCollection -OutputObjectFormat New -ApiVersion 2015-08-01
This is fixed in the 1.0 release and beyond.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rthorn17