Reputation: 144
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?
Stage 1
Stage 2
Upvotes: 0
Views: 230
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