Azure Stack POCFabricInstaller failed because the following tasks failed: EnableRemotePS #AzureStack #Azure #MAS

Currently I’m testing several MAS POC deployments. With this I deployed my Servers With VMM ready for MAS.

But there are some issues during the deployment.

POCFabricInstaller failed because the following tasks failed: EnableRemotePS

 

clip_image001

Winrm is configured / installer is full admin  so why ?

As the Azure Stack is running in verbose mode I get some info in a lot of log files

clip_image002

As the Deployment failed here

Microsoft Azure Stack POC Deployment
7 out of 124 task(s) completed
[ooooooo

Running
Microsoft Azure Stack POC Fabric Installer
Running Task(s): 1, Completed Task(s): 7, Total Tasks: 52
[ooooooooooooooo

 

So time to view the log files for the cause of this error. I know it is not the WinRM config

When checking the log files I find the following info :

 

System.Management.Automation.RemoteException
Cannot stop service ‘Windows Remote Management (WS-Management) (WinRM)’
because it has dependent services. It can only be stopped if the Force flag is
set.
Job fail due state: Failed

 

So some dependency is stopping my WinRM service.  when looking at the Service and dependencies I saw this :

 

clip_image005

ah the VMM agent is causing this error during the Azure Stack deployment.

VERBOSE: Importing function ‘Start-AzureStackDeploymentScheduledTask’.
Report-Progress : The Microsoft Azure Stack POC deployment failed.
Start-PocFabricInstallerTasks : POCFabricInstaller failed because the
following tasks failed: EnableRemotePS
At C:\ProgramData\Microsoft\AzureStack\Deployment\RunAzureStackDeploymentTask.p
s1:158 char:19
+ … $result = & "Start-$moduleName`Tasks" -StatusUpdatedCallback {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
tion
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
n,Start-PocFabricInstallerTasks

At C:\ProgramData\Microsoft\AzureStack\Deployment\Get-AzureStackDeploymentStatus.ps1:107 char:15
+ $Result = Report-Progress($status)
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Report-Progress

clip_image004

Uninstalling the VMM agent and kicked the Azure Stack deployment PowerShell script again and it worked smoothly

clip_image006

The Logs Can be found here :

C:\ProgramData\Microsoft\AzureStack\Logs\AzureStackFabricInstaller

Happy Stacking

Robert Smit

Twitter: @clustermvp

Cloud and Datacenter MVP ( Expertise:  High Available )