Get-ServiceFabricRuntimeSupportedVersion

取得獨立部署目前支援的所有 Service Fabric 執行時間版本清單。

Syntax

Get-ServiceFabricRuntimeSupportedVersion
   [-Latest]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

Get-ServiceFabricRuntimeSupportedVersion Cmdlet 會取得獨立部署所有目前支援的 Service Fabric 執行時間版本詳細資料。

Get-ServiceFabricRuntimeSupportedVersion的輸出包含下列資訊:

-Version:Service Fabric 執行時間版本。 -SupportExpiryDate :版本超出支援的日期。
-TargetPackageLocation :下載執行時間套件的連結。

您可以執行此 Cmdlet,而不需要在電腦上執行 Service Fabric 叢集。 若要這樣做:

建立在 Windows Server 上執行的獨立叢集,下載最新的獨立用戶端套件。

在用戶端套件內執行DeploymentComponentsAutoextractor.exe。 這會建立名為 DeploymentComponents 的資料夾,此資料夾會有 Service Fabric 所需的所有部署二進位檔。

Import-Module .\DeploymentComponents\ServiceFabric.psd1

執行Get-ServiceFabricRuntimeSupportedVersion

範例

範例 1

PS C:\> Get-ServiceFabricRuntimeSupportedVersion

此命令會取得獨立部署所有支援的 Service Fabric 執行時間版本詳細資料。

範例 2

PS C:\> Get-ServiceFabricRuntimeSupportedVersion -Latest

此命令會取得獨立部署最新支援的 Service Fabric 執行時間版本詳細資料。

參數

-Latest

表示命令只會傳回最新版本的詳細資料。

Type:SwitchParameter
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TimeoutSec

指定作業的逾時期間,以秒為單位。

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

輸入

None

輸出

System.Object