CIS Microsoft Azure Foundations Benchmark v1.4.0/Storage Accounts/39 of 115
3.2Ensure That Storage Account Access Keys are Periodically Regenerated
Control family: Storage Accounts
Control description
Regenerate storage account access keys periodically.
How to implement
ResponsibilityCustomerYou configure and operate this in your own cloud accounts.
Storage account keys give full control of the account to anyone who has them, and they never expire on their own. Regenerating them on a schedule limits how long a leaked key works. Better still, applications move to Microsoft Entra authorization so the keys aren't needed at all.
Before you start
The same on every cloud, before the steps in the tabs.
- List which applications still use account keys, and plan to move them to Microsoft Entra authorization.
Evidence
- The list of applications using account keys and the plan to move them
On Azure the tasks regenerate keys one at a time from the account's Access keys page with a rotation reminder, and flag overdue keys with Azure Policy.
Task 1Regenerate the keys without downtime
- Sign in to the Azure portal at portal.azure.com and open Storage accounts, then the account.
- Select Security + networking > Access keys.
- Move applications to key2 (or its connection string), then select Regenerate next to key1.
- Move applications back to the new key1, then select Regenerate next to key2.
- Select Set rotation reminder, check Enable key rotation reminders, set the frequency (for example 90 days) and select Save.
- Check it: both keys show a recent rotation date and the reminder is set.
Task 2Flag keys that are overdue
- Open Policy > Assignments and select Assign Policy.
- Set Scope to the subscription, and under Policy definition choose Storage account keys should not be expired.
- Select Review + create, then Create.
- Check it: Policy > Compliance lists any account whose keys passed their reminder period.
Evidence
- Access keys of each account, showing recent regeneration and the rotation reminder
- The compliance results of Storage account keys should not be expired
Not applicable. This benchmark covers Azure only.
Not applicable. This benchmark covers Azure only.
Console steps as of 5 November 2026. Not every step has been confirmed in a live console yet, and menus and labels can move between releases, so look for the nearest match if one has changed.