Reputation: 173
I am trying to list the type of app service associated with particular subscription using azure cli.
Type of app service:
So far I have tried to find out the individual command for these. Out of which I could only get
web apps : az webapp list --subscription subscriptionId
function apps: az functionapp list --subscription subscriptionId
logic apps: az logic workflow list --subscription subscriptionId
I am not sure the above commands include the API apps and mobile apps or it filters.
Any help would be much appreciated.
Upvotes: 2
Views: 6372
Reputation: 29542
You could use az resource list
(see documentation) and apply a query filter
az resource list --subscription subscriptionId --query "[?type=='Microsoft.Web/sites' || type=='Microsoft.Logic/workflows']"
You could update the query filter based on your need.
As mentioned by @Sajeetharan, Mobile Apps, API Apps, Web Apps and Function Apps are part of App services (Microsoft.Web/sites)
Upvotes: 4
Reputation: 222582
Yes you are right, API apps and Mobile apps are part of the Appservice which falls under WebApps.
You could use the CLI command or use the REST API
Upvotes: 0