Bheeshma
Bheeshma

Reputation: 173

is it possible to list all types of app service using az cli

I am trying to list the type of app service associated with particular subscription using azure cli.

Type of app service:

  1. Web apps
  2. logic apps
  3. Function apps
  4. mobile apps
  5. API apps

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

Answers (2)

Thomas
Thomas

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

Sajeetharan
Sajeetharan

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

Related Questions