![]() Once the build is complete, I will start editing the YAML file again, then adding a new stage. I will add a new step to start creating the web package.zip, then store that package on Azure DevOps artifacts, then run or kick a new build again. Run or kick a continuous integration buildĪfter that, I will run or kick a continuous integration build.Īdding a new pipeline stage to the YAML fileĪfter the build completes, I will open the YAML file again for editing. The template tasks including restoring all the NuGet packages, build the application, run the unit tests and so on. Since my application is an ASP.NET application, I will choose the ASP.NET template, which is a ready-made YAML file for some build tasks for ASP.NET. When I create the YAML file, I can choose which YAML template to use. The YAML file usually stored in the same repository with the application code. The first step is to create a YAML pipeline file which is the build pipeline as a code, then choose the location where I want to store the file. Once, I complete that, I will open Azure DevOps and navigate to the Azure pipeline. Tip ( Kubernetes cluster for beginner ) For more information about how to work with Kubernetes cluster and deploy it to Azure Kubernetes Service (AKS) and work with Azure Container Registry, see Kubernetes cluster for beginner In order to do that, I will open my Azure portal and create a resource group, I will use a predefined Azure template which will create all the components needed for the infrastructure for the application, this includes an Azure Service Plan, Azure Web App, SQL Server on Azure.Īlso, the template will create and configure Azure firewall rule for Azure SQL, so Azure Web App can have permission to access Azure SQL. So, the first step is to start creating the infrastructure for the application manually, since we are not doing them as code. ![]() r ) trigger : - main stages : - stage : Build jobs : - job : Build pool : name : Default workspace : clean : outputs steps : - task : 1 inputs : solution : '**\*.sln' msbuildArgs : '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"' platform : 'any cpu' configuration : 'release' - task : 1 inputs : PathtoPublish : '$(Build.ArtifactStagingDirectory)' ArtifactName : 'drop' publishLocation : 'Container' - stage : Deploy jobs : - job : DeployWeb pool : name : Default steps : - powershell : "write-host" - task : 1 inputs : buildType : 'specific' project : '0a1af395-65ea-473b-b60e-01fdc0d3f93e' pipeline : '11' buildVersionToDownload : 'latest' downloadType : 'single' downloadPath : '$(System.ArtifactsDirectory)' - task : 4 inputs : ConnectionType : 'AzureRM' azureSubscription : 'testconn' appType : 'webApp' WebAppName : 'demotest0103' packageForLinux : '$(System.ArtifactsDirectory)/**/*.Creating the infrastructure for the application manually ![]() ![]() Name : sampleApp_$ ( Date : yyyyMMdd ) $ ( Rev. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |