Django Application from Visual Studio 2022 to Azure App Service

Aida Aida 20 Reputation points
2025-03-06T22:35:40.7966667+00:00

I have created a app service for Django App- The information is below

I download the publishsettings file

I import it into the Visual Studio 2022

The import just hangs

Question: How do you fix this problem

Information about the App Service

Publishing model

Code

Runtime Stack

Python - 3.9

Operating System

Linux

Instance Count

1

SKU and size

Basic (B1)Scale up

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

Accepted answer
  1. Shree Hima Bindu Maganti 3,600 Reputation points Microsoft External Staff
    2025-03-11T08:55:37.13+00:00

    Hi @Aida Aida
    If you're having trouble with Visual Studio 2022 hanging when importing the publish settings file for deploying a Django app to Azure App Service (Linux, Python 3.9), try these steps. First, make sure Visual Studio 2022 is running with admin privileges by right-clicking the app and selecting Run as Administrator. This can fix permission issues. Next, check for any pending updates in Visual Studio by going to Help > Check for Updates to ensure you're on the latest version. If the problem continues, manually configure the publish profile instead of importing the settings file. Go to Solution Explorer, right-click your project, select Publish, choose Azure App Service (Linux), and select your existing App Service instance before deploying.

    If Visual Studio still hangs, try cleaning the solution and deleting temporary files by closing Visual Studio and removing the bin, obj, and hidden .vs folders from your project directory. Restart Visual Studio, rebuild the solution, and try publishing again. Alternatively, you can use the Azure CLI to deploy your Django app. Open a command prompt or terminal, navigate to your Django project folder, and run:

    az webapp up --name YourAppServiceName --resource-group YourResourceGroup --runtime "PYTHON:3.9" --sku B1

    This command will automatically configure and deploy your app to the specified Azure App Service. For more details, check the official Azure documentation. If you're still having issues, look into the Visual Studio Developer Community (link) or Azure support for more help.
    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.
    Please let us know if you need further assistance.


0 additional answers

Sort by: Most helpful

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.