Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用NLB编写用于负载平衡的powershell脚本_Powershell_Teamcity_Windows Server 2012_Nlb_Octopus Deploy - Fatal编程技术网

如何使用NLB编写用于负载平衡的powershell脚本

如何使用NLB编写用于负载平衡的powershell脚本,powershell,teamcity,windows-server-2012,nlb,octopus-deploy,Powershell,Teamcity,Windows Server 2012,Nlb,Octopus Deploy,我使用TeamCity在负载平衡的服务器上进行八达通部署。我想写一个powershell脚本,这样我就可以在octopus部署站点之前在powershell predeploy脚本中完成服务器的负载平衡。然后还要使用部署后脚本将服务器放回原位。知道我如何才能像新加入powershell一样写作吗。 使用teamcity、八达通、WindowsServer12 非常感谢您没有提到您正在使用的负载平衡技术,因此我将假设Windows网络负载平衡(NLB)。有一组cmdlet可帮助您控制服务器的负载平

我使用TeamCity在负载平衡的服务器上进行八达通部署。我想写一个powershell脚本,这样我就可以在octopus部署站点之前在powershell predeploy脚本中完成服务器的负载平衡。然后还要使用部署后脚本将服务器放回原位。知道我如何才能像新加入powershell一样写作吗。
使用teamcity、八达通、WindowsServer12


非常感谢

您没有提到您正在使用的负载平衡技术,因此我将假设Windows网络负载平衡(NLB)。有一组cmdlet可帮助您控制服务器的负载平衡状态

此处介绍了cmdlet:

要使用commandlets,首先需要导入模块

Import-Module NetworkLoadBalancingClusters
然后,您可以看到所有可用的命令:

Get-Command –module NetworkLoadBalancingClusters

您没有提到您正在使用的负载平衡技术,因此我将假设Windows网络负载平衡(NLB)。有一组cmdlet可帮助您控制服务器的负载平衡状态

此处介绍了cmdlet:

要使用commandlets,首先需要导入模块

Import-Module NetworkLoadBalancingClusters
然后,您可以看到所有可用的命令:

Get-Command –module NetworkLoadBalancingClusters