Web App deployment failing: The subscription 'xxxx' is not allowed to create or update the serverfarm."

Arlind Kadra 0 Reputation points
2024-02-20T18:43:21.95+00:00

I am trying to create a web app today with my docker container however I am getting a bad gateway error with the above message. Yesterday it was working fine.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,937 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2024-02-20T23:03:10.0633333+00:00

    Hello @Arlind Kadra sorry to hear you are facing this issue. are you able to create other resources with that same subscription? Your error message “The subscription ‘xxxx’ is not allowed to create or update the serverfarm”, has to do with your Azure subscription.

    Here are a few steps you can take to troubleshoot this issue:

    1. Check and make sure your Azure subscription is active and not disabled due to reasons like expired credit, exceeded quota etc.
    2. Try logging in again using az login command. This will update the subscriptions you belong

    As for the “Bad Gateway” error, it’s a common issue that can occur due to various reasons such as network issues, application level issues (like high memory/CPU usage, application crashes, etc.), or configuration issues. Here are some general troubleshooting steps:

    1. If access to the backend is blocked because of an NSG, UDR, or custom DNS, application gateway instances can’t reach the backend pool. This issue causes probe failures, resulting in 502 errors
    2. If the application gateway has no VMs or virtual machine scale set configured in the backend address pool, it can’t route any customer request and sends a bad gateway error
    3. Track service health and monitor metrics like Average memory working set, Average response time, CPU time, Memory working set, Requests, etc
    4. Azure App Service provides an intelligent and interactive experience to help you troubleshoot your app with no configuration required

    If the issue persists, please let us know. -Grace

    0 comments No comments

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.