Remove Managed HSM in KeyVault

Sergey Zarembo 6 Reputation points
2022-05-11T16:31:07.863+00:00

I did create Managed HSM in Azure KeyVault for tests, but now I cannot delete it.
When I try to do it in Azure Portal, I'm getting an error:

**Executed delete command
Error details: The subscription is not registered or does not exist. (Code: BadRequest)"**

In the Powershell console I'm getting the error:

Remove-AzKeyVaultManagedHsm : Operation returned an invalid status code 'NotFound'

But in the same time the Managed HSM is still exists and continues to spend my expenses.

How should I delete the Managed HSM?

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,113 questions
{count} vote