First Rotation
This example uses an existing .env file containing a Storage Account, Azure
AI, Cognitive Services, or Azure OpenAI key.
Sign in
Section titled “Sign in”azurator loginChoose the subscription containing the key resources.
Rotate the matched keys
Section titled “Rotate the matched keys”azurator rotate --env-file .envAzurator then:
- matches dotenv values to supported Azure key slots
- finds supported Azure configuration that stores the same keys
- displays the complete rotation plan
- asks once for confirmation
- rotates the keys, updates each listed entry, and verifies the stored values
Azurator checks only its documented configuration types. Finding no stored copy does not prove that no other configuration or running workload uses the key.
When possible, Azurator temporarily moves known configuration to the account’s other valid key before rotating the selected slot. Only matching dotenv values are replaced. Other variables, comments, and line endings remain unchanged.
Updating App Service application settings restarts the affected app. Avoid editing or deploying those settings during rotation.
Inspect without changing anything
Section titled “Inspect without changing anything”Show matches:
azurator match --env-file .envPreview the rotation plan:
azurator plan --env-file .envSee Rotate a dotenv File for the supported
file format and interruption behavior. Use
Rotate a SOPS File for an encrypted dotenv
file. Run azurator rotate without a file option to choose keys interactively.