Verify Azure Secret Values
This runbook describes how to verify that secret/configuration values are correctly deployed to application containers.
Prerequisites
- Follow the SSH into Azure VMs runbook to connect to the target VM
Steps
1. List Running Containers
docker psThis will show all running containers. Identify the container you need to inspect.
2. Exec Into the Container
Linux containers:
docker exec -it <container_name_or_id> bashWindows containers:
docker exec -it <container_name_or_id> pwsh3. Verify Configuration Values
Secrets are typically stored in either appsettings.json
or Web.config.
Windows (Web.config):
Select-String "clientse" .\Web.configLinux (appsettings.json):
cat appsettings.json | grep clientseReplace the search pattern (“clientse”) with the specific secret or configuration key you’re looking for.
Edit this page