Get-AzureRmApplicationInsights
Get application insights resources
Warning
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.
Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.
Syntax
Get-AzureRmApplicationInsights
[[-ResourceGroupName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmApplicationInsights
[-ResourceGroupName] <String>
[-Name] <String>
[-Full]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmApplicationInsights
[-ResourceId] <String>
[-Full]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get application insights resources in a resource group or specific resource
Examples
Example 1 Get application insights resource
PS C:\> Get-AzureRmApplicationInsights -ResourceGroupName "testgroup" -Name "test"
Id : /subscriptions/{subid}/resourceGroups/testgroup/providers/microsoft.insights/components/test
ResourceGroupName : testgroup
Name : test
Kind : web
Location : eastus
Type : microsoft.insights/components
AppId : 7c8f0641-d307-41bc-b8f2-d30701adb4b3
ApplicationType : web
Tags : {}
CreationDate : 7/5/2017 4:37:22 PM
FlowType : Redfield
HockeyAppId :
HockeyAppToken :
InstrumentationKey : 1e30d092-4b4b-47c6-ad39-7c10785d80f5
ProvisioningState : Succeeded
RequestSource : IbizaAIExtension
SamplingPercentage :
TenantId : b90b0dec-9b9a-4778-a84e-4ffb73bb17f7
Get application insights resource named "test" in resoruce group "testgroup"
Example 2 Get application insights resource with pricing plan information
PS C:\> Get-AzureRmApplicationInsights -ResourceGroupName "testgroup" -Name "test" -IncludePricingPlan
Cap : 330
ResetTime : 0
StopSendNotificationWhenHitCap : True
CapExpirationTime :
IsCapped : False
Id : /subscriptions/{subid}/resourceGroups/testgroup/providers/microsoft.insights/components/test
ResourceGroupName : testgroup
Name : test
Kind : web
Location : eastus
Type : microsoft.insights/components
AppId : 7c8f0641-d307-41bc-b8f2-d30701adb4b3
ApplicationType : web
Tags : {}
CreationDate : 7/5/2017 4:37:22 PM
FlowType : Redfield
HockeyAppId :
HockeyAppToken :
InstrumentationKey : 1e30d092-4b4b-47c6-ad39-7c10785d80f5
ProvisioningState : Succeeded
RequestSource : IbizaAIExtension
SamplingPercentage :
TenantId : b90b0dec-9b9a-4778-a84e-4ffb73bb17f7
PricingPlan : Basic
Get application insights resource and include pricing plan information for resource named "test" in resoruce group "testgroup"
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Full
If specified, it will get back pricing plan/daily cap and status of the application insights component.
Type: | SwitchParameter |
Aliases: | IncludeDailyCap, IncludeDailyCapStatus, IncludePricingPlan |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Application Insights Resource Name.
Type: | String |
Aliases: | ApplicationInsightsComponentName, ComponentName |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Resource Group Name.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
Application Insights Component Resource Id.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |