Hi @rahulkhengare @aniket2710 @ankitsrao @lomaingali - Need your help!!
I am getting an error when I execute the the 2nd command to apply the MOF file. The VM is built (Windows Server 2019) using packer Image in Azure Compute Gallery and it does not occur when the VM is built from azure portal (clickops)
.\CIS_Benchmark_WindowsServer2019_v100.ps1 [Script will generate MOF files in directory]
Start-DscConfiguration -Path .\CIS_Benchmark_WindowsServer2019_v100 -Force -Verbose -Wait
Error:
PS C:\> Start-DscConfiguration -Path "C:\CIS_Benchmark_WindowsServer2019_v100" -Force -Verbose -Wait
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and
documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the
destination to analyze and configure the WinRM service: "winrm quickconfig".
+ CategoryInfo : ConnectionError: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : HRESULT 0x80338012
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 6.706 seconds
Hi @rahulkhengare @aniket2710 @ankitsrao @lomaingali - Need your help!!
I am getting an error when I execute the the 2nd command to apply the MOF file. The VM is built (Windows Server 2019) using packer Image in Azure Compute Gallery and it does not occur when the VM is built from azure portal (clickops)
Error: