Since a couple of days I'm unable to create a HSM Keyvault.
I've got a powershell script which I've run successfully untill last monday. In this script I do an:
New-AzKeyVaultManagedHsm -Name $name -ResourceGroupName $resourceGroup -Location 'westeurope' -Administrator $oid -SoftDeleteRetentionInDays 7 -EnablePurgeProtection.
While this script with my default parameters did run successful on monday, on tuesday I received an error:
New-AzKeyVaultManagedHsm : Operation returned an invalid status code 'ServiceUnavailable'
At D:\git\Infrastructure.HsmKeyvault\src\create-hsmvault.ps1:45 char:5
+ New-AzKeyVaultManagedHsm -Name $name -ResourceGroupName $resource ...
+ CategoryInfo : CloseError: (:) [New-AzKeyVaultManagedHsm], ManagedHsmErrorException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.Commands.NewAzureManagedHsm
A couple of weeks ago, I had the same script for Azure CLI, so I tried that one again:
az keyvault create --hsm-name $name --resource-group $resourceGroup -l westeurope --administrators $oid --retention-days 7
In this case, I received another 500 response:
(503) Capacity check failed.
Searching around, I couldn't find any appropriate answer for one of those errors, so maybe will I find an answer overhere?