Reputation: 1070
Let's say I have a YAML pipeline, releasing to dev and prod, and I want to set an approval before releasing to production. Currently, this can be done via Environments approvals (MS Docs - Define approvals and checks).
However, this seems to work only for virtual machines.
How can I set an approval when releasing to Azure PaaS components, e.g. Azure function or Azure App Service?
Upvotes: 0
Views: 734
Reputation: 9208
In your pipeline you need to define a deployment job, specifying an Environment which is configured to require an Approval.
Upvotes: 0
Reputation: 1070
To achieve this, go to service connection that is used to connect to cloud env, and set the approval there.
Project settings -> service connections -> select your connection (prod) -> click the three dots -> approvals and checks.
Upvotes: 1