Created
December 24, 2023 13:16
-
-
Save kasunsjc/8bfcee4b7d91d11751decc188d4baba7 to your computer and use it in GitHub Desktop.
devops yaml pipeline with federated workload identity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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