Deployment FAQs for Web Apps in Azure

This article has answers to frequently asked questions (FAQs) about deployment issues for the Web Apps feature of Azure App Service.

If your Azure issue is not addressed in this article, visit the Azure forums on MSDN and Stack Overflow. You can post your issue in these forums, or post to @AzureSupport on Twitter. You also can submit an Azure support request. To submit a support request, on the Azure support page, select Get support.

I'm just getting started with App Service web apps. How do I publish my code?

Here are some options for publishing your web app code:

  • Deploy by using Visual Studio. If you have the Visual Studio solution, right-click the web application project, and then select Publish.
  • Deploy by using an FTP client. In the Azure portal, download the publish profile for the web app that you want to deploy your code to. Then, upload the files to \site\wwwroot by using the same publish profile FTP credentials.

For more information, see Deploy your app to App Service.

I see an error message when I try to deploy from Visual Studio. How do I resolve this error?

If you see the following message, you might be using an older version of the SDK:

Error during deployment for resource 'YourResourceName' in resource group 'YourResourceGroup': MissingRegistrationForLocation: The subscription is not registered for the resource type 'components' in the location 'Central US'. Re-register for this provider in order to have access to this location.

To resolve this error, upgrade to the latest SDK. If you see this message and you have the latest SDK, submit a support request.

How do I deploy an ASP.NET application from Visual Studio to App Service?

The tutorial Create your first ASP.NET web app in Azure in five minutes shows you how to deploy an ASP.NET web application to a web app in App Service by using Visual Studio.

What are the different types of deployment credentials?

App Service supports two types of credentials for local Git deployment and FTP/S deployment. For more information about how to configure deployment credentials, see Configure deployment credentials for App Service.

What is the file or directory structure of my App Service web app?

For information about the file structure of your App Service app, see File structure in Azure.

How do I resolve "FTP Error 550 - There isn't enough space on the disk" when I try to FTP my files?

If you see this message, it's likely that you're running into a disk quota in the service plan for your web app. You might need to scale up to a higher service tier based on your disk space needs. For more information about pricing plans and resource limits, see App Service pricing.

How do I set up continuous deployment for my App Service web app?

You can set up continuous deployment from several resources, including Azure DevOps, OneDrive, GitHub, Bitbucket, Dropbox, and other Git repositories. These options are available in the portal. Continuous deployment to App Service is a helpful tutorial that explains how to set up continuous deployment.

How do I troubleshoot issues with continuous deployment from GitHub and Bitbucket?

For help investigating issues with continuous deployment from GitHub or Bitbucket, see Investigating continuous deployment.

I can't FTP to my site and publish my code. How do I resolve this issue?

To resolve FTP issues, follow these steps:

  1. Verify that you're entering the correct host name and credentials. For detailed information about different types of credentials and how to use them, see Deployment credentials.
  2. Verify that the FTP ports aren't blocked by a firewall. The ports should have these settings:
    • FTP control connection port: 21
    • FTP data connection port: 989, 10001-10300

How do I publish my code to App Service?

The Azure Quickstart is designed to help you deploy your app by using the deployment stack and method of your choice. To use the Quickstart, in the Azure portal, go to your app service, under Deployment, select Quickstart.

Why does my app sometimes restart after deployment to App Service?

To learn about the circumstances under which an application deployment might result in a restart, see Deployment vs. runtime issues. As the article describes, App Service deploys files to the wwwroot folder. It never directly restarts your app.

How do I integrate Azure DevOps code with App Service?

You have two options for using continuous deployment with Azure DevOps:

  • Use a Git project. Connect via App Service by using the Deployment Center.
  • Use a Team Foundation Version Control (TFVC) project. Deploy by using the build agent for App Service.

Continuous code deployment for both these options depends on existing developer workflows and check-in procedures. For more information, see these articles:

How do I use FTP or FTPS to deploy my app to App Service?

For information about using FTP or FTPS to deploy your web app to App Service, see Deploy your app to App Service by using FTP/S.

Contact us for help

If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure feedback community.