Azure-Samples / modern-data-warehouse-dataops

DataOps for Microsoft Data Platform technologies. https://aka.ms/dataops-repo
MIT License
590 stars 462 forks source link

KeyVault Set command fails when pwd starts with "-" #823

Open ydaponte opened 1 week ago

ydaponte commented 1 week ago

./deploy.sh script fails when generated password starts with an hifen:

root@2cc48ea0fb7b:/workspace/e2e_samples/parking_sensors# az keyvault secret set --vault-name mdwdops-kv-dev-ys10 --name spAdfPass --value -qR8QXXXXXXXXXXXXXXXXXXXXXXXXX argument --value: expected one argument

DoD

LiliamLeme commented 1 week ago

./e2e_samples/parking_sensors/scripts/deploy_infrastructure add the secrets to the vault. problem: az ad sp create-for-rbac after the SP is created the output in JSON format is extracted - "$sp_adf_out" | jq -r '.password'. Pasword may starts with"-" . Action: Validated password stored in the Vault.