witty-spring-28765
07/12/2020, 7:36 PMrich-napkin-40911
07/12/2020, 7:50 PM- script: |
echo "##vso[task.setvariable variable=ARM_CLIENT_ID]$(client_id)"
echo "##vso[task.setvariable variable=ARM_SUBSCRIPTION_ID]$(subscription_id)"
echo "##vso[task.setvariable variable=ARM_TENANT_ID]$(tenant_id)"
echo "##vso[task.setvariable variable=AZURE_CLIENT_ID]$(client_id)"
echo "##vso[task.setvariable variable=AZURE_STORAGE_ACCOUNT]$(storage_account)"
echo "##vso[task.setvariable variable=AZURE_TENANT_ID]$(tenant_id)"
displayName: Set variables
Then, when I want to do something with pulumi
, I need to re-declare the "secret" variables as they're not exported by default; in the following steps:
- I'm downloading the pulumi
cli
- I'm installing my packages (pulumi
bin needs to be available in this step; that's why I export
the PATH
in this step
- The final step is to actually use those variables to do something with pulumi
cli
- script: |
curl -fsSL <https://get.pulumi.com> | sh
displayName: Get pulumi
- script: |
export PATH=$HOME/.pulumi/bin:$PATH
npm install
workingDirectory: deployment/pulumi-deploy
displayName: Install Pulumi packages
- script: |
export PATH=$HOME/.pulumi/bin:$PATH
export ARM_CLIENT_SECRET='$(client_secret)'
export AZURE_CLIENT_SECRET='$(client_secret)'
export AZURE_STORAGE_KEY='$(access_key)'
pulumi login <azblob://pulumitest>
pulumi stack select dev
pulumi preview
workingDirectory: deployment/pulumi-deploy
displayName: Pulumi preview
For pulumi up
, we can basically copy/paste the last step above and change the commandcolossal-room-15708
07/12/2020, 11:33 PMmillions-journalist-34868
07/13/2020, 6:19 AMwitty-spring-28765
07/13/2020, 3:06 PMpulumi new
to do so: So should I create a project, the link doesnot ask to create a project explicitly.
-pushed to remote as suggested in the link. This is supposed to create Pipeline in Azure Devops and I dont get one. Is this how people are using the Azure Devops with Pulumi?millions-journalist-34868
07/13/2020, 4:09 PMwitty-spring-28765
07/13/2020, 6:15 PMpulumi plugin install resource azure v3.12.1
The script to install requirements did install pulumi-azure:
Successfully installed arpeggio-1.9.2 attrs-19.3.0 dill-0.3.2 grpcio-1.29.0 parver-0.3.0 protobuf-3.12.2 pulumi-2.6.1 pulumi-azure-3.12.1 semver-2.10.2 six-1.15.0