none
DSC deployment errors RRS feed

  • Question

  • I have been getting the following errors occasionally when doing DSC deployments. Not sure why

    "
    2018-02-27T09:59:11.9014642Z ##[section]Starting: Deploy Website

    2018-02-27T09:59:11.9024662Z ==============================================================================
    2018-02-27T09:59:11.9024662Z Task         : PowerShell on Target Machines
    2018-02-27T09:59:11.9024662Z Description  : Execute PowerShell scripts on remote machine(s)
    2018-02-27T09:59:11.9024662Z Version      : 2.0.3
    2018-02-27T09:59:11.9024662Z Author       : Microsoft Corporation
    2018-02-27T09:59:11.9024662Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=627414)
    2018-02-27T09:59:11.9024662Z ==============================================================================
    2018-02-27T09:59:13.1453943Z Deployment started for machine: 'xxxx:5985'
    2018-02-27T10:00:21.1320353Z Deployment logs for Deployment operation on xxxxxx:5985 
    2018-02-27T10:00:21.1340344Z 
    2018-02-27T10:00:21.1340344Z Deployment started on target machine...
    2018-02-27T10:00:21.1340344Z 
    2018-02-27T10:00:21.1350320Z System.AggregateException: Failed to apply configuration in the DSC script to the computer. Consult the Logs below for details of the error.
    2018-02-27T10:00:21.1350320Z 
    2018-02-27T10:00:21.1350320Z The PowerShell DSC resource MSFT_ScriptResource threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
    2018-02-27T10:00:21.1350320Z  CategoryInfo :InvalidOperation: (:) [], CimException
    2018-02-27T10:00:21.1350320Z  FullyQualifiedErrorId :NonTerminatingErrorFromProvider
    2018-02-27T10:00:21.1350320Z 
    2018-02-27T10:00:21.1350320Z The SendConfigurationApply function did not succeed.
    2018-02-27T10:00:21.1350320Z  CategoryInfo :NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
    2018-02-27T10:00:21.1350320Z  FullyQualifiedErrorId :MI RESULT 1
    2018-02-27T10:00:21.1350320Z  ---> Microsoft.Management.Infrastructure.CimException: The PowerShell DSC resource MSFT_ScriptResource threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
    2018-02-27T10:00:21.1350320Z    --- End of inner exception stack trace ---
    2018-02-27T10:00:21.1360303Z    at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)
    2018-02-27T10:00:21.1360303Z    at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.ScriptExecutor.<>c__DisplayClass5_0.<ExecuteScript>b__3()
    2018-02-27T10:00:21.1360303Z    at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action)
    2018-02-27T10:00:21.1360303Z    at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.ScriptExecutor.ExecuteScript(IPowerShell powerShell, String script, String arguments, Boolean isScriptDotSourced, Boolean useHttp)
    2018-02-27T10:00:21.1360303Z    at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.DeploymentService.RunPowerShellScripts(DeploymentMachineSpecification deploymentMachine, ScriptSpecification scriptSpecification, ScriptSpecification initializationScriptSpecification, String applicationPath, IPowerShell powerShellSession)
    2018-02-27T10:00:21.1360303Z ---> (Inner Exception #0) Microsoft.Management.Infrastructure.CimException: The PowerShell DSC resource MSFT_ScriptResource threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.<---
    2018-02-27T10:00:21.1360303Z 
    2018-02-27T10:00:21.1360303Z ---> (Inner Exception #1) Microsoft.Management.Infrastructure.CimException: The SendConfigurationApply function did not succeed.
    2018-02-27T10:00:21.1360303Z    at Microsoft.Management.Infrastructure.Internal.Operations.CimAsyncObserverProxyBase`1.ProcessNativeCallback(OperationCallbackProcessingContext callbackProcessingContext, T currentItem, Boolean moreResults, MiResult operationResult, String errorMessage, InstanceHandle errorDetailsHandle)<---

    "

    Can someone shed some light here with potential solution ?


    Darshan Patel

    Thursday, March 1, 2018 1:00 AM