Thanks - I'm planning an update of the guide in the next day or two, so i'll make sure these steps are updated.
not able to create a VM in HCI cluster
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?
6 additional answers
Sort by: Most helpful
-
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?
-
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?
-
Trent Helms - MSFT 2,541 Reputation points Microsoft Employee
2021-10-04T18:11:23.803+00:00 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:
- 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.
- 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.
- You can connect to any of the cluster nodes using a remote Event Viewer.
- You can use Get-WinEvent with a variety of parameters to get the events from PowerShell.
Hope this helps!
Trent -
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 $azshciNodeCredsThis needs to be updated in https://github.com/Azure/AzureStackHCI-EvalGuide/blob/main/nested/steps/4_AzSHCICluster.md in point 5.