Invoke-AzServiceFabricRedeployManagedNodeType
Redeploy nodes from the node type.
Syntax
Default (Default)
Invoke-AzServiceFabricRedeployManagedNodeType
[-ResourceGroupName] <String>
[-ClusterName] <String>
[-Name] <String>
[-NodeName <String[]>]
[-UpdateType <String>]
[-ForceRedeploy]
[-PassThru]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Redeploy nodes from the node type. It will disable the service fabric nodes before, move them to another host node, then reenable.
Examples
Example 1
$rgName = "testRG"
$clusterName = "testCluster"
$NodeTypeName = "nt1"
Invoke-AzServiceFabricRedeployManagedNodeType -ResourceGroupName $rgName -ClusterName $clusterName -Name $NodeTypeName -NodeName nt1_0, nt1_3
Redeploy node 0 and 3 on the node type simultaneously.
Example 2
$rgName = "testRG"
$clusterName = "testCluster"
$NodeTypeName = "nt1"
Invoke-AzServiceFabricRedeployManagedNodeType -ResourceGroupName $rgName -ClusterName $clusterName -Name $NodeTypeName -NodeName nt1_0, nt1_3 -UpdateType ByUpgradeDomain
Redeploy node 0 and 3 on the node type by upgrade domain.
Example 3
$rgName = "testRG"
$clusterName = "testCluster"
$NodeTypeName = "nt1"
Invoke-AzServiceFabricRedeployManagedNodeType -ResourceGroupName $rgName -ClusterName $clusterName -Name $NodeTypeName -UpdateType ByUpgradeDomain
Omitting the node names will redeploy all nodes on the node type by upgrade domain.
Example 4
$rgName = "testRG"
$clusterName = "testCluster"
$NodeTypeName = "nt1"
Invoke-AzServiceFabricRedeployManagedNodeType -ResourceGroupName $rgName -ClusterName $clusterName -Name $NodeTypeName
Omitting the node names and update type will redeploy all nodes on the node type by upgrade domain.
Parameters
-AsJob
Run cmdlet in the background and return a Job to track progress.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ClusterName
Specify the name of the cluster.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: 1
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ForceRedeploy
Using this flag will force the nodes to redeploy even if service fabric is unable to disable the nodes.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
Specify the name of the node type.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: NodeTypeName
Parameter sets
(All)
Position: 2
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-NodeName
List of node names for the operation.
Parameter properties
Type: String [ ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-PassThru
Returns $True if the command succeeds and $False if it fails. By default, this cmdlet does not return any output.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
Specify the name of the resource group.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-UpdateType
Specify the update type. Valid values are 'Default' and 'ByUpgradeDomain'.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs