I am getting the following error when running "connect-Swis" in Azure automation powershell environment: Method not found: 'Void System.ServiceModel.NetTcpSecurity.set_Mode(System.ServiceModel.SecurityMode)'
But this error does not happen from a standard windows powershell prompt. SwisPowershell module claims not having any dependencies, but certainly there is some. How to determine what is missing? Likely, Azure automation environment may have some functions removed.