Your company is deploying a web application to Azure App Service. The application requires a database connection string that is stored securely as a secret named 'db-conn' in an Azure Key Vault named 'kv-prod'. You need to configure the web app's application settings to reference this Key Vault secret using its name. Which value should you use for the application setting?
- @Microsoft.KeyVault(VaultName=kv-prod;SecretName=db-conn)Cevap
- B@Microsoft.KeyVault(VaultName=kv-prod,SecretName=db-conn)
- Chttps://kv-prod.vault.azure.net/secrets/db-conn
- D@KeyVault(VaultName=kv-prod;SecretName=db-conn)
Cevap
The correct reference format is '@Microsoft.KeyVault(VaultName=kv-prod;SecretName=db-conn)' because it uses the correct prefix, encloses the parameters in parentheses, and separates the VaultName and SecretName parameters with a semicolon.
The correct option is the one specifying '@Microsoft.KeyVault(VaultName=kv-prod;SecretName=db-conn)'. In Azure App Service, Key Vault references in application settings must start with the '@Microsoft.KeyVault' prefix, enclose the properties in parentheses, and use a semicolon as the delimiter between key-value pairs like VaultName and SecretName.
Adım Adım Çözüm
Anahtar Kavram
Azure Key Vault references in Azure App Service Application Settings
Tahmini Süre:45s