Get-AzApplicationInsightsWebTest
Hämta en specifik Application Insights-webbtestdefinition.
Syntax
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
Hämta en specifik Application Insights-webbtestdefinition.
Exempel
Exempel 1: Lista alla Application Insights-webbtester under en prenumeration
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
Det här kommandot visar alla Application Insights-webbtester under en prenumeration.
Exempel 2: Lista alla Application Insights-webbtester under en resursgrupp
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
Det här kommandot visar alla Application Insights-webbtester under en resursgrupp.
Exempel 3: Lista alla Application Insights-webbtester under en specifik 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
Det här kommandot visar alla Application Insights-webbtester under en specifik Application Insights.
Exempel 4: Hämta en specifik Application Insights-webbtestdefinition
Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standard-pwsh01
Name Location WebTestKind ResourceGroupName Enabled
---- -------- ----------- ----------------- -------
standard-pwsh01 westus2 standard azpwsh-rg-test True
Det här kommandot hämtar en specifik Application Insights-webbtestdefinition.
Exempel 5: Hämta en specifik Application Insights-webbtestdefinition per pipeline
$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
Det här kommandot hämtar en specifik Application Insights-webbtestdefinition per pipeline.
Parametrar
-AppInsightsName
Namnet på Application Insights-komponentresursen.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-DefaultProfile
Parametern DefaultProfile fungerar inte. Använd parametern SubscriptionId när den är tillgänglig om du kör cmdleten mot en annan prenumeration.
Typ: | PSObject |
Alias: | AzureRMContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-InputObject
Identitetsparameter För att skapa, se AVSNITTET ANTECKNINGAR för INPUTOBJECT-egenskaper och skapa en hash-tabell.
Typ: | IApplicationInsightsIdentity |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Name
Namnet på Application Insights WebTest-resursen.
Typ: | String |
Alias: | WebTestName |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ResourceGroupName
Namnet på resursgruppen. Namnet är skiftlägesokänsligt.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-SubscriptionId
ID för målprenumerationen.
Typ: | String[] |
Position: | Named |
Standardvärde: | (Get-AzContext).Subscription.Id |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |