Is there a way to create a website to access Azure Portal?

Bradley Consuegra 20 Reputation points
2023-09-21T17:24:34.85+00:00

I was assigned to work on a project where the user should be able to sign in to their Azure portal from the project owner's website and display the portal information on the website, such as listing the user's Azure VMs and app services. I tried looking around online to see if there was an API that interacts with the Azure portal, but I only get results for Azure's API management features. I'm wondering if it's possible to retrieve data from a user's portal on Azure using the user's Azure credentials and display it on the custom website. The website currently uses npm and is coded with JavaScript and PHP.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,662 questions
0 comments No comments
{count} votes

Accepted answer
  1. AirGordon 7,120 Reputation points
    2023-09-22T15:35:38.2266667+00:00

    I'm wondering if it's possible to retrieve data from a user's portal on Azure using the user's Azure credentials and display it on the custom website. The website currently uses npm and is coded with JavaScript and PHP.

    Yes, you can use the Azure API's to query the control plane metadata. EG. Listing VM's
    You would need to use a Service Principal to query, not the actual users AD Account they've signed in with.

    Whether or not this is a good idea or not, I'm pretty sure it's not. You need to evaluate the user experience in querying and waiting for this data against leveraging your own datastore which will be populated by a background service that runs the queries.
    Given the requirement of displaying a subset of Azure metadata on a company intranet - I think working from exports would be the most practical... Either that or just tell people to use the Azure Portal!

    1 person found this answer helpful.
    0 comments No comments

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.