We had already learned, on the storage accounts, what happens when too many resources and too many role assignments pile up in one subscription. These vaults were concentrated in a security subscription. The target is lifecycle-specific subscriptions, RBAC instead of access policies, private endpoints, disabled public access, and tighter permissions.

The quota problem, again

The quota math is straightforward. Azure's 4,000 role assignment limit counts individual assignments. We put five groups or service principals on every vault for management. Multiply that by the number of vaults in a subscription, and those management assignments alone can burn about 25% of the limit. Inheritance at the management group, subscription, and resource group level is how we avoid spending that budget over and over. I also wrote a weekly function that watches the quota so we see a subscription getting full before a deployment fails.

A self-service form, not a ticket pile

A manual request process would not survive this scale, so I built a self-service move form. It talks to Microsoft Graph and to ServiceNow, which is our CMDB, for routing and approvals through the business area owner and manager. Copilot helped me build those integrations, and that part didn't give us trouble. The hard part was a clean form UX, logic that covered every vault move and settings scenario, and nudging teams toward a compliant configuration instead of whatever they already had.

Not doing state surgery this time

We're not reusing the Terraform state surgery from the storage migration. The direction is a one-time deploy from the landing zone repository, then Ansible for stateless updates after that.

There is one awkward leftover. Application Gateways depend on these vaults and automatically apply RBAC to them. When a vault moves, a pipeline opens a pull request on the Application Gateway repo with the vault's new location and imports the RBAC assignments into state. That path worked the first time. I'd rather not keep doing it that way.

Proofs of concept are done, and we're in beta with teams that were willing to go first. Fifteen vaults have been moved. The rest of the 2,700+ is still ahead of us.