Remove-AzApplicationInsightsApiKey

刪除 Application Insights 元件的 API 金鑰。

Syntax

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

Description

刪除 Application Insights 元件的 API 金鑰。

範例

範例 1:移除 Application Insights 資源的應用程式深入解析 API 金鑰

Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId dd173f38-4fd1-4c75-8af5-99c29aa0f867

拿掉 Application Insights 資源的 Application Insights API 密鑰

參數

-ApiKeyId

API 金鑰識別碼。 這在 Application Insights 元件內是唯一的。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

執行 Cmdlet 之前先提示您確認。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

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

Application Insights 元件資源的名稱。

Type:String
Aliases:ApplicationInsightsComponentName, ComponentName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

資源群組的名稱。 名稱不區分大小寫。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

目標訂用帳戶的標識碼。

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

輸入

IApplicationInsightsIdentity

輸出

IApplicationInsightsComponentApiKey

備註

別名

COMPLEX PARAMETER PROPERTIES

若要建立以下所述的參數,請建構包含適當屬性的哈希表。 如需哈希表的相關信息,請執行 Get-Help about_Hash_Tables。

INPUTOBJECT <IApplicationInsightsIdentity>:Identity 參數

  • [AnnotationId <String>]:唯一注釋標識符。 這在 Application Insights 元件內是唯一的。
  • [ComponentName <String>]:Application Insights 元件資源的名稱。
  • [ExportId <String>]:連續匯出組態標識符。 這在 Application Insights 元件內是唯一的。
  • [Id <String>]:資源識別路徑
  • [KeyId <String>]:API 金鑰識別碼。 這在 Application Insights 元件內是唯一的。
  • [PurgeId <String>]:在清除狀態要求中,這是作業的標識符,其狀態會傳回。
  • [ResourceGroupName <String>]:資源群組的名稱。 名稱不區分大小寫。
  • [ResourceName <String>]:Application Insights 元件資源的名稱。
  • [RevisionId <String>]:活頁簿修訂的標識碼。
  • [StorageType <StorageType?>]:鏈接記憶體帳戶的 Application Insights 元件數據源類型。
  • [SubscriptionId <String>]:目標訂用帳戶的標識碼。
  • [WebTestName <String>]:Application Insights WebTest 資源的名稱。