Azure DevOps release pipeline: Deploy a .NET application to IIS (CI/CD YAML tutorial)

preview_player
Показать описание
This video will look at creating a Azure DevOps release pipeline to deploy a .NET Web API to IIS.

In this CI/CD tutorial, we'll show you how to set up an environment so you can release to IIS.

Afterwards, we'll talk through how to link with GitHub and start to code a release pipeline using YAML.

The tasks will involve the artifacts download, using resources to use your release pipeline to link to your build pipeline, variables setup and IIS deployment.

This will help you set up continuous integration (CI) and continuous deployment (CD) for your .NET website.

💻 Download the code example for this demo 💻

📖 Learn .NET and C# with our online courses 📖

🎥 .NET CI/CD with Azure playlist 🎥

► More information:

► Chapters
0:00 Coming up...
0:06 Why Azure Release Pipeline is important for CD
0:43 Dependency injection course
0:52 Set IIS website
1:42 Create Environment in Azure DevOps
3:03 Rename pipelines
3:37 Create Release pipeline
4:48 Code YAML file for Release Pipeline
11:50 Run Release Pipeline
12:38 How the Package path works
13:26 Top Tip
14:08 What we've learnt

#azure #pipelines #dotnet
Рекомендации по теме
Комментарии
Автор

I cannot explain enough how this video is infinitely better than all of the Microsoft documentation combined. Great job. Thank you.

BigRouch
Автор

Great video! It's extremely helpful as I put together build and deploy pipelines at my current job. The explanation near the end about the Package location is also very much appreciated.

joehernandez
Автор

Thanks very much for this. very good and clear tutorial!

andrewbrady
Автор

Thank you sir for this great and easy understandable video! Thank you!

piriyaie
Автор

Very nice.. very clear explanation.. loved it.. thank you very much ❤

khanfaizan
Автор

This video answered lots of my questions. If I want to set up a website on my local machine IIS and use Azure DevOps for CI/CD, should I have a valid IP for my local machine?

mshahabfar
Автор

Very nice video, thanks
However will this procedure work if the website is hosted on a on-premis webserver that has IIS installed? Meaning that the website is not hosted on Azure.

Mo-efyt
Автор

very nice explanation and content and I understand the flow and process.
I'm trying to create environment on the Azure_DevOps.
While I run the Shell Script on my server so I got bellow error
"A connection attempt failed because the connected party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond.
Failed to connect. Try again or ctrl-c to quit"

naeemansari
Автор

at the end, will this only deploy the changed/new files or it will deploy the whole project on each github commit ?

androidsavior
Автор

This video helped me out a lot to locate the artifact. One question though: the title indicates it's a CI/CD tutorial, but your trigger for the release pipeline is "none". How do we wire it up to trigger after a successful build to make it truly a CD solution?

Astynax
Автор

Great content! has like 10 more required input properties. How did you get past not specifying them?

AG
Автор

Is there a way to add App_Offline.htm in this script before doing a release ?
Is there a general Azure devops YAML documentation available somewhere ? I can't seem to find it.

oloidhexasphericon
Автор

Will this work if the agent is not on the same vm? My pipeline agent is on vm A and my iis server is on another vm B in azure.

axelaceax
Автор

6:51 Could you please tell why did defined the pool: vmImage: windows-latest ? in release pipeline

idreesahmed
Автор

Hi sir.. Thank you for the great video.. There is one question that how I can connect sql server project on azure devops

patrickmathew
Автор

I got a noob question, Do you think this will work if my IIS Server is not on Azure Server but somewhere else like in my Personal Machine. Will the Agent be able to download the Artificats and Deploy ?

ProDevelopmentPK
Автор

Excellent video, I'm super stuck when I get to the step:
when the pipeline is running I get the following error: "##[error]Error: No package found with specified pattern.<br/>Check if the package mentioned in the task is published as an artifact in the build or a previous stage and downloaded in the current job."

I really think I can't match the line you have
Package: "Package: from the .yaml

could you advise me?

osvaldofervio
Автор

really very helpful video, Please help me with below error while installing azagent in azure vm.

Exception calling "DownloadFile" with "2" argument(s): "Unable to connect to the remote server"
At line:1 char:1303 and agentzip file is not downloading

442 port is already

Please suggest what are security settings that I need to check from vm side and Azure devops side?

sandeepnarayana
Автор

thank you for your greats info, but i facing error when i run release pipeline
/azure-pipelines-2.yml (Line: 14, Col: 18): Pipeline Resource buildPipeline Input Must be Valid.

ziuolsr
Автор

Your explanation is really good but at 10:30 you have used variables in two variations ${{ variable.name }} and $(variable.name). why is that? and whats the difference between them?

dinkar-singh