Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Solved Powershell DSC Error A configuration is pending If you are in Pull Mode please runn Update-DscConfiguration

While working on few Powershell DSC (Desired State Configuration) script and pushing it on remote computer using Start-DscConfiguration command, but I was constantly receiving below error.

A configuration is pending. If you are in Pull mode, please run Update-DscConfiguration to pull a new configuration and apply it. If 
you are in Push mode, please run Start-DscConfiguration command with -Force parameter to apply a new configuration or run 
Start-DscConfiguration command with -UseExisting parameter to finish the existing configuration.
    + CategoryInfo          : ResourceExists: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : MI RESULT 11
    + PSComputerName        : iis

Microsoft Azure DSC desired state configuration powershell start-dscconfiguration -wait -verbose -force pull mode update-dscconfiguration msft_dscLocalConfigurationManager namespace push mode.png

To resolve this issue I checked help with Get-Help of Start-DscConfiguration cmdlet and used -Force parameter to resolve it. (The solution of the error is given in error itself)

Start-DscConfiguration -Wait -Path <MofConfigurationPath> -Verbose -Force

Microsoft Powershell DSC desired state configuration start-dscConfiguration -wait -path -verbose -force namespace msft_dscLocalConfigurationManager file environment user group devops.png

Usefule Articles
PowerShell remoting over HTTPS using self-signed SSL certificate
Configure Powershell WinRM to use OpenSSL generated Self-Signed certificate
Powershell WinRM HTTPs CA signed certificate configuration
Powershell Generate Self-signed certificate with Self-Signed Root CA Signer
PART 1 : POWERSHELL - CREATE LOCAL IIS WEB REPOSITORY FOR DSC MODULE  
PART 2 : POWERSHELL - COPY DSC MODULE REMOTELY USING LOCAL WEB REPOSITORY 
POWERSHELL CONVERT EXCEL TO DSC (DESIRED STATE CONFIGURATION) CONFIGURATION HASHTABLE FORMAT
Part 1: Build your first Microsoft PowerShell DSC pull server
Part 2: Generate target server node config for PowerShell DSC pull server
Part 3: Configure PowerShell DSC Local configuration manager LCM in pull mode and update configuration
How to force a PowerShell DSC client to refresh configuration from pull server

Go Back

Comment

Blog Search

Page Views

12085962

Follow me on Blogarama