Error message for deploying Django app to Azure

136 Views Asked by At

Is anyone able to explain why I'm getting this error message when trying to deploy my django-python app to Azure via the VS Code Azure Tool Extension?

"This region has quota of 0 instances for your subscription. Try selecting different region or SKU."

I'm on a free trial with Azure.

I followed the instructions from this tutorial https://learn.microsoft.com/en-us/training/modules/django-deployment/6-deploy-azure but have not been able to proceed past the 'create web app' stage.

1

There are 1 best solutions below

0
Jahnavi On

"This region has quota of 0 instances for your subscription. Try selecting different region or SKU."

The error means that you've reached the maximum number of limit for the resources allowed to use in that specific location. To resolve this issue, you need to choose a different region other than this or SKU that has available resources.

Or you can increase your instance quota for that region by raising a support request to the Microsoft support by visiting Usage + quotas under subscriptions in Azure as shown below and it is clearly detailed in Doc.

Note: As you are using free trial, I would suggest you try with the different region.

enter image description here

As you already given, I tried the same requirement using this doc and it worked as expected.

Created a web app & database, added the Postgress SQL database details such as DB Name, Host, Password as follows.

enter image description here

Once it is done, SSH into website for migrating the .py file as detailed in the above Doc.

enter image description here

Able to run the Django web app successfully:

enter image description here