Skip to content

Instantly share code, notes, and snippets.

@kasunsjc
Created December 24, 2023 13:16
Show Gist options
  • Select an option

  • Save kasunsjc/8bfcee4b7d91d11751decc188d4baba7 to your computer and use it in GitHub Desktop.

Select an option

Save kasunsjc/8bfcee4b7d91d11751decc188d4baba7 to your computer and use it in GitHub Desktop.
devops yaml pipeline with federated workload identity
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- task: AzureCLI@2
inputs:
azureSubscription: 'federated-manual'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: 'az vm list -o table'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment