Repair-AzVmssServiceFabricUpdateDomain
手動平臺更新網域逐步解說,以更新 Service Fabric 虛擬機擴展集中的虛擬機。
語法
Repair-AzVmssServiceFabricUpdateDomain
[-ResourceGroupName] <String>
[-VMScaleSetName] <String>
[-PlatformUpdateDomain] <Int32>
[-Zone <String>]
[-PlacementGroupId <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Repair-AzVmssServiceFabricUpdateDomain
[-PlatformUpdateDomain] <Int32>
[-Zone <String>]
[-PlacementGroupId <String>]
[-ResourceId] <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Repair-AzVmssServiceFabricUpdateDomain
[-PlatformUpdateDomain] <Int32>
[-Zone <String>]
[-PlacementGroupId <String>]
[-VirtualMachineScaleSet] <PSVirtualMachineScaleSet>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
強制手動平臺更新網域逐步解說,以更新 Service Fabric 虛擬機擴展集中的虛擬機。
範例
範例 1
Repair-AzVmssServiceFabricUpdateDomain -ResourceGroupName $rgname -VMScaleSetName $vmssName -PlatformUpdateDomain 0
此命令會針對資源組名和擴展集名稱所指定的虛擬機擴展集,強制 UD 0 上的 Service Fabric 更新逐步解說。
範例 2
$vmss = Get-AzVmss -ResourceGroupName $rgname -VMScaleSetName $vmssName
Repair-AzVmssServiceFabricUpdateDomain -VirtualMachineScaleSet $vmss -PlatformUpdateDomain 1
此命令會針對 VM 擴展集物件所指定的虛擬機擴展集,強制 UD 1 上的 Service Fabric 更新逐步解說。
範例 3
Repair-AzVmssServiceFabricUpdateDomain -ResourceId $resourceId -PlatformUpdateDomain 2;
此命令會針對資源標識碼所指定的虛擬機擴展集,強制 UD 2 上的 Service Fabric 更新逐步解說。
參數
-AsJob
在背景執行 Cmdlet
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-PlacementGroupId
Vmss 的位置群組標識碼
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-PlatformUpdateDomain
要求手動復原逐步解說的平臺更新網域。
類型: | Int32 |
Position: | 2 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceId
虛擬機擴展集的資源標識碼。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-VirtualMachineScaleSet
本機虛擬機擴展集物件
類型: | PSVirtualMachineScaleSet |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-VMScaleSetName
虛擬機擴展集的名稱
類型: | String |
別名: | Name |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Zone
Vmss 的區域
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |