An Azure service that provides hardware security module management.
Hi Manohara C,
Thanks for reaching out in Microsoft Q&A forum.
It looks like you’ve hit the immutable-purge-protection guard on Managed HSM, once you flip that switch on a pool, there’s no way to turn it off or bypass it (not even with a support ticket). Here’s the deal:
What’s happening
- Purge protection locks down your soft-deleted HSM for the entire retention window (90 days in your case).
- During that window you can recover the HSM if you need to, but you can’t permanently purge it until the period expires.
- After 90 days, Azure automatically purges the HSM and you’re free to recreate pools or keys with the same name.
Your remediation options
- Wait for the 90-day soft-delete retention to lapse. Once that timer finishes, Azure will auto-purge the HSM.
- If you need the name sooner, you’ll either have to pick a new HSM name in the meantime or plan your deployments around the retention window.
Unfortunately, there’s no CLI/PowerShell/API trick or subscription workaround that overrides purge protection. It’s baked into the service to protect against malicious or accidental permanent deletes.
References
Hope that clarifies why it’s stuck and why the only real path forward is to let the retention period run its course.
Please do not forget to
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.