Alejandro Alvarez
Alejandro Alvarez

Reputation: 144

How to share ARM Outputs between Stages in Azure Release Pipelines

In Azure DevOps I have a Release Pipeline that has 2 Stages with the following Tasks:

Stage 1:

Stage 2:

I want to pass ARM Outputs of the Stage 1, to the Stage 2, in order to use them in the ARM Template of the Stage 2.

Any ideas on how to achieve this in the Azure DevOs Portal?

Pipeline: enter image description here

Stage 1

enter image description here

Stage 2

enter image description here

Upvotes: 0

Views: 230

Answers (1)

Frederik Gheysels
Frederik Gheysels

Reputation: 56964

One idea would be to write your ARM outputs to a variable group, and use that variable group in Stage 2. I'm sure that will work, but I doubt that this is the best possible solution.

You can use the Set-AzDevOpsArmOutputs cmdlet from the Arcus.Scripting scripting library. You can see here how you can use it.

Upvotes: 1

Related Questions