not able to create a VM in HCI cluster


Able to create the HCI Cluster using the When we try to create a VM at step 'Deploy a virtual machine', we are getting an error:

Couldn't create the virtual machine

8:37:55 AM
Go to Virtual machines.

Couldn't create virtual machine 'VM001'. Error: 'An error occurred while performing the operation.'

Can you please help?

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
309 questions
0 comments No comments
{count} votes

6 additional answers

Sort by: Most helpful
  1. MattMcSpirit-MSFT 561 Reputation points
    • Have you registered your Azure Stack HCI cluster successfully?
    • Are you deploying the VM via WAC?

    I haven't seen this before I'm afraid, and the error message doesn't give much extra info - can you check the event log?

    0 comments No comments

  2. SAKTHIMURUGAN ARUMUGAM 66 Reputation points

    Yes. I'm deploying from WAC. I've successfully created the cluster, but have not registered with Azure. I don't see any failure in MGMT node. Where I can find the clusters even logs?

    0 comments No comments

  3. Trent Helms - MSFT 2,541 Reputation points Microsoft Employee


    I agree that the error message is not very intuitive. However, as Matt mentioned, this is an expected error if your cluster is not registered. You will not be able to add VMs to an HCI cluster that is 1) not registered or 2) is 'Out of Policy'. Please register the HCI cluster then try again and let us know if you still have issues.

    Also, to get the event logs, you have a number of options:

    1. Within the cluster dashboard of Windows Admin Center, choose 'Diagnostics' from the left column. This will walk you through getting a full SDDC diagnostic package that has a wide array of troubleshooting logs.
    2. If you go to each individual server within Windows Admin Center, you have the ability to view the event logs by choosing 'Events' from the left column.
    3. You can connect to any of the cluster nodes using a remote Event Viewer.
    4. You can use Get-WinEvent with a variety of parameters to get the events from PowerShell.

    Hope this helps!

    0 comments No comments

  4. SAKTHIMURUGAN ARUMUGAM 66 Reputation points

    Hello TrentHems and Matt,

    Thanks for your help help. There is a mistake in the command in the region, where it mentioned as "EastUS" instead of "East US" also need the tenant ID like below. The correct command, which worked is bleow:

    $azshciNodeCreds = Get-Credential -UserName "azshci\labadmin" -Message "Enter the Lab Admin password"
    Register-AzStackHCI -SubscriptionId "xxxxx"
    -ResourceName "azshciclus.azshci.local" -ResourceGroupName "resource_group_name"
    -Region "East US" -EnvironmentName "AzureCloud"
    -ComputerName "AZSHCINODE01.azshci.local" -TenantId "yyyyyy"
    –Credential $azshciNodeCreds

    This needs to be updated in in point 5.

    0 comments No comments