sparse-intern-71089
12/31/2020, 1:52 AMbusy-dress-78329
02/02/2021, 11:29 PM- task: Pulumi@1
displayName: 'Deploy Pulumi Stack'
inputs:
azureSubscription: '${{ parameters.azureSubscription }}'
command: 'up'
args: '--yes'
cwd: '$(Pipeline.Workspace)/${{ parameters.pulumiArtifactName }}'
stack: '${{ parameters.pulumiStack }}'
createStack: true
loginArgs: '--cloud-url ${{ parameters.pulumiCloudUrl }}'
- script:
echo "##vso[task.setvariable variable=deployTest;isOutput=true]$(pulumi stack output APP_SERVICE_NAME --cwd $(Pipeline.Workspace)/${{ parameters.pulumiArtifactName }} --stack ${{ parameters.pulumiStack }})"
displayName: 'Set stack outputs as variables'
name: 'pulumiangulart1'
- bash: |
echo "After:"
echo "cwd: $(Pipeline.Workspace)/${{ parameters.pulumiArtifactName }}"
echo "stack: ${{ parameters.pulumiStack }}"
echo "loginArgs: ${{ parameters.pulumiCloudUrl }}"
echo "Using an input-macro APP_SERVICE_NAME works: $(deployTest)"
It cant seem to find the stack although I'm using all of the same references.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by