I\'ve successfully built my code on Azure Dev Ops by modifying the pipeline YAML file, but I have been unable to successfully deploy the artifact to my IIS Server. The only
The "Release" section in Azure DevOps is still only in the UI, you can't use it in YAML.
But when you enable the multi-stage pipelines you can use the "build" YAML pipelines also to deploy your app (you can see that no "Builds" tab anymore, there is "Pipelines").
The downside is that you don't have all the features that exist in the release, like approvals, gates, etc. but you can see in the roadmap that Microsoft work on it and the features will be available also in the YAML.
You can check this article on how to use the multi-stage YAML for build & deployment.
Another good tutorial from Microsoft available here.