Deploying Website or Project on Azure from Visual Studio

Microsoft Azure

Hi guys today we are going to discuss on how to deploy existing project or website on Microsoft azure from visual studio.


  1. You should have active subscription on Microsoft azure
  2. You should have project ready for deployment

Settings on Azure Portal

  1. Login to Microsoft Azure portal
  2. Choose your web app from dashboard previously known as website on old azure portal
  3. On the overview page top you will find Get Publish Profile Click on it to download the publish profile of your web app on azure.
  4. Save it on your system.

Deployment from visual studio

  1. Open the project in visual studio which you want to publish
  2. Right click on the project and choose publish
  3. Choose Import and browse to the publish profile file that we downloaded from azure

  4. After importing choose validate connection to check the connections from visual studio to azure
  5. After Validation it will show a green check as shown below

  6. Now click on publish button to publish your project on azure
  7. Visual studio will show errors if there are any, fix them and again follow the same process. Once it builds properly, it will be deployed on azure. Success message will be displayed in visual studio once it is deployed successfully on azure.
  8. You can see and run it by using your app url.

Note: There are lot of settings and configurations of azure that we can do while publishing or before publishing. Please feel free to comment and ask questions so that we can do a tutorial on those settings. You can also see the tutorial on Deployment of multiple projects in single azure web app

Happy Coding 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *