How do I run Pulumi jobs on self-hosted runners with Azure Pipelines?

Running Pulumi jobs on self-hosted runners with Azure Pipelines allows you to manage infrastructure as code effectively. This setup can be beneficial for teams looking to automate their deployment process while maintaining control over their build environment.

Example of a YAML Pipeline Configuration

# azure-pipelines.yml trigger: branches: include: - main pool: name: 'my-self-hosted-pool' steps: - task: NodeTool@0 inputs: versionSpec: '16.x' - script: | npm install -g pulumi pulumi login pulumi stack select my-stack pulumi up --yes displayName: 'Run Pulumi Up'

DevOps Azure Pipelines Pulumi self-hosted runners infrastructure as code CI/CD