Failed to create 'managed HSM' for 'Azurekeyvault'.

홍진원 1 Reputation point
2022-09-28T10:30:40.563+00:00

Hi, I am trying to create a new key vault using: New-AzKeyVaultManagedHsm -Name "testHSM" -ResourceGroupName "myResourceGroup" -Location "westus3" -Administrator "my id"
However, the following error occurs: New-AzKeyVaultManagedHsm: Operation returned an invalid status code 'ServiceUnavailable'
What should I do to solve this?

Reference address : https://learn.microsoft.com/ko-kr/azure/key-vault/managed-hsm/quick-create-powershell

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,287 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Olga Os - MSFT 5,921 Reputation points Microsoft Employee
    2022-09-28T23:34:41.197+00:00

    Hello @홍진원 ,

    Welcome to the MS Q&A Forum.

    It seems example from the "Quickstart: Provision and activate a Managed HSM using PowerShell" creates some confusion by providing "westus3" as the location parameter value.

    From what I found, Azure Dedicated Managed HSM at this moment is not available in the WestUS3. (Azure Pricing)

    245822-image.png

    I tested deployment in the East US and it went through without any failure:

    245803-image.png

    Hope above answers your questions and concerns.

    --------------------------------------------------------

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.

    Sincerely,
    Olga Os

    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.