Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created March 10, 2024 09:26
Show Gist options
  • Save johnlokerse/58e0dd21b33412ec0e6fe0b48face284 to your computer and use it in GitHub Desktop.
Save johnlokerse/58e0dd21b33412ec0e6fe0b48face284 to your computer and use it in GitHub Desktop.
Setup approval flows on Azure DevOps service connections blog
trigger: none
pool:
vmImage: "windows-latest"
stages:
- stage: StageOne
displayName: "sc-prod"
jobs:
- job: "JobOne"
displayName: "JobOne"
steps:
- task: AzureCLI@2
inputs:
azureSubscription: "azure-sc-prod"
scriptType: "ps"
scriptLocation: "inlineScript"
inlineScript: "az --version"
displayName: "Azure CLI Task"
- job: "JobTwo"
dependsOn: "JobOne"
displayName: "JobTwo"
steps:
- task: AzureCLI@2
inputs:
azureSubscription: "azure-sc-prod"
scriptType: "ps"
scriptLocation: "inlineScript"
inlineScript: "az --version"
displayName: "Azure CLI Task2"
- stage: StageTwo
displayName: "sc-prod-entra"
jobs:
- job: "JobThree"
displayName: "JobThree"
steps:
- task: AzureCLI@2
inputs:
azureSubscription: "azure-sc-prod-entra"
scriptType: "ps"
scriptLocation: "inlineScript"
inlineScript: "az --version"
displayName: "Azure CLI Task2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment