Get-AzApplicationInsightsWebTest
Rufen Sie eine bestimmte Application Insights-Webtestdefinition ab.
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>]
Beschreibung
Rufen Sie eine bestimmte Application Insights-Webtestdefinition ab.
Beispiele
Beispiel 1: Auflisten aller Application Insights-Webtests unter einem Abonnement
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
Dieser Befehl listet alle Application Insights-Webtests in einem Abonnement auf.
Beispiel 2: Auflisten aller Application Insights-Webtests unter einer Ressourcengruppe
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
Dieser Befehl listet alle Application Insights-Webtests unter einer Ressourcengruppe auf.
Beispiel 3: Auflisten aller Application Insights-Webtests unter einem bestimmten 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
Dieser Befehl listet alle Application Insights-Webtests unter einer bestimmten Application Insights auf.
Beispiel 4: Abrufen einer bestimmten Application Insights-Webtestdefinition
Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standard-pwsh01
Name Location WebTestKind ResourceGroupName Enabled
---- -------- ----------- ----------------- -------
standard-pwsh01 westus2 standard azpwsh-rg-test True
Dieser Befehl ruft eine bestimmte Application Insights-Webtestdefinition ab.
Beispiel 5: Abrufen einer bestimmten Application Insights-Webtestdefinition nach 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
Dieser Befehl ruft eine bestimmte Application Insights-Webtestdefinition nach Pipeline ab.
Parameter
-AppInsightsName
Der Name der Application Insights-Komponentenressource.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Der Parameter DefaultProfile ist nicht funktionsfähig. Verwenden Sie den Parameter "SubscriptionId", wenn sie verfügbar ist, wenn Sie das Cmdlet für ein anderes Abonnement ausführen.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IApplicationInsightsIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Der Name der Application Insights WebTest-Ressource.
Type: | String |
Aliases: | WebTestName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Der Name der Ressourcengruppe. Für den Namen wird die Groß-/Kleinschreibung nicht beachtet.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
Hierbei handelt es sich um die ID des Zielabonnements.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Eingaben
Ausgaben
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für