Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AutoscaleSetting

Get-AutoscaleSetting

microsoft.azure.commands.insights.dll

Synopsis

Get the autoscale settings

Syntax

Get-AutoscaleSetting [-ResourceGroup] [-Name] [-DetailedOutput] [-Profile] [<CommonParameters>]

Detailed Description

Gets all the autoscale settings associated to the resource group or a single setting identified by a resource group name and the setting

Parameters

-ResourceGroup <String>

The name of the resource group.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Name <String>

The name of the setting

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-DetailedOutput <SwitchParameter>

If present, it enables the display of full details in the output.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Profile <AzureProfile>

In-memory profile (AzureProfile).

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1: GetAutoscaleSetting --------------------------

This command retrieves the autoscale settings associated to a resource group

Id : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-Web-EastUS/providers/microsoft. insights/autoscalesettings/DefaultServerFarm-Default-Web-EastUS Location : East US Name : DefaultServerFarm-Default-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-4f0deba10f4 b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm 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-4f0deba10f4 b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm 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-4f0deba10f4 b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm 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-4f0deba10f4 b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm 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/Default-Web-EastUS/ providers/microsoft.web/serverFarms/DefaultServerFarm Tags : {[$type, Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage], [hidden-link:/subscriptions/a93fb07c-6c93-40be-bf3b-4f0 deba10f4b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm, Resource]}

get-autoscaleSetting -res Default-Web-EastUS -det

-------------------------- Example 2: GetAutoscaleSetting by resource name --------------------------

This command retrieves the autoscale settings associated to a resource group and a resource

Id : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-Web-EastUS/providers/microsoft. insights/autoscalesettings/DefaultServerFarm-Default-Web-EastUS Location : East US Name : DefaultServerFarm-Default-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-4f0deba10f4 b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm 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-4f0deba10f4 b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm 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-4f0deba10f4 b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm 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-4f0deba10f4 b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm 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/Default-Web-EastUS/ providers/microsoft.web/serverFarms/DefaultServerFarm Tags : {[$type, Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage], [hidden-link:/subscriptions/a93fb07c-6c93-40be-bf3b-4f0 deba10f4b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm, Resource]}

get-autoscaleSetting -res Default-Web-EastUS -name DefaultServerFarm-Default-Web-EastUS -det

Add-AutoscaleSetting
Get-AutoscaleHistory
Remove-AutoscaleSetting
Online Version