Dela via


Get-AzApplicationInsightsApiKey

Hämta API-nyckeln för det här nyckel-ID:t.

Syntax

Get-AzApplicationInsightsApiKey
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzApplicationInsightsApiKey
   -ApiKeyId <String>
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzApplicationInsightsApiKey
   -InputObject <IApplicationInsightsIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Hämta API-nyckeln för det här nyckel-ID:t.

Exempel

Exempel 1: Hämta API-nycklar för en application insights-resurs

Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test"

Hämta API-nycklar för en application insights-resurs

Exempel 2: Hämta specifik API-nyckel för en application insights-resurs

Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 7c4c61dc-b392-4aa4-992f-ee92b84e5dee

Hämta specifik API-nyckel för en application insights-resurs

Parametrar

-ApiKeyId

API-nyckel-ID:t. Detta är unikt i en Application Insights-komponent.

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-komponentresursen.

Typ:String
Alias:ApplicationInsightsComponentName, ComponentName
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

Indata

IApplicationInsightsIdentity

Utdata

IApplicationInsightsComponentApiKey