你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzApplicationInsights

返回 Application Insights 组件。

语法

ListBySubscription (默认值)

Get-AzApplicationInsights
    [-SubscriptionId <String[]>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Get

Get-AzApplicationInsights
    -ResourceGroupName <String>
    -Name <String>
    [-SubscriptionId <String[]>]
    [-Full]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

ListByResourceGroupName

Get-AzApplicationInsights
    -ResourceGroupName <String>
    [-SubscriptionId <String[]>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetByResourceId

Get-AzApplicationInsights
    -ResourceId <String>
    [-Full]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetByInputObject

Get-AzApplicationInsights
    -InputObject <IApplicationInsightsIdentity>
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

说明

返回 Application Insights 组件。

示例

示例 1:获取 Application Insights 资源

Get-AzApplicationInsights -ResourceGroupName "testgroup" -Name "test"

获取 Application Insights 资源

示例 2:使用定价计划信息获取 Application Insights 资源

Get-AzApplicationInsights -ResourceGroupName "testgroup" -Name "test" -IncludePricingPlan

使用定价计划信息获取 Application Insights 资源

参数

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅。

参数属性

类型:PSObject
默认值:None
支持通配符:False
不显示:False
别名:AzureRMContext, AzureCredential

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Full

返回 Application Insights 组件。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:IncludeDailyCap, IncludeDailyCapStatus, IncludePricingPlan

参数集

Get
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False
GetByResourceId
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-InputObject

要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。

参数属性

类型:IApplicationInsightsIdentity
默认值:None
支持通配符:False
不显示:False

参数集

GetByInputObject
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

Application Insights 组件资源的名称。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False
别名:ApplicationInsightsComponentName, ComponentName

参数集

Get
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ResourceGroupName

资源组的名称。 此名称不区分大小写。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

Get
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False
ListByResourceGroupName
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ResourceId

applicationinsights 组件的资源 ID。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

GetByResourceId
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-SubscriptionId

目标订阅的 ID。

参数属性

类型:

String[]

默认值:(Get-AzContext).Subscription.Id
支持通配符:False
不显示:False

参数集

ListBySubscription
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False
Get
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False
ListByResourceGroupName
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

IApplicationInsightsIdentity

输出

IApplicationInsightsComponent

PSApplicationInsightsComponentWithPricingPlan