Get-AzApplicationInsightsWebTest
특정 Application Insights 웹 테스트 정의를 가져옵니다.
구문
Get-AzApplicationInsightsWebTest
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzApplicationInsightsWebTest
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzApplicationInsightsWebTest
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
-AppInsightsName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzApplicationInsightsWebTest
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzApplicationInsightsWebTest
-InputObject <IApplicationInsightsIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
특정 Application Insights 웹 테스트 정의를 가져옵니다.
예제
예제 1: 구독에서 모든 Application Insights 웹 테스트 나열
Get-AzApplicationInsightsWebTest
Name Location WebTestKind ResourceGroupName
---- -------- ----------- -----------------
bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test
basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test
basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test
standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test
standard-pwsh01 westus2 standard azpwsh-rg-test
이 명령은 구독에 있는 모든 Application Insights 웹 테스트를 나열합니다.
예제 2: 리소스 그룹 아래에 모든 Application Insights 웹 테스트 나열
Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test
Name Location WebTestKind ResourceGroupName
---- -------- ----------- -----------------
bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test
basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test
basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test
standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test
standard-pwsh01 westus2 standard azpwsh-rg-test
이 명령은 리소스 그룹의 모든 Application Insights 웹 테스트를 나열합니다.
예제 3: 특정 Application Insights에서 모든 Application Insights 웹 테스트 나열
Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -AppInsightsName appinsights-portal01
Name Location WebTestKind ResourceGroupName Enabled
---- -------- ----------- ----------------- -------
bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True
basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test True
basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test True
standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test True
standard-pwsh01 westus2 standard azpwsh-rg-test True
이 명령은 특정 Application Insights의 모든 Application Insights 웹 테스트를 나열합니다.
예제 4: 특정 Application Insights 웹 테스트 정의 가져오기
Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standard-pwsh01
Name Location WebTestKind ResourceGroupName Enabled
---- -------- ----------- ----------------- -------
standard-pwsh01 westus2 standard azpwsh-rg-test True
이 명령은 특정 Application Insights 웹 테스트 정의를 가져옵니다.
예제 5: 파이프라인을 통해 특정 Application Insights 웹 테스트 정의 가져오기
$location01 = New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr"
$location02 = New-AzApplicationInsightsWebTestGeolocationObject -Location "us-ca-sjc-azr"
New-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standardwebtestpwsh03 -Location 'westus2' `
-Tag @{"hidden-link:/subscriptions/xxxxxxxxxx-xxxx-xxxxx-xxxxxxxxxxxx/resourceGroups/azpwsh-rg-test/providers/microsoft.insights/components/appinsightsportal01" = "Resource"} `
-RequestUrl "https://learn.microsoft.com/" -RequestHttpVerb "GET" `
-TestName 'standardwebtestpwsh03' `
-RuleSslCheck -RuleSslCertRemainingLifetimeCheck 7 -RuleExpectedHttpStatusCode 200 `
-Enabled -Frequency 300 -Timeout 120 -Kind "standard" -RetryEnabled -GeoLocation $location01, $location02 ` |Get-AzApplicationInsightsWebTest
Name Location WebTestKind ResourceGroupName Enabled
---- -------- ----------- ----------------- -------
standardwebtestpwsh03 westus2 standard azpwsh-rg-test True
이 명령은 파이프라인별로 특정 Application Insights 웹 테스트 정의를 가져옵니다.
매개 변수
-AppInsightsName
Application Insights 구성 요소 리소스의 이름입니다.
형식: | String |
Position: | Named |
Default value: | None |
필수: | True |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
-DefaultProfile
DefaultProfile 매개 변수가 작동하지 않습니다. 다른 구독에 대해 cmdlet을 실행하는 경우 사용 가능한 경우 SubscriptionId 매개 변수를 사용합니다.
형식: | PSObject |
별칭: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
필수: | False |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
-InputObject
생성할 ID 매개 변수는 INPUTOBJECT 속성에 대한 NOTES 섹션을 참조하고 해시 테이블을 만듭니다.
형식: | IApplicationInsightsIdentity |
Position: | Named |
Default value: | None |
필수: | True |
파이프라인 입력 허용: | True |
와일드카드 문자 허용: | False |
-Name
Application Insights WebTest 리소스의 이름입니다.
형식: | String |
별칭: | WebTestName |
Position: | Named |
Default value: | None |
필수: | True |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
-ResourceGroupName
리소스 그룹의 이름입니다. 이름은 대/소문자를 구분하지 않습니다.
형식: | String |
Position: | Named |
Default value: | None |
필수: | True |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
-SubscriptionId
대상 구독의 ID입니다.
형식: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
필수: | False |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
입력
출력
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell