Rotate and Verify Secrets
A 3-step recipe with Azure Container Apps. We can help you get access.
Recipe · 3 steps
Rotate and Verify Secrets
with Azure Container Apps · IT Infrastructure Management
Rotate a named container app secret and confirm it via the list-secrets operation.
- Patch the container app configuration with the new secret value in the ARM properties envelope.
- Read the container app and check its provisioningState, looping while the configuration change is still applying and proceeding once it settles.
- List the container app secrets to confirm the rotated secret is present.
What you'll need to have ready
- subscriptionId: The Azure subscription ID.
- resourceGroupName: The name of the resource group.
- containerAppName: The name of the container app.
- location: The Azure region of the app (e.g. eastus).
- secretName: The name of the secret to add or rotate.
- secretValue: The new value for the secret.
- apiVersion: Client API version.
For your developer
Arazzo workflow azure-container-apps:rotate-and-verify-secrets, 3 operations: ContainerApps_Update → ContainerApps_Get → ContainerApps_ListSecrets. Specs on APIs.io.