I deleted an HSM in KeyVault but I'm still paying for it

MichelMassaro-3126 20 Reputation points
2023-08-10T13:01:07.94+00:00

Hi,

One month ago, I created by mistake an HSM then removed it. Yesterday I got a recommendation saying that I don't have a backup for this resource. When clicking on the resource it says that the resource doesn't exist.

In the activity log I can see that I deleted the resource.

Also the most annoying part is that I'm still paying for the HSM. It costed around 2000$ in the last 30 days.

Thank you for your help.

Azure Dedicated HSM
Azure Dedicated HSM
An Azure service that provides hardware security module management.
31 questions
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,636 Reputation points Microsoft Employee
    2023-08-11T18:46:57.7766667+00:00

    @MichelMassaro-3126

    Thank you for your post!

    I understand that you provisioned a Managed HSM and based on the information you provided, it seems that you soft deleted the HSM but didn't purge the HSM resource. Please note that, if you've already deleted the HSM, it'll be in a soft-deleted state and will continue to accrue hourly charges until it is purged. For more info.

    To purge / permanently delete your HSM, you can use the following PowerShell command:

    Remove-AzKeyVaultManagedHsm -Name 'myhsm' -Location "eastus" -Force -PassThru True
    

    For more info - Purge a deleted managed HSM

    • If you are unable to purge your HSM using the above command, it's possible that you enabled purge protection when creating the Managed HSM and will have to wait until the retention period has expired.

    If you'd like to work with the Managed HSM team so they can look into the possibility of purging your Managed HSM before the purge protection period, please let me know. I'd be happy to enable your Subscription ID for a one-time free technical support request so you can get this issue resolved.


    Additional Links:

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


    If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. JimmySalian-2011 42,171 Reputation points
    2023-08-11T10:44:22.7933333+00:00

    Hi Michel,

    In this case I will suggest you to quickly raise a support case from the Azure Portal and a Billing query on the unused HSM services, if the case is genuine you might get a discount or waive off as one off but I no guarantees - https://azure.microsoft.com/en-ca/support/create-ticket/

    Billing

    https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request#go-to-help--support-from-the-global-header

    Hope this helps.

    JS

    ==

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.