We have deployed a Azure stack HCI cluster and now we are trying to register the cluster with Azure but that process is failing with following error
[hci01.exampledomain.com]: PS C:\Users\Administrator.exampledomain\Documents> Register-AzStackHCI -SubscriptionId XXXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXXX -ComputerName HCI01.XXXXXXX.com
Register-AzStackHCI : Connecting to remote server HCI01.exampledomain.com failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x8009030e occurred
while using Kerberos authentication: A specified logon session does not exist. It may already have been terminated.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
- CategoryInfo : OperationStopped: (:) [Write-Error], PSRemotingTransportException
- FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingTransportException,Register-AzStackHCI
Exception occured in Register-AzStackHCI : At C:\Program Files\WindowsPowerShell\Modules\Az.StackHCI\0.8.0\Az.StackHCI.psm1:1947 char:39
- ... $clusterNodeSession = New-PSSession -ComputerName $ComputerName
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Register-AzStackHCI