I have a multi-stage YAML pipeline:
Build Solution
|
▼
Terraform DEV \
| |
▼ |
Deploy Function App | DEV Environment (No Approval Required)
| |
▼ |
Provision API Mgmt /
|
▼
Terraform TEST \
| |
▼ |
Deploy Function App | TEST Environment (Approval Required)
| |
▼ |
Provision API Mgmt /
I have two environments configured (DEV
and TEST
) with an Approval configured on the TEST
environment and the Terraform TEST
stage has a deployment job configured to use the TEST
environment. This means that when the pipeline reaches the Terraform TEST
stage an email is sent to the approvers for the TEST
environment and it waits.
When that stage is then approved the build continues.
The Deploy Function App
stage also has a deployment job targetting the environment for that part of the pipeline. My issue is that when it reaches the Deploy Function App
for the TEST
environment it again asks for approval to deploy to the TEST
environment.
My question is: Is this fixed behaviour? i.e. whenever a deployment is made to an environment with an approval is a new approval required? Or is there a way to change it so a pipeline only needs one approval to deploy (as many times as required) to a specific environment?