Hi,
I am unable to set Azure AppSettings using KeyVault variables, using BitBucket Deployment variables.
Script:
- step: &set_appsettings
name: Set AppSettings & ConnectionStrings
runs-on: ["windows"]
script:
- az webapp config appsettings set --resource-group $env:AZURE_RESOURCE_GROUP --name $env:AZURE__READ_APP_NAME --settings sqlConnection=$env:sqlConnection
The value in my BitBucket variable:
@microsoft.KeyVault(SecretUri=https://kv.vault.azure.net/secrets/secretname)
If I replace the variable value to "abc" (as an example) everything works. But the moment I swap it to use the KeyVault value above the script fails.
Error: [VariableName] was unexpected at this time.
Has anyone faced this issue before?