not able to create a VM in HCI cluster

SAKTHIMURUGAN ARUMUGAM 66 Reputation points
2021-10-04T16:19:17.727+00:00

Able to create the HCI Cluster using the https://github.com/Azure/AzureStackHCI-EvalGuide/blob/main/nested/steps/5_ExploreAzSHCI.md. 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
Source
Go to Virtual machines.
Type
Error

Message
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.
301 questions
0 comments No comments
{count} votes

6 additional answers

Sort by: Most helpful
  1. MattMcSpirit-MSFT 561 Reputation points
    2021-10-04T16:32:26.083+00:00
    • 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
    2021-10-04T17:47:31.9+00:00

    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,536 Reputation points Microsoft Employee
    2021-10-04T18:11:23.803+00:00

    Hi @SAKTHIMURUGAN ARUMUGAM ,

    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!
    Trent

    0 comments No comments

  4. SAKTHIMURUGAN ARUMUGAM 66 Reputation points
    2021-10-05T12:05:46.353+00:00

    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 https://github.com/Azure/AzureStackHCI-EvalGuide/blob/main/nested/steps/4_AzSHCICluster.md in point 5.

    0 comments No comments