I’m having an issue with my DSC Configuration where running it causes a network failure. I am behind a corporate proxy calling it from outside the domain. The proxy is only used for internet (downloading files), meaning the dsc configuration should bypass the proxy. So I create CimSession to use for thje DSCConfiguration.
$options = New-CimSessionOption -ProxyType None $session = New-CimSession -ComputerName $node -SessionOption $options -Authentication Negotiate -Credential $credential Start-DscConfiguration -Path $Path -CimSession $session -Wait -Force -Verbose
VERBOSE: [SERVER1]: LCM: [ End Resource ] [[Script]EnableRabbitMQPlugins] VERBOSE: [SERVER1]:  Consistency check completed. VERBOSE: Operation 'Invoke CimMethod' complete. VERBOSE: Time taken for configuration job to complete is 12.267 seconds WARNING: [WSManNetworkFailureDetected] The network connection to SERVER1.SomeFqdn has been interrupted. Attempting to reconnect for up to 4 minutes... WARNING: [WSManConnectionRetryAttempt] Attempting to reconnect to SERVER1.SomeFqdn ... WARNING: [WSManConnectionRetryAttempt] Attempting to reconnect to SERVER1.SomeFqdn ... WARNING: [WSManConnectionRetryAttempt] Attempting to reconnect to SERVER1.SomeFqdn ...I tried setting New-CimSession with -ProxyType None, Auto, WinHttp, and with anything other than "None" I get: The WinRM client received an HTTP status code of 502 from the remote WS-Management service.
Any idea what it might be?