Set-AzServiceFabricUpgradeType
變更叢集的 Service Fabric 升級類型。
語法
Set-AzServiceFabricUpgradeType
[-ResourceGroupName] <String>
[-Name] <String>
-UpgradeMode <ClusterUpgradeMode>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzServiceFabricUpgradeType
[-ResourceGroupName] <String>
[-Name] <String>
-UpgradeMode <ClusterUpgradeMode>
-Version <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
使用 Set-AzServiceFabricUpgradeType,將升級類型設定為自動或手動搭配特定的 Service Fabric 程式代碼版本。
範例
範例 1
Set-AzServiceFabricUpgradeType -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -UpgradeMode Automatic
此命令會將叢集升級模式設定為自動。
參數
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
指定叢集的名稱
類型: | String |
別名: | ClusterName |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceGroupName
指定資源群組的名稱。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-UpgradeMode
ClusterUpgradeMode
類型: | ClusterUpgradeMode |
接受的值: | Automatic, Manual |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Version
叢集程式代碼版本
類型: | String |
別名: | ClusterCodeVersion |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |