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

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. TP 148.8K Reputation points Volunteer Moderator
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.