Remove Managed HSM in KeyVault
Sergey Zarembo
6
Reputation points
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?