Get-AzAutoscaleHistory
구문
Default (기본값)
Get-AzAutoscaleHistory
[-ResourceId <String>]
[-StartTime <DateTime>]
[-EndTime <DateTime>]
[-Status <String>]
[-Caller <String>]
[-DetailedOutput]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzAutoscaleHistory cmdlet은 자동 크기 조정 설정과 관련된 이벤트의 기록을 가져옵니다.
예제
예제 1: 구독과 연결된 모든 이벤트 가져오기
Get-AzAutoscaleHistory -StartTime 2015-02-09T18:35:00 -EndTime 2015-02-09T18:40:00 -DetailedOutput
이 명령은 현재 구독과 연결된 자동 크기 조정 관련 이벤트를 모두 가져옵니다.
예제 2: 특정 리소스에 대한 GetAutoscaleHistory
Get-AzAutoscaleHistory -StartTime 2015-02-09T18:35:00 -EndTime 2015-02-09T18:40:00 -ResourceId "/subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-Web-EastUS/providers/Microsoft.Insights/autoscalesettings/DefaultServerFarm-Default-Web-EastUS" -DetailedOutput
Authorization :
Caller : Microsoft.Insights/autoscaleSettings
Claims : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/spn: Microsoft.Insights/autoscaleSettings
CorrelationId : 00001111-aaaa-2222-bbbb-3333cccc4444
Description : The autoscale engine attempting to scale resource '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deb
a10f4b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm'
from 1 instances count to 2 instances count.
EventDataId : c554f7ed-514c-449c-9338-13e15b4b56a3
EventName : AutoscaleAction
EventSource : Microsoft.Insights/autoscalesettings
EventTimestamp : 2/10/2015 2:38:19 AM
HttpRequest :
Id : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-Web-EastUS/providers/
Microsoft.Insights/autoscalesettings/DefaultServerFarm-Default-Web-EastUS/events/c554f7ed-514c-4
49c-9338-13e15b4b56a3/ticks/635591326997519815
Level : Informational
OperationId : 00001111-aaaa-2222-bbbb-3333cccc4444
OperationName : ScaleUp
Properties :
Description : The autoscale engine attempting to scale resource '/subscriptions/a93fb07c-6c93
-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/microsoft.web/serverFarms/De
faultServerFarm' from 1 instances count to 2 instances count.
ResourceName : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-Web-
EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm
OldInstancesCount: 1
NewInstancesCount: 2
ActiveAutoscaleProfile: {
"Name": "No scheduled times",
"Capacity": {
"Minimum": "1",
"Maximum": "3",
"Default": "1"
},
"Rules": [
{
"MetricTrigger": {
"Name": "CpuPercentage",
"Namespace": "",
"Resource": "/subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-
Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm",
"ResourceLocation": "East US",
"TimeGrain": "PT1M",
"Statistic": "Average",
"TimeWindow": "PT45M",
"TimeAggregation": "Average",
"Operator": "GreaterThanOrEqual",
"Threshold": 14.0,
"Source": "WebsiteDedicated:eastuswebspace:DefaultServerFarm"
},
"ScaleAction": {
"Direction": "Increase",
"Type": "ChangeCount",
"Value": "1",
"Cooldown": "PT5M"
}
},
{
"MetricTrigger": {
"Name": "CpuPercentage",
"Namespace": "",
"Resource": "/subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-
Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm",
"ResourceLocation": "East US",
"TimeGrain": "PT1M",
"Statistic": "Average",
"TimeWindow": "PT45M",
"TimeAggregation": "Average",
"Operator": "LessThanOrEqual",
"Threshold": 4.0,
"Source": "WebsiteDedicated:eastuswebspace:DefaultServerFarm"
},
"ScaleAction": {
"Direction": "Decrease",
"Type": "ChangeCount",
"Value": "1",
"Cooldown": "PT2H"
}
},
{
"MetricTrigger": {
"Name": "BytesReceived",
"Namespace": "",
"Resource": "/subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-
Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm",
"ResourceLocation": "East US",
"TimeGrain": "PT1M",
"Statistic": "Average",
"TimeWindow": "PT10M",
"TimeAggregation": "Average",
"Operator": "LessThanOrEqual",
"Threshold": 50.0,
"Source": "WebsiteDedicated:eastuswebspace:DefaultServerFarm"
},
"ScaleAction": {
"Direction": "Decrease",
"Type": "ChangeCount",
"Value": "1",
"Cooldown": "PT10M"
}
},
{
"MetricTrigger": {
"Name": "BytesReceived",
"Namespace": "",
"Resource": "/subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-
Web-EastUS/providers/microsoft.web/serverFarms/DefaultServerFarm",
"ResourceLocation": "East US",
"TimeGrain": "PT1M",
"Statistic": "Average",
"TimeWindow": "PT5M",
"TimeAggregation": "Average",
"Operator": "GreaterThanOrEqual",
"Threshold": 100.0,
"Source": "WebsiteDedicated:eastuswebspace:DefaultServerFarm"
},
"ScaleAction": {
"Direction": "Increase",
"Type": "ChangeCount",
"Value": "1",
"Cooldown": "PT10M"
}
}
]
}
ResourceGroupName : Default-Web-EastUS
ResourceProviderName : Microsoft.Insights
ResourceId : /subscriptions/b93fb07a-6f93-30be-bf3e-4f0deca15f4f/resourceGroups/Default-Web-EastUS/providers/
Microsoft.Insights/autoscalesettings/DefaultServerFarm-Default-Web-EastUS
Status : Succeeded
SubmissionTimestamp : 2/10/2015 2:38:19 AM
SubscriptionId : b93fb07a-6f93-30be-bf3e-4f0deca15f4f
SubStatus :
이 명령은 리소스의 ID(기본적으로 ResourceUri)로 식별되는 특정 리소스와 연결된 모든 자동 크기 조정 관련 이벤트를 가져옵니다.
매개 변수
-Caller
호출자를 지정합니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독
매개 변수 속성
형식: IAzureContextContainer
Default value: None
와일드카드 지원: False
DontShow: False
별칭: AzContext, AzureRmContext, AzureCredential
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-DetailedOutput
이 작업에 자세한 출력이 포함되어 있음을 나타냅니다.
이 매개 변수를 지정하지 않으면 출력이 요약됩니다.
매개 변수 속성
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
-EndTime
쿼리의 종료 시간을 현지 시간으로 지정합니다.
기본값은 현재 시간입니다.
매개 변수 속성
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
-ResourceId
자동 크기 조정 설정이 연결된 리소스 ID를 지정합니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
-StartTime
로컬 시간에 쿼리의 시작 시간을 지정합니다.
이 매개 변수는 선택 사항입니다.
기본값은 현재 현지 시간에서 1시간을 뺀 값입니다.
매개 변수 속성
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
-Status
상태별로 필터를 지정합니다.
이 매개 변수는 선택 사항입니다.
오류가 빈 문자열(즉, 필터 없음)입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
CommonParameters
이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters 를 참조하세요.
출력