Get-AzApplicationInsightsWebTest
Obtenha uma definição de teste da Web específica do Application Insights.
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
Obtenha uma definição de teste da Web específica do Application Insights.
Exemplos
Exemplo 1: Listar todos os testes da Web do Application Insights em uma assinatura
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
Este comando lista todos os testes da Web do Application Insights em uma assinatura.
Exemplo 2: Listar todos os testes da Web do Application Insights em um grupo de recursos
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
Este comando lista todos os testes da Web do Application Insights em um grupo de recursos.
Exemplo 3: Listar todos os testes da Web do Application Insights em um Application Insights específico
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
Este comando lista todos os testes da Web do Application Insights em um Application Insights específico.
Exemplo 4: Obter uma definição de teste da Web específica do Application Insights
Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standard-pwsh01
Name Location WebTestKind ResourceGroupName Enabled
---- -------- ----------- ----------------- -------
standard-pwsh01 westus2 standard azpwsh-rg-test True
Esse comando obtém uma definição de teste da Web específica do Application Insights.
Exemplo 5: Obter uma definição de teste da Web específica do Application Insights por 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
Esse comando obtém uma definição de teste da Web específica do Application Insights por pipeline.
Parâmetros
-AppInsightsName
O nome do recurso do componente Application Insights.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
O parâmetro DefaultProfile não está funcional. Use o parâmetro SubscriptionId quando disponível se estiver executando o cmdlet em uma assinatura diferente.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Parâmetro de identidade Para construir, consulte a seção NOTAS para propriedades INPUTOBJECT e crie uma tabela de hash.
Type: | IApplicationInsightsIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
O nome do recurso WebTest do Application Insights.
Type: | String |
Aliases: | WebTestName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
O nome do grupo de recursos. O nome diferencia maiúsculas de minúsculas.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
A ID da assinatura de destino.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |