nice-application-79035
04/02/2024, 3:00 PM--secrets-provider
but the pulumi task always shows the following error error: getting stack configuration: get stack secrets manager: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables
. Below is my Pulumi task in the ADO pipeline. Could you please tell me why do we need to set ``PULUMI_CONFIG_PASSPHRASE` when I try to use Azure key vault as the secret provider in the environment variable?
task: Pulumi@1
displayName: 'Pulumi Up (Namespace: ${{ parameters.namespace }})'
retryCountOnTaskFailure: 3
inputs:
cwd: '$(Build.SourcesDirectory)/cicd/iac/'
command: 'up'
args: '--yes --config-file=$(CONFIG_FILE_PATH) --secrets-provider=$(KEY_VAULT_PULUMI_KEY)'
loginArgs: '--cloud-url <azblob://pulumistacks?storage_account=$(STORAGE_ACCOUNT_NAME)>'
stack: 'organization/test/virtual-${{ parameters.namespace }}'
azureSubscription: $(PULUMI_STACK_SUBSCRIPTION)
createStack: true
env:
AZURE_STORAGE_ACCOUNT: $(STORAGE_ACCOUNT_NAME)
AZURE_STORAGE_KEY: $(STORAGE_ACCOUNT_KEY)
AZURE_KEYVAULT_AUTH_VIA_CLI: "true"
(edited)echoing-dinner-19531
04/13/2024, 12:08 PM