-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Calling 'az webapp config appsettings set' at cli version 2.24.0, with a json setting file, containing key vault references sets 'False' instead of the reference value.
For the this file example...
[
{
"slotSetting": false,
"value": "@Microsoft.KeyVault(SecretUri=https://KeyVaultName.vault.azure.net/secrets/SecretName)",
"name": "TestSetting1"
},
{
"slotSetting": false,
"value": "TestValue2",
"name": "TestSetting2"
}
]
az webapp config appsettings set --name --resource-group --settings @JsonFileName.json
The call using 2.24.0 returns the following result:
[
{
"name": "TestSetting1",
"slotSetting": false,
"value": "False"
},
{
"name": "TestSetting2",
"slotSetting": false,
"value": "TestValue2"
}
]
Note the KeyVault reference is set to "False" as a string value, and not the expected reference string.
These same values are reflected within the app service configuration ui.
The call using 2.23.0 returns the following result:
[
{
"name": "TestSetting1",
"slotSetting": false,
"value": "@Microsoft.KeyVault(SecretUri=https://KeyVaultName.vault.azure.net/secrets/SecretName)"
},
{
"name": "TestSetting2",
"slotSetting": false,
"value": "TestValue2"
}
]
Works as expected in 2.23.0, which at the time of this writing was still available in Azure Cloud Shell, but using the cli in Azure Dev Ops pipelines has already been updated to 2.24.0 breaking for all pipelines requiring it.
Use of an actual key vault is not required for testing.