Home > OS >  How to change the deployment location for a web app deployed by VSCode?
How to change the deployment location for a web app deployed by VSCode?

Time:04-14

I'm deploying a Django web application from VSCode, to Azure. When deployed I noticed that my app is assigned to 'Central US', and I would like it to be in 'UK South'. The deployment procedure doesn't ask me for the location, but I noticed in the application Json file settings file -

"id": ...
"name": ...
"kind": ...
"location": "Central US",
"type": ...
"state": ...

I think this is an auto-generated file, so how can I change this setting pre-deployment?

CodePudding user response:

  • Regardless of subscription kind, you cannot modify the location of an app service plan. All you have to do now is create a new app service plan in the desired area and redeploy your code.
  • The region of an App Service plan cannot be changed.
  • App cloning is an option if you wish to operate your app in a different region.
  • Cloning makes a copy of your app in a new or existing App Service plan in any region.

Please refer Azure App Service App cloning for more information

CodePudding user response:

Found the answer to creating and deploying the app within VSCode. In the 'APP SERVICE' section the Azure tab (on the left), right click and choose

'Create new web app... (advanced)'

It will ask you a few more questions, including what resource group to use and creation of a service plan, with an option to choose the location.

  • Related