QuestionQ49

VerifiedSecure, monitor, troubleshoot Azure solutions

You plan to deploy a container to an Azure App Service API app named api1. The source code for api1 is hosted in a GitHub repository. The container uses the API key at runtime to connect to a backend service.

The container must be able to retrieve the API key at runtime without exposing it in the source repository or Git commit history.

You need to ensure that the API key remains outside of Git commit history and is available to the container at runtime.

Solution: Store the API key in Azure Key Vault and reference it through an App Service application setting.

Does this solution meet the goal?

Explanation

Azure App Service can resolve an Azure Key Vault reference used as an application setting, allowing the container to consume the API key at runtime. The secret is stored in Key Vault rather than in source code or Git commit history.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!