无法获得Service Fabric PowerShell模块

问题描述 投票:0回答:1

我正在Windows Server 2016数据中心上运行,但无法获得Service Fabric Commandlet,如Connect-ServiceFabricCluster。

[Documentation说:Service Fabric PowerShell模块随Service Fabric SDK,运行时和工具一起安装。

  • 我正在使用Visual Studio 2019
  • 我遵循了here的指示,并且已经从Web平台安装程序中卸载并重新安装了Service Fabric SDK,并重新引导了我的系统。

我还能尝试什么?它可以在使用Windows 10的其他系统上运行。我可以从可以运行该模块的另一个系统中导出模块,然后在此处导入吗?

powershell azure-service-fabric powershell-5.0
1个回答
0
投票

不确定您如何安装服务结构sdk;我自己尝试了一下,并能够在列表中找到Connect-ServiceFabricCluster。我可以建议两种最简单的安装方法。

A。与Choco包一起使用

choco install MicrosoftAzure-ServiceFabric-CoreSDK --source webpi --confirm

B。单独安装

安装Visual C ++ 2012 SP1可再发行组件包

调用WebRequest “ http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU1/vcredist_x64.exe” -OutFile“ C:\ vcredist.exe” -UseBasicParsing; \ 启动进程“ C:\ vcredist.exe” -ArgumentList'/ install','/ passive'-NoNewWindow -Wait; \ rm“ C:\ vcredist.exe”

安装Service Fabric运行时

调用WebRequest “ http://download.microsoft.com/download/3/2/1/3217654F-6882-4CEA-BD51-49287EDECE9B/MicrosoftServiceFabric.6.0.232.9494.exe” -OutFile“ C:\ ServiceFabricRuntime.exe” -UseBasicParsing; \ 启动过程“ C:\ ServiceFabricRuntime.exe” -ArgumentList'/ AcceptEULA','/ QUIET'-NoNewWindow -Wait; \ rm“ C:\ ServiceFabricRuntime.exe”

安装Service Fabric SDK

调用WebRequest “ http://download.microsoft.com/download/3/2/1/3217654F-6882-4CEA-BD51-49287EDECE9B/MicrosoftServiceFabricSDK.2.8.232.msi” -OutFile“ C:\ ServiceFabricSDK.msi” -UseBasicParsing; \ 启动过程“ msiexec” -ArgumentList'/ i','C:\ ServiceFabricSDK.msi','/ passive','/ quiet','/ norestart','/ qn' -NoNewWindow-等待; \ rm“ C:\ ServiceFabricSDK.msi”

这里是输出

$> Get-Command *ServiceFabricCluster* -All

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.