Understanding the CD pipeline
CD is a process by which you automate the deployment of code to target environments. CD pipelines use artifacts produced by CI pipelines and deploy to one or more environments. Like the CI pipeline, we can use YAML files or a classic editor to define a CD pipeline. You can specify conditions on the preceding stage execution state or add approval checks to deploy, which is a very common scenario for production deployments.
You can also configure to run automated UI tests to perform a sanity check post-deployment. Based on the sanity check results, you can configure to automatically promote code to a higher environment.
At any point in time, if the deployment to a stage fails, we can re-deploy code from previous releases. Depending on the configured retention policy under the project settings, Azure DevOps retains build artifacts so that it is easy to deploy code of any version at any time. If you find any issues with the application post-deployment...