An Azure service that provides hardware security module management.
Hello Michael McCoy FD,
Welcome to Microsoft Q&A,
- Yes, unfortunately. The docs state explicitly:
The underlying resources remain allocated even in a deleted state. Purging it as soon as possible is the only way to stop charges."Soft-deleted Managed HSM resources will continue to be billed at their full hourly rate until they're purged."
- Only if it was explicitly enabled when the HSM was created. Purge protection is not enabled by default. It requires a deliberate
--enable-purge-protectionflag. If it wasn't set during your accidental creation, you can purge right now. If it was enabled, no one, not even Microsoft, can override it until the retention period ends (default 90 days). To check whether purge protection is on, run:az keyvault show --subscription <subscription-id> -g <resource-group> --hsm-name <hsm-name> - Subscription Owner and Global Admin are not sufficient on their own, you need the Managed HSM Contributor role to purge soft-deleted HSMs. As Owner, you can assign this to yourself.
[https://learn.microsoft.com/en-us/cli/azure/keyvault?view=azure-cli-latest#az-keyvault-purge](https://learn.microsoft.com/en-us/cli/azure/keyvault?view=azure-cli-latest#az-keyvault-purge) -
- Billing relief is handled via Azure Billing Support. To raise a ticket when the portal option isn't working, go directly to: https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade Select Billing as the issue type. Billing support is free on all plans, including Pay-As-You-Go. Explain that it was an accidental creation that was never activated or used. Microsoft reviews these on a case-by-case basis and has granted credits for genuine accidental deployments.
Please Upvote and accept the answer if it helps