Skip to content

Latest commit

 

History

History
180 lines (140 loc) · 3.48 KB

Send-AppInsightsTrace.md

File metadata and controls

180 lines (140 loc) · 3.48 KB
external help file Module Name online version schema
AppInsights.dll-Help.xml
AppInsights
2.0.0

Send-AppInsightsTrace

SYNOPSIS

PowerShell command used to track traces in application insights.

SYNTAX

Send-AppInsightsTrace [-Message] <String> [[-Severity] <SeverityLevel>] [[-InstrumentationKey] <Guid>]
 [[-Properties] <Hashtable>] [[-RoleName] <String>] [[-RoleInstance] <String>] [[-CaptureLevel] <Int32>]
 [-CaptureCommand] [-DeveloperMode] [<CommonParameters>]

DESCRIPTION

PowerShell command used to track traces in application insights.

EXAMPLES

Example 1

Send-AppInsightsTrace -Message "Fruit selected" -Severity Critical -Properties @{ "Fruit" = "Apple" } -RoleName "My Custom Role"

PARAMETERS

-CaptureCommand

Disables the capturing for the PowerShell command context. For instance, if sensitive data would be captured.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Benannt
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CaptureLevel

Defines which level in the call stack is taken into account for the command context.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Benannt
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InstrumentationKey

The Application Insights Instrumentation Key.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Message

The Message that is transmitted.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Properties

Optional dictionary with custom properties.

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RoleInstance

Defines whether the process was successfully processed.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Benannt
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RoleName

Defines whether the process was successfully processed.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Benannt
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Severity

The message severity. Values are Verbose, Information, Warning, Error, and Critical. Default is Information.

Type: SeverityLevel
Parameter Sets: (All)
Aliases:
Accepted values: Verbose, Information, Warning, Error, Critical

Required: False
Position: Benannt
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DeveloperMode

Enables the application insights developer mode.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS