Well, it does to WinRM. That is what I learned today. I have been using DSC to provision SQL Server instances for over a year now and never before had I encountered this particular error:
The WinRM client sent a request to the remote WS-Management service and was notified that the request size exceeded the configured MaxEnvelopeSize quota.
+ CategoryInfo : LimitsExceeded: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : HRESULT 0x80338111
+ PSComputerName : **************
Naturally, I googled and the solution is rather simple. Just check what the winrm setting is for the target machine and increase the size.
winrm g winrm/config
winrm set winrm/config @{MaxEnvelopeSizekb="8192"}
What was interesting though is why this was the first time I was getting the error?? It turns out that the MOF files I was sending to the server were slightly bigger than normal because I was configuring four instances of SQL rather than the previous three. The file was shade under 500kb, which when wrapped in an envelope must have exceeded the default envelope size of 500kb.
Simples...
I saw a similar error when I briefly tried to get remote Powershell working on a Windows 2003 server. I thought it was a Powershell 1.0 problem!
ReplyDelete