IIS应用程序请求路由(监视和pipe理)Powershell

我正在与iis arr powershell …在我的iis我有一个networking农场,在那里我有两个服务器“server1”和“server2”……

我的任务是

  1. 使server1不能正常使用
  2. 重新启动server1 iis
  3. 使可用的server1 …
  4. 使server2不能正常使用
  5. 重新启动server2 iis
  6. 提供服务器2 ……

但问题是在使server1“不能正常使用”之后,重新启动server1之后,iis的“可用性”和“健康状态”(在监视和pipe理中)将进入“未知”状态,现在iam无法使server1可用,喜欢

例外是:

Exception calling "Execute" with "0" argument(s): "The request is not supported. (Exception from HRESULT: 0x80070032)" At line:19 char:28 + $methodInstance.Execute <<<< () + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException 

任何人都可以知道如何使用PowerShell(如果处于未知状态)解决scheme

我有同样的问题,罪魁祸首似乎是“未知的”可用性和健康状况。

这是由于没有在“健康testing”部分为您的网站configuration正确的运行状况检查,该url可以通过testing来检测网站是否在线。 一旦configuration状态将从“未知”变为“健康”,您将能够进行滚动更新,零宕机时间。

健康testing