I'm trying to create a Task Group out of several tasks that Deploy a few apps into Azure AppService among other things. My idea is to use this Task Group to deploy into different Environments (ie, Dev, QA, UAT, Prod). However, I can't convert Azure Subscription into a variable, which is currently a process Parameter. Is there a solution for that?
Share variables between Tasks across the Jobs (of the same Stage) We need to use the isOutput=true flag when you desire to use the variable in another Task located in another Job. Navigate to Stage1_Job1_Task1 and add isoutput = true flag to the Logging Command which let's us to access the value outside the Job.
Create a task group The easy way to do this is to choose Unlink all in the settings panel for the entire process. Select a sequence of tasks in a build or release pipeline, open the shortcut menu, and then choose Create task group.
To use a variable group, open your pipeline. Select Variables > Variable groups, and then choose Link variable group. In a build pipeline, you see a list of available groups. In a release pipeline, for example, you also see a drop-down list of stages in the pipeline.
You can use variable in Azure Subscription, but the value should be the actual value of related endpoint.
system.debug
variable to true
) and add Azure PowerShell task to get the actual value. $(sub)
) >SavemySub
) with that actual value (step 1)$(mySub)
) in sub
(per to step 3) input box. On the other hand, you can choose azure subscription for related task group directly (step 3, then edit tasks for an environment > Choose Azure Subscription directly)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With