Get-AutoscaleSetting

Applies To: Azure PowerShell 1.0

Get-AutoscaleSetting

Gets Autoscale settings.

Syntax

Parameter Set: Parameters for GetAustoscaleSetting cmdlet
Get-AutoscaleSetting -ResourceGroup <String> [-DetailedOutput] [-Name <String> ] [ <CommonParameters>]

Detailed Description

The Get-AutoscaleSetting cmdlet gets all Autoscale settings associated with a resource group, or a single Autoscale setting identified by a resource group name and the setting name.

Parameters

-DetailedOutput

Indicates that this cmdlet displays full details in the output.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the Autoscale setting to get.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-ResourceGroup<String>

Specifies the name of the resource group.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get Autoscale settings

This command gets the Autoscale settings associated with a resource group ID.

PS C:\> Get-AutoscaleSetting -ResourceGroup "Contoso-Web-EastUS" -DetailedOutput

OUTPUT:
           : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.insights/AutoscaleSettings/ContosoServerFarm-Contoso-Web-EastUS
Location   : East US
Name       : ContosoServerFarm-Contoso-Web-EastUS
Properties :
             Enabled           : True
             Profiles          :

                                 Capacity      :
                                      Default   : 1
                                      Minimum   : 3
                                      Maximum   : 1
                                 FixedDate     :

                                 Name          : No scheduled times
                                 Recurrence    :

                                 Rules         :

                                           MetricTrigger  :
                                                MetricName         : CpuPercentage
                                                MetricResourceId  : /subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
                                                Operator           : GreaterThanOrEqual
                                                Statistic          : Average
                                                Threshold          : 14
                                                TimeAggregation    : Average
                                                TimeGrain          : 00:01:00
                                                TimeWindow         : 00:45:00
                                           ScaleAction    :
                                                Cooldown   : 00:05:00
                                                Direction  : Increase
                                                Type       : ChangeCount
                                                Value      : 1


                                           MetricTrigger  :
                                                MetricName         : CpuPercentage
                                                MetricResourceId  : /subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
                                                Operator           : LessThanOrEqual
                                                Statistic          : Average
                                                Threshold          : 4
                                                TimeAggregation    : Average
                                                TimeGrain          : 00:01:00
                                                TimeWindow         : 00:45:00
                                           ScaleAction    :
                                                Cooldown   : 02:00:00
                                                Direction  : Decrease
                                                Type       : ChangeCount
                                                Value      : 1


                                           MetricTrigger  :
                                                MetricName         : BytesReceived
                                                MetricResourceId  : /subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
                                                Operator           : LessThanOrEqual
                                                Statistic          : Average
                                                Threshold          : 50
                                                TimeAggregation    : Average
                                                TimeGrain          : 00:01:00
                                                TimeWindow         : 00:10:00
                                           ScaleAction    :
                                                Cooldown   : 00:10:00
                                                Direction  : Decrease
                                                Type       : ChangeCount
                                                Value      : 1


                                           MetricTrigger  :
                                                MetricName         : BytesReceived
                                                MetricResourceId  : /subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
                                                Operator           : 
GreaterThanOrEqual
                                                Statistic          : Average
                                                Threshold          : 100
                                                TimeAggregation    : Average
                                                TimeGrain          : 00:01:00
                                                TimeWindow         : 00:05:00
                                           ScaleAction    :
                                                Cooldown   : 00:10:00
                                                Direction  : Increase
                                                Type       : ChangeCount
                                                Value      : 1


             TargetResourceId : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
Tags       : {[$type, Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
             Microsoft.WindowsAzure.Management.Common.Storage], [hidden-link:/subscriptions/a93fb07c-6c93-40be-bf3b-4f0
             deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm,
             Resource]} 

Example 2: Get Autoscale settings associated with a resource

This command gets the Autoscale settings associated with a resource group and a resource name.

PS C:\> Get-AutoscaleSetting -res "Contoso-Web-EastUS" -name "ContosoServerFarm-Contoso-Web-EastUS" -DetailedOutput

OUTPUT:
           : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.insights/AutoscaleSettings/ContosoServerFarm-Contoso-Web-EastUS
Location   : East US
Name       : ContosoServerFarm-Contoso-Web-EastUS
Properties :
             Enabled           : True
             Profiles          :

                                 Capacity      :
                                      Default   : 1
                                      Minimum   : 3
                                      Maximum   : 1
                                 FixedDate     :

                                 Name          : No scheduled times
                                 Recurrence    :

                                 Rules         :

                                           MetricTrigger  :
                                                MetricName         : CpuPercentage
                                                MetricResourceId  : /subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
                                                Operator           : GreaterThanOrEqual
                                                Statistic          : Average
                                                Threshold          : 14
                                                TimeAggregation    : Average
                                                TimeGrain          : 00:01:00
                                                TimeWindow         : 00:45:00
                                           ScaleAction    :
                                                Cooldown   : 00:05:00
                                                Direction  : Increase
                                                Type       : ChangeCount
                                                Value      : 1


                                           MetricTrigger  :
                                                MetricName         : CpuPercentage
                                                MetricResourceId  : /subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
                                                Operator           : LessThanOrEqual
                                                Statistic          : Average
                                                Threshold          : 4
                                                TimeAggregation    : Average
                                                TimeGrain          : 00:01:00
                                                TimeWindow         : 00:45:00
                                           ScaleAction    :
                                                Cooldown   : 02:00:00
                                                Direction  : Decrease
                                                Type       : ChangeCount
                                                Value      : 1


                                           MetricTrigger  :
                                                MetricName         : BytesReceived
                                                MetricResourceId  : /subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
                                                Operator           : LessThanOrEqual
                                                Statistic          : Average
                                                Threshold          : 50
                                                TimeAggregation    : Average
                                                TimeGrain          : 00:01:00
                                                TimeWindow         : 00:10:00
                                           ScaleAction    :
                                                Cooldown   : 00:10:00
                                                Direction  : Decrease
                                                Type       : ChangeCount
                                                Value      : 1


                                           MetricTrigger  :
                                                MetricName         : BytesReceived
                                                MetricResourceId  : /subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
                                                Operator           : GreaterThanOrEqual
                                                Statistic          : Average
                                                Threshold          : 100
                                                TimeAggregation    : Average
                                                TimeGrain          : 00:01:00
                                                TimeWindow         : 00:05:00
                                           ScaleAction    :
                                                Cooldown   : 00:10:00
                                                Direction  : Increase
                                                Type       : ChangeCount
                                                Value      : 1


             TargetResourceId : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm
Tags       : {[$type, Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
             Microsoft.WindowsAzure.Management.Common.Storage], [hidden-link:/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/ResourceGroups/Contoso-Web-EastUS/providers/microsoft.web/ServerFarms/ContosoServerFarm,
             Resource]} 

Add-AutoscaleSetting

Get-AutoscaleHistory

Remove-AutoscaleSetting