Share via

Cannot restart Azure Function App

Alienator 76 Reputation points
2021-03-14T23:49:17.777+00:00

My Azure function app on the consumption plan has reached the quota that I set, so naturally it is automatically disabled until the next 24 hour period.

So I increased the quota to double the amount. However, the app is still unable to restart. The restart button is also grayed out. In the old Function App dashboard, it was much easier to restart. However, now I can't figure out how to restart the app.

When I browse to the site, it gives a 403 error. I also can't republish the function app from visual studio - same forbidden error. Please help, why is this new UI so difficult?

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,606 Reputation points
    2021-03-15T08:36:30.003+00:00

    @Alienator You can leverage the management API endpoints to start and stop the app:
    https://learn.microsoft.com/en-us/rest/api/appservice/webapps/start
    https://learn.microsoft.com/en-us/rest/api/appservice/webapps/stop
    You can use HTTP client to make an API call to the endpoints mentioned in the document. You may need to pass an authorization token for validation , for that please refer to this

    Please check https://learn.microsoft.com/en-us/answers/questions/156205/index.html

    Please let me know whether this makes sense. If yes, please don't forget to "accept the answer" and "up-vote" so that it could help others in the community.

    Was this answer helpful?

    0 comments No comments

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.