Here is the PowerShell command to list out all the App Services running on an App Service Plan.
$asp=Get-AzureRmAppServicePlan -ResourceGroupName "<RGNAME>" -Name "<ASPNAME<"
$apps=Get-AzureRmWebApp -AppServicePlan $asp
Foreach($app in $apps) { $app.Name }
Comments
- Anonymous
January 31, 2019
Hi,Unfortunately it is not work in PowerShell Workflow Runbook. It throw the next error (different type):Get-AzureRmWebApp : Cannot bind parameter 'AppServicePlan'. Cannot convert the "Microsoft.Azure.Management.WebSites.Models.AppServicePlan" value of type "Deserialized.Microsoft.Azure.Management.WebSites.Models.AppServicePlan" to type "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan".Have you got any idea, how can I solve this?