< Back
New-AzureRmApplicationInsights
Post
NAME New-AzureRmApplicationInsights
SYNOPSIS
Create a new application insights resource
SYNTAX
New-AzureRmApplicationInsights [-ResourceGroupName] <String> [-Name] <String> [-Location] <String> [-Confirm] [-DefaultProfile
<IAzureContextContainer>] [-Kind {web | other | Node.js | java}] [-Tag <Hashtable>] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Create a new application insights resource
PARAMETERS
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Kind <String>
Application kind.
Required? false
Position? named
Default value web
Accept pipeline input? False
Accept wildcard characters? false
-Location <String>
Application Insights Resource Location.
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Application Insights Resource Name.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
Resource Group Name.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Tag <Hashtable>
Component Tags.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.ApplicationInsights.Models.PSApplicationInsightsComponent
NOTES
Example 1 Create a new application insights resource
PS C:\\> New-AzureRmApplicationInsights -Kind java -ResourceGroupName testgroup -Name test1027 -location eastus
Id : /subscriptions/{subid}/resourceGroups/testgroup/providers/microsoft.insights/components/test1027
ResourceGroupName : testgroup
Name : test1027
Kind : web
Location : eastus
Type : microsoft.insights/components
AppId : 8323fb13-32aa-46af-b467-8355cf4f8f98
ApplicationType : web
Tags : {}
CreationDate : 10/27/2017 4:56:40 PM
FlowType :
HockeyAppId :
HockeyAppToken :
InstrumentationKey : 083112ed-ed9b-464e-a9b0-8cf126fbfced
ProvisioningState : Succeeded
RequestSource : AzurePowerShell
SamplingPercentage :
TenantId : {subid}
Add a new application insights resource named as "test" in resource group "testgroup" with kind "java".
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... oninsights
SYNOPSIS
Create a new application insights resource
SYNTAX
New-AzureRmApplicationInsights [-ResourceGroupName] <String> [-Name] <String> [-Location] <String> [-Confirm] [-DefaultProfile
<IAzureContextContainer>] [-Kind {web | other | Node.js | java}] [-Tag <Hashtable>] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Create a new application insights resource
PARAMETERS
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Kind <String>
Application kind.
Required? false
Position? named
Default value web
Accept pipeline input? False
Accept wildcard characters? false
-Location <String>
Application Insights Resource Location.
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Application Insights Resource Name.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
Resource Group Name.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Tag <Hashtable>
Component Tags.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.ApplicationInsights.Models.PSApplicationInsightsComponent
NOTES
Example 1 Create a new application insights resource
PS C:\\> New-AzureRmApplicationInsights -Kind java -ResourceGroupName testgroup -Name test1027 -location eastus
Id : /subscriptions/{subid}/resourceGroups/testgroup/providers/microsoft.insights/components/test1027
ResourceGroupName : testgroup
Name : test1027
Kind : web
Location : eastus
Type : microsoft.insights/components
AppId : 8323fb13-32aa-46af-b467-8355cf4f8f98
ApplicationType : web
Tags : {}
CreationDate : 10/27/2017 4:56:40 PM
FlowType :
HockeyAppId :
HockeyAppToken :
InstrumentationKey : 083112ed-ed9b-464e-a9b0-8cf126fbfced
ProvisioningState : Succeeded
RequestSource : AzurePowerShell
SamplingPercentage :
TenantId : {subid}
Add a new application insights resource named as "test" in resource group "testgroup" with kind "java".
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... oninsights