I’m trying to setup CI for my web app and I have the pipeline setup in ADO, but I don’t see my changes reflecting on the web app. I suspect I don’t have my YAML file configured and not sure which example is the best for me to follow.
- Publishing model – Code
- Runtime Stack – Dotnet – v6.0
- Windows
2
Answers
I was able to get this working.
One thing I found was that my virtual directory was configured to the wrong location. It needed to be
sitewwwroot
. I also needed to update my YAML to$(Build.SourcesDirectory )/src
andincludeRootFolder = false
In order to deploy the
.Net 6.0 app
correctly viaAzure Devops yaml pipeline
, Refer the steps below:-I pushed my code to Azure Repos like below:-
Click on
1)Set up build > Starter Pipeline
OR2)Pipelines on the left > New Pipeline > Azure repos git > Select your Azure repository that contains the .Net 6.0 App. > Starter Pipeline:-
Add the below YAML pipeline for the Web app deployment:-
Click on Save and run and Save and run to run the pipeline, The Web app will be deployed to Azure Web app successfully like below:-
Output:-
Now,
I made a change in my **
.Net 6.0 Web app** and visit the previous pipeline > Click on run new > the deployment got triggered successfully
:-Output:-