Interview Prep/Azure/Compute and App Platforms

How should App Service or Functions read secrets?

IntermediateConceptCompute and App Platforms
Answer

Use Key Vault references in app settings, resolved by the platform with the app's managed identity:

[email protected](SecretUri=https://kv-shop.vault.azure.net/secrets/db-password/)

Grant the identity Key Vault Secrets User. Omit the version to pick up rotations (refreshed within 24 hours, or on restart). Even better, use Entra auth to the database directly (Azure SQL, PostgreSQL Flexible Server support it) so there is no password at all.

Azure All Azure questions Roadmap: Azure core services

More on Compute and App Platforms