Azure App Services - need API to return all names

Tarkowski, Michael (M.) 156 Reputation points
2023-09-28T17:36:01.7633333+00:00

Please provide a Microsoft API that will return all Azure App Services names as shown in the image below.

Assuming there is an API, what authorize API permissions are required?

User's image

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,045 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,781 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 95,221 Reputation points
    2023-10-01T08:25:59.59+00:00

    Hi Michael,

    You may use below REST API to retrieve list as shown in your screenshot:

    Web Apps - List

    https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/list

    The user calling the api will need Microsoft.Web/sites/Read permission at subscription scope. In the Azure portal, if you navigate to your subscription, Access control (IAM) blade, click Add -- Add Custom role, you may create a custom role that only has the above permission.

    Once the custom role has been created, use the same Access control (IAM) blade to assign the custom role to the user that will be calling the API.

    Please click Accept Answer if the above was useful.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.