Invoke-ServiceFabricInfrastructureCommand
在基礎結構服務上叫用系統管理命令。
Syntax
Invoke-ServiceFabricInfrastructureCommand
[-Command] <String>
[[-ServiceName] <Uri>]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
Invoke-ServiceFabricInfrastructureCommand Cmdlet 會在基礎結構服務上叫用系統管理命令。 基礎結構服務會接受基礎結構特定的命令,讓您能夠使用 Service Fabric API 直接與基礎結構互動。 若要執行此 Cmdlet,叢集組態中至少必須啟用一個基礎結構服務的實例。 目前,只有特別設定的 Azure 雲端服務才支援此 Cmdlet。
此 Cmdlet 支援 Service Fabric 平臺。 請勿直接執行此 Cmdlet。
此 Cmdlet 會要求您使用授與叢集系統管理員存取權的認證來連線到叢集。 在 Service Fabric 叢集上執行任何作業之前,請先使用 Connect-ServiceFabricCluster Cmdlet 建立叢集的連線。
參數
-Command
指定要傳送至基礎結構服務的基礎結構特定命令字串。 支援的命令格式取決於叢集執行所在的基礎結構。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ServiceName
指定 Service Fabric 基礎結構服務的統一資源識別項 (URI) 。 此 Cmdlet 會將 命令傳送至此參數所指定的服務。 預設值為 fabric:/System/InfrastructureService。
Type: | Uri |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TimeoutSec
指定作業的逾時期間,以秒為單位。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
System.String
System.Uri
輸出
System.Object