> For the complete documentation index, see [llms.txt](https://docs.duplocloud.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplocloud.com/docs/automation-platform/overview-2/azure-services/containers-and-services/passing-config-and-secrets.md).

# Passing Configs and Secrets

There are many ways to pass configurations to containers at run-time. Although simple to set up, using Environmental Variables can become complex if there are too many configurations, especially files and certificates. In Kubernetes, you also have the option to populate environment variables from [Config Maps](/docs/automation-platform/kubernetes-overview/configs-and-secrets/mounting-config-as-files.md#creating-a-kubernetes-configmap) or [Secrets](/docs/automation-platform/kubernetes-overview/configs-and-secrets/setting-kubernetes-secrets.md#setting-kubernetes-secrets).

There are several methods for passing configurations to containers during runtime:.

1. **Environment Variables**: A simple method for passing configuration data, but it can become cumbersome when dealing with many configurations or sensitive data like certificates and keys.
2. **ConfigMaps and Secrets in Kubernetes**: For more structured management of configuration data, Kubernetes offers ConfigMaps for non-sensitive data and Secrets for sensitive data (e.g., passwords, tokens). These can be injected into containers at runtime, providing a cleaner and more secure way to manage configurations.
   * [Learn more about using ConfigMaps and Secrets in Kubernetes.](/docs/automation-platform/kubernetes-overview/configs-and-secrets.md)
3. **Azure Key Vault**: For Azure users, **Azure Key Vault** is an option to securely store and manage sensitive configurations and secrets outside of your application, reducing the complexity of handling sensitive data.
   * [Learn more about Azure Key Vault for secrets management.](/docs/automation-platform/overview-2/azure-services/key-vault.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview-2/azure-services/containers-and-services/passing-config-and-secrets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
