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.
In VS Code to switch to git icon, click the "initialize git Repository" message and enter the first check-in information.
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."
Switch to the "deployment of certification", set Git / FTP login account.
Switch to "Properties", you can get GIT URL. It is necessary to use immediately.
Open cmd.exe execute the following command:
Join distal end (remote) Azure repository to settings:
git remote add azure https: //firstname.lastname@example.org: 443 / corewebapi.git
The eucalyptus Push to Azure repository master branch
git push azure master
Test ASP.NET CORE - WEB API
After the completion of the issue, you can be tested:
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.