Change the cosmos db secret name from COSMOSDB_PRIMARY_KEY to a secret name supported by AKV #1839
Labels
needs-triage
For new issues that are raised to get reviewed by internal Microsoft employees
AKV requires alphanumeric characters. If a user adds AKV functionality to the existing app, they will see an error if they try to use the existing names:
c:>az keyvault secret set --vault-name "mykeyvault" --name "COSMOSDB_PRIMARY_KEY" --value "..."
Error observed: Parameter 'secret_name' must conform to the following pattern: '^[0-9a-zA-Z-]+$'.
Describe the solution you'd like
Change the setting name from COSMOSDB_PRIMARY_KEY to something without underscores, such as COSMOSDBPRIMARYKEY
more info:
https://docs.microsoft.com/en-us/aspnet/core/security/key-vault-configuration?view=aspnetcore-5.0#secret-storage-in-the-production-environment-with-azure-key-vault "Azure Key Vault secret names are limited to alphanumeric characters and dashes."
The text was updated successfully, but these errors were encountered: