Home > News content

Release ASP.NET Core to Azure Web APP

via:博客园     time:2016/7/4 18:00:50     readed:1948

English text:Continuous deployment using GIT in Azure App Service

Prequel: Using ASP.NET Core build Web API services, we use VS Code to develop a .NET Core (ASP.NET Core) The Web API service, then we need to develop a good issue to Microsoft Azure services performed. And before the same article, if you are using Visual Studio then click Print Action only between complete, but this, we still do not use Visual Studio to implement or use VS Code and instruction.

Initialization GIT

In VS Code to switch to git icon, click the "initialize git Repository" message and enter the first check-in information.

vsvs code - 初始化 git 儲存機制

AZURE WEB APP settings

We want to release .NET Code (ASP.NET Core) app with Azure Web App mechanism of git. Azure Account can not build a free trial account.

Use GIT continuous deployment (CONTINUOUS DEPLOYMENT, CD)

Open Web App and switch to "all set" & rarr; "Deployment source" & rarr; "Select source" & rarr; "native Git Repository."

部署來源部署來源 - 本機 Git 儲存機制

Switch to the "deployment of certification", set Git / FTP login account.

部署認證部署認證 - Git/FTP 登入帳戶

Switch to "Properties", you can get GIT URL. It is necessary to use immediately.

AzureAzure - Git Url

Open cmd.exe execute the following command:

Join distal end (remote) Azure repository to settings:

git remote add azure https: //kkbruceftp@corewebapi.scm.azurewebsites.net: 443 / corewebapi.git

The eucalyptus Push to Azure repository master branch

git push azure master

gitgit push azure master

Test ASP.NET CORE - WEB API

After the completion of the issue, you can be tested:

asp.netasp.net core for azure test

summary

Deployment .NET Code (ASP.NET Core) to Azure is very simple, after obtaining the GIT URL everything will be easier. Also, if you have to use Visual Studio Team Service for version control, then the CI / CD operation will be more perfect.

China IT News APP

Download China IT News APP

Please rate this news

The average score will be displayed after you score.

Post comment

Do not see clearly? Click for a new code.

User comments