How to fine the status of azure service?

Anonymous
2022-12-19T12:25:27.1+00:00

I want to add a feature in my admin panel, where I can show the status of my azure app services and service bus whether they are started or stopped.

I've got the APIs to control the start/stop/restart actions of the service.

Please let me know how this can be achieved and if is there any API available to get the status directly.

Thank you.

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} vote

Answer accepted by question author
  1. MayankBargali-MSFT 70,986 Reputation points Moderator
    2022-12-19T12:41:59.277+00:00

    @Anonymous Thanks for reaching out. For web apps you can leverage the REST API below to start/stop/restart the app service.

    Stop webapp: https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/stop
    Start webapp: https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/start
    Restart webapp: https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/restart

    To get started with Azure REST API you can refer to this document. In your custom application you can call the above REST API to perform different operation.

    There is no operation such as start/stop the service bus. Once you have created the resource you will be billed as per the SKU of the Azure service bus. The only way to stop the billing is to delete the service. Please refer to service bus pricing document for more details.
    For service bus REST operation, you can refer to this document.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


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.