azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Get-AzureWebApp (and Get-AzureRMWebApp) requires the name. It should not. Also, it does not support piping in the Resource Group.

Open mohitsriv opened this issue 11 years ago • 4 comments

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?

mohitsriv avatar Sep 22 '15 14:09 mohitsriv

Currently I see no way to loop through all web apps in a resource group without this change?

adam-knights avatar Oct 14 '15 10:10 adam-knights

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

davidebbo avatar Oct 14 '15 16:10 davidebbo

This is fixed in the 1.0 release and beyond.

ravbhatnagar avatar Dec 11 '15 02:12 ravbhatnagar

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rthorn17

ghost avatar Aug 14 '19 19:08 ghost