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



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


As the Deployment failed here

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

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


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 :


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


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



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
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio

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


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


The Logs Can be found here :


Happy Stacking

Robert Smit

Twitter: @clustermvp

Cloud and Datacenter MVP ( Expertise:  High Available )