< Back

Set-AzureRole

Wed Jan 30, 2019 5:53 pm

NAME Set-AzureRole



SYNOPSIS

Sets the number of instances of an Azure role to run.





SYNTAX

Set-AzureRole [-ServiceName] <String> [-Slot] <String> [-RoleName] <String> [-Count] <Int32> [-Profile <AzureSMProfile>] [-InformationAction

<ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]





DESCRIPTION

The Set-AzureRole cmdlet sets the number of instances of a specified role to run in an Azure deployment.





PARAMETERS

-ServiceName <String>

Specifies the name of the Azure service.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Slot <String>

Specifies the deployment environment of the deployment to modify. The acceptable values for this parameter are:



-- Production



-- Staging



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-RoleName <String>

Specifies the name of the role for which to set the number of instances.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Count <Int32>

Specifies the number of role instances to run.



Required? true

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Profile <AzureSMProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- 1: Set the number of instances for a role --------------------------



PS C:\\>Set-AzureRole -ServiceName "MySvc01" -Slot "Production" -RoleName "MyTestRole03" -Count 3



This command sets the MyTestRole03 role that is running in production on the MySvc01 service to have three instances.



RELATED LINKS

Get-AzureRole