< Back

Set-AzureRmServiceFabricUpgradeType

Tue Jan 29, 2019 10:07 pm

NAME Set-AzureRmServiceFabricUpgradeType



SYNOPSIS

Change the Service Fabric upgrade type of the cluster.





SYNTAX

Set-AzureRmServiceFabricUpgradeType [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>] -UpgradeMode

{Automatic | Manual} -Version <String> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Use Set-AzureRmServiceFabricUpgradeType to set upgrade type to automatic or manual with specific Service Fabric code version.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specify the name of the cluster.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-UpgradeMode <ClusterUpgradeMode>

ClusterUpgradeMode



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Version <String>

Cluster code version.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode

System.String





OUTPUTS

Microsoft.Azure.Commands.ServiceFabric.Models.PsCluster







NOTES









Example 1



PS c:> Set-AzureRmServiceFabricUpgradeType -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -UpgradeMode Automatic



This command will set the cluster upgrade mode to automatic.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... pgradetype