📜 ⬆️ ⬇️

How to deploy web sites in Microsoft Azure?

Halloween Week - a population of articles about websites in the Microsoft Azure cloud doubles.

As many know, Microsoft Azure has a very simple service for hosting websites on .NET, Java, PHP, Python, Node.js. This article can be used as a cheat sheet to keep on hand a list of deployment options and links to instructions.
In the cheat sheet: Visual Studio, Git, Mercurial, TFS, WebMatrix, MSBuild and WebDeploy.


')

Expand your website with a version control system located in the cloud



A simple and good way to deploy a website is to set up a version control system in the cloud . This removes the need to install and configure it locally.

Visual Studio Online (VSO)


Visual Studio Online (formerly Team Foundation Service) is a cloud-based service in the form of a version control system and other features for collaboration within teams. The service is free for use by up to 5 developers. VSO is fully integrated with Azure Websites, and the repository can be Git or TFVC .

More details:


Git in the cloud


Azure has a set of features to automate the deployment of websites from Git repositories to Azure WebSites ( GitHub , CodePlex and BitBucket ).

More details:


Mercurial


Azure has support for Mercurial with repositories in CodePlex and BitBucket .

More details:


Dropbox


Dropbox is not a version control system, but you can store the code, respectively, and deploy it.


Deploying from IDE


Visual Studio and WebMatrix are Microsoft development tools that can be used for web development. Both tools have built-in functions for deploying to Azure WebSites, both can use Web Deploy to automate tasks, such as database deployment, and both can deploy via FTP or FTPS ).

Visual studio


More details:


Webmatrix


More details:


Deploy via FTP


You can deploy websites to Azure WebSites via FTP — for example, using Internet Explorer or FileZilla . Azure Websites support FTPS. However, deploying via FTP does not support additional tasks, such as database deployment, and does not support comparing files at the source and destination.

More details:


Deploy using a version control system locally


If you are using local TFS, Git or Mercurial, then from these repositories you can also deploy websites to Azure WebSites.

Local Git or Mercurial


In Azure, simply enter the URL of the Git or Mercurial repository to deploy from them.

More details:


Deploy using command line utilities and Azure REST API Management API


Automating is always good, but if this does not work with the version control system, you can always use command line utilities. In Azure, many management tasks are simplified, plus there is a REST API for managing the platform and several frameworks for working with it.

Msbuild


If you are using Visual Studio IDE for development, you can use MSBuild for automation by configuring it to use Web Deploy or FTP / FTPS . Web Deploy can automate tasks such as database deployment.

More details:


FTP scripts


Accessing Azure WebSites via FTP / FTPS is quite simple, and the created account for access can be used to execute FTP scripts.

More details:


Windows powershell


You can deploy MSBuild or FTP using Windows PowerShell using a large number of cmdlets specialized in working with the Azure REST API.

More details:


.NET management API


For MSBuild or FTP, you can write C # code to access the REST API.

More details:
.

Cross-platform command line utilities (xpat-cli)


Command line utilities for platform management and deployment are also available on Mac and Linux.

More details:


Web deploy


More details:


What's next?


Deployed?
Read about how to test Azure WebSites in production .
Learn how your websites work and how they are made.
Read the rest of the documentation .

useful links


Source: https://habr.com/ru/post/242075/


All Articles