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

  Рет қаралды 39,206

Round The Code

Round The Code

Күн бұрын

Пікірлер: 82
@BigRouch
@BigRouch Жыл бұрын
I cannot explain enough how this video is infinitely better than all of the Microsoft documentation combined. Great job. Thank you.
@RoundTheCode
@RoundTheCode Жыл бұрын
Thanks for the comment BigRouch. Glad it benefited you.
@TerrenceFerguson
@TerrenceFerguson 3 ай бұрын
I would like to echo the following comment: "I cannot explain enough how this video is infinitely better than all of the Microsoft documentation combined." It's a year later, and this is still true. Thank you for the work on this video.
@HamzaBRiaz
@HamzaBRiaz 3 ай бұрын
I second that.
@joehernandez3231
@joehernandez3231 8 ай бұрын
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.
@RoundTheCode
@RoundTheCode 7 ай бұрын
Glad it helped!
@jeffrdrama7984
@jeffrdrama7984 Ай бұрын
This is fantastic. Would be great to see a whole series on Azure DevOps as there's not a lot of it on your channel so far, plus some of it is slightly out of date (but still very useful!)
@RoundTheCode
@RoundTheCode 10 күн бұрын
Thanks for the idea. I will consider it.
@mattwren
@mattwren Ай бұрын
Awesome video, really clear. Worked first time for me. Thank you.
@RoundTheCode
@RoundTheCode 10 күн бұрын
Great to hear!
@andrewbrady5839
@andrewbrady5839 2 жыл бұрын
Thanks very much for this. very good and clear tutorial!
@RoundTheCode
@RoundTheCode 2 жыл бұрын
You're welcome Andrew. Glad you found it useful.
@mshahabfar
@mshahabfar Жыл бұрын
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?
@fieryscorpion
@fieryscorpion 5 күн бұрын
This is great. Thank you!
@khanfaizan05
@khanfaizan05 6 ай бұрын
Very nice.. very clear explanation.. loved it.. thank you very much ❤
@RoundTheCode
@RoundTheCode 6 ай бұрын
Thanks for the comments.
@idreesahmed2051
@idreesahmed2051 Жыл бұрын
6:51 Could you please tell why did defined the pool: vmImage: windows-latest ? in release pipeline
@RoundTheCode
@RoundTheCode Жыл бұрын
Hi Idrees, Azure Pipelines have a number of virtual images which you can use when running your pipeline. You can see the list here: learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml Essentially, windows-latest will use the latest Windows Server operating system which at present is Windows Server 2022.
@qburanp
@qburanp Жыл бұрын
@@RoundTheCode but why if you don’t use this pool in the pipeline?
@sandeepnarayana9150
@sandeepnarayana9150 10 ай бұрын
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?
@RoundTheCode
@RoundTheCode 10 ай бұрын
Where abouts is that happening? When you publish your .NET application?
@osvaldofervio7809
@osvaldofervio7809 8 ай бұрын
Excellent video, I'm super stuck when I get to the step: "IISWebAppDeploymentOnMachineGroup" when the pipeline is running I get the following error: "##[error]Error: No package found with specified pattern.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: '$(Pipeline.Workspace)\buildPipeline\AzureTestProject\RoundTheCode.AzureTestProject'" from the .yaml could you advise me?
@RoundTheCode
@RoundTheCode 8 ай бұрын
I would need to see your YAML file. Fill out my contact form if you still need help: www.roundthecode.com/contact
@piriyaie
@piriyaie Жыл бұрын
Thank you sir for this great and easy understandable video! Thank you!
@RoundTheCode
@RoundTheCode Жыл бұрын
Glad it was helpful!
@dinkar-singh
@dinkar-singh 6 ай бұрын
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?
@RoundTheCode
@RoundTheCode 6 ай бұрын
I think it's because $(Pipeline.workspace) is a predefined variable
@Mo-ef9yt
@Mo-ef9yt 2 жыл бұрын
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.
@RoundTheCode
@RoundTheCode 2 жыл бұрын
Yes it will. As long as the Azure agent is installed on the server you're deploying to, it will work.
@adminadmin-n4g1c
@adminadmin-n4g1c Жыл бұрын
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.
@RoundTheCode
@RoundTheCode Жыл бұрын
It might mean that you've used that alias on a previous pipeline. This happened me to very recently, so potentially changing the alias to something else and changing any other references from the previous alias within the YAML file may solve the issue.
@Andy-si1pl
@Andy-si1pl Жыл бұрын
I get the same. I changed it to buildPipeline1 but same thing. UPDATE I wrapped it in single quotes like this pipelines: - pipeline: 'MyPipelineAlias' and later on - checkout: none - download: 'MyPipelineAlias' and finally Package: '$(Pipeline.Workspace)\MyPipelineAlias\MyProject\MyProject.Subfolder'
@mateusnascimento8888
@mateusnascimento8888 9 ай бұрын
It happens, the project field inside the pipelines, is the name of the azure project, and not the api project name.
@androidsavior
@androidsavior 10 ай бұрын
at the end, will this only deploy the changed/new files or it will deploy the whole project on each github commit ?
@RoundTheCode
@RoundTheCode 9 ай бұрын
It will deploy the whole project.
@AG34273
@AG34273 Жыл бұрын
Great content! IISWebAppManagementOnMachineGroup has like 10 more required input properties. How did you get past not specifying them?
@AG34273
@AG34273 Жыл бұрын
never mind, it lets me save past the error/warning.
@RoundTheCode
@RoundTheCode Жыл бұрын
Good that you found the content useful Ashish.
@yassineelkharmoudi5329
@yassineelkharmoudi5329 12 күн бұрын
where i can find the code of the yml file in the video.in the download sending by mail i cant find it.thanks in adavnce.
@RoundTheCode
@RoundTheCode 10 күн бұрын
They are in the root of the repo. The build pipeline is azure-pipelines.yml and the release pipeline is azure-pipelines-1.yml github.com/RoundTheCode/AzureTestProject/tree/main
@oloidhexasphericon5349
@oloidhexasphericon5349 10 ай бұрын
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.
@RoundTheCode
@RoundTheCode 9 ай бұрын
Read this article: www.roundthecode.com/dotnet-tutorials/azure-devops-release-pipeline-dotnet-web-api-iis The "Deploy IIS website" section in the article includes an App_Offline.html flag in the YAML.
@ProDevelopmentPK
@ProDevelopmentPK 10 ай бұрын
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 ?
@RoundTheCode
@RoundTheCode 10 ай бұрын
Yes it will as long as it has a connection to the internet. In this demo, I downloaded the agent onto my personal machine to do the deploy.
@Astynax777
@Astynax777 Жыл бұрын
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?
@RoundTheCode
@RoundTheCode Жыл бұрын
This article should explain how to do that. In the resources, there is a 'trigger' option. That might be a way of triggering a resource after a resource. learn.microsoft.com/en-us/azure/devops/pipelines/process/pipeline-triggers?view=azure-devops
@gabrielligeiro1235
@gabrielligeiro1235 9 ай бұрын
basically, just add "trigger: true" here "resources: pipelines: - pipeline: 'BuildCustomName' project: 'YourAzureDevOpsProjectName' source: 'YourAzureDevOpsBuildPipelineName' branch: 'YourGitBrench' trigger: true"
@mrshodz
@mrshodz Жыл бұрын
Great Video.
@RoundTheCode
@RoundTheCode Жыл бұрын
Thanks.
@parthibanparthi3029
@parthibanparthi3029 3 ай бұрын
How to create build Pipeline .yml
@germansantiesteban8085
@germansantiesteban8085 8 ай бұрын
Great explanation. Thanks
@RoundTheCode
@RoundTheCode 8 ай бұрын
Glad it was helpful!
@axelaceax
@axelaceax Жыл бұрын
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.
@RoundTheCode
@RoundTheCode Жыл бұрын
Yes that's fine. You can register agents and environments in Azure DevOps and these can be referenced in your YAML pipeline.
@sibrenbouman5624
@sibrenbouman5624 6 ай бұрын
Hi, I'm getting the following error when trying to run: 'The pipeline is not valid. Unable to resolve latest version for pipeline build-pipeline. This could be due to inaccessible pipeline or no version is available.' Google isn't helping me much. What could be the issue?
@RoundTheCode
@RoundTheCode 6 ай бұрын
Drop me a message on LinkedIn and attach the YAML file to the message. My LinkedIn page is www.roundthecode.com/linkedin
@sibrenbouman5624
@sibrenbouman5624 6 ай бұрын
@@RoundTheCode I've send you a message!
@RoundTheCode
@RoundTheCode 6 ай бұрын
I think you have two PublishBuildArtifacts@1 tasks in your build pipeline.
@sibrenbouman5624
@sibrenbouman5624 6 ай бұрын
@@RoundTheCode I did, but unfortunately removing one didn't fix it.
@patrickmathew9283
@patrickmathew9283 Жыл бұрын
Hi sir.. Thank you for the great video.. There is one question that how I can connect sql server project on azure devops
@RoundTheCode
@RoundTheCode Жыл бұрын
Hi Patrick, With a SQL Server project, you can use the DACPAC file to generate any changes you need. There is more about it here: learn.microsoft.com/en-us/azure/devops/pipelines/targets/azure-sqldb?view=azure-devops&tabs=yaml
@parthibanparthi3029
@parthibanparthi3029 3 ай бұрын
Thanks very much for this video
@RoundTheCode
@RoundTheCode 2 ай бұрын
My pleasure
@sheriffcrandy
@sheriffcrandy 4 ай бұрын
Why don't you use releases?
@RoundTheCode
@RoundTheCode 4 ай бұрын
Releases is the old way of doing it.
@sheriffcrandy
@sheriffcrandy 4 ай бұрын
@@RoundTheCode Maybe for small-scale projects. But for an Azure DevOps implementation housing 50+ large scale enterprise repos, I think standard release pipelines are the way to go. Did microsoft come out with any docs/statements recommending to use only pipelines, not releases anymore?
@rohailabbaszaidi
@rohailabbaszaidi Жыл бұрын
Why did you NOT create release pipeline in RELEASES tab under Pipelines?
@RoundTheCode
@RoundTheCode Жыл бұрын
Hi Rohail, This is where Azure DevOps can get a bit confusing. The releases tab is the old way of building pipelines. Microsoft seem to be encouraging users to use YAML pipelines which appear in the Pipelines tab. Took me ages to work that one out.
@Capt_stupid
@Capt_stupid 7 ай бұрын
@@RoundTheCode Yeah that s super confusing. Would be great i you have mentioned it in the video.
@naeemansari227
@naeemansari227 2 жыл бұрын
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"
@RoundTheCode
@RoundTheCode 2 жыл бұрын
What does the script do?
@jephrennaicker4584
@jephrennaicker4584 Жыл бұрын
very informative!
@RoundTheCode
@RoundTheCode Жыл бұрын
Thanks. Glad it was helpful.
@bystronq
@bystronq 2 жыл бұрын
thank you 🎉
@RoundTheCode
@RoundTheCode 2 жыл бұрын
Thanks for the comment Cemal
@udaynarasimharajukalidindi638
@udaynarasimharajukalidindi638 2 жыл бұрын
thanks
@RoundTheCode
@RoundTheCode 2 жыл бұрын
Thanks for the comment.
@johngelson2473
@johngelson2473 2 жыл бұрын
not so great. Not even remotely helpful for a beginner. lol
@RoundTheCode
@RoundTheCode 2 жыл бұрын
Sorry to hear that John. Did you checkout the full playlist as it introduces Azure DevOps, and shows you how to create a build pipeline kzbin.info/aero/PLNLqfquXi7rsZlj3ZeA1GPMs2x73IINZ1
@patricksuchy5585
@patricksuchy5585 Жыл бұрын
I'm a beginner and it helped me a ton with setting up my first CI/CD Pipeline to an IIS server. I don't think the instructor is the problem here. lol
@RoundTheCode
@RoundTheCode Жыл бұрын
@@patricksuchy5585 Thanks Patrick.
@idreesahmed2051
@idreesahmed2051 Жыл бұрын
Man learn Basics Then you will understand the whole thing I am in the same stage as you
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
Haunted House 😰😨 LeoNata family #shorts
00:37
LeoNata Family
Рет қаралды 14 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 39 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 2,6 МЛН
Azure Devops Pipelines | Deploying to On-Prem Machines
27:41
Tahir Rauf
Рет қаралды 13 М.
Azure DevOps Tutorial for Beginners | CI/CD with Azure Pipelines
36:29
TechWorld with Nana
Рет қаралды 1,3 МЛН
Azure Pipelines - Release
17:36
Microsoft Visual Studio
Рет қаралды 70 М.
Intro to Azure DevOps - Source Control, CI/CD, Automation, and more
32:14
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН