Show / Hide Table of Contents

Class Insights

Manages an Application Insights component.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
    {
        Location = "West Europe",
    });
    var exampleInsights = new Azure.AppInsights.Insights("exampleInsights", new Azure.AppInsights.InsightsArgs
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        ApplicationType = "web",
    });
    this.InstrumentationKey = exampleInsights.InstrumentationKey;
    this.AppId = exampleInsights.AppId;
}

[Output("instrumentationKey")]
public Output<string> InstrumentationKey { get; set; }
[Output("appId")]
public Output<string> AppId { get; set; }
}
Inheritance
System.Object
Resource
CustomResource
Insights
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.AppInsights
Assembly: Pulumi.Azure.dll
Syntax
public class Insights : CustomResource

Constructors

View Source

Insights(String, InsightsArgs, CustomResourceOptions)

Create a Insights resource with the given unique name, arguments, and options.

Declaration
public Insights(string name, InsightsArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

InsightsArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AppId

The App ID associated with this Application Insights component.

Declaration
public Output<string> AppId { get; }
Property Value
Type Description
Output<System.String>
View Source

ApplicationType

Specifies the type of Application Insights to create. Valid values are ios for iOS, java for Java web, MobileCenter for App Center, Node.JS for Node.js, other for General, phone for Windows Phone, store for Windows Store and web for ASP.NET. Please note these values are case sensitive; unmatched values are treated as ASP.NET by Azure. Changing this forces a new resource to be created.

Declaration
public Output<string> ApplicationType { get; }
Property Value
Type Description
Output<System.String>
View Source

DailyDataCapInGb

Specifies the Application Insights component daily data volume cap in GB.

Declaration
public Output<double> DailyDataCapInGb { get; }
Property Value
Type Description
Output<System.Double>
View Source

DailyDataCapNotificationsDisabled

Specifies if a notification email will be send when the daily data volume cap is met.

Declaration
public Output<bool> DailyDataCapNotificationsDisabled { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

DisableIpMasking

By default the real client ip is masked as 0.0.0.0 in the logs. Use this argument to disable masking and log the real client ip. Defaults to false.

Declaration
public Output<bool?> DisableIpMasking { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

InstrumentationKey

The Instrumentation Key for this Application Insights component.

Declaration
public Output<string> InstrumentationKey { get; }
Property Value
Type Description
Output<System.String>
View Source

Location

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Specifies the name of the Application Insights component. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

The name of the resource group in which to create the Application Insights component.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

RetentionInDays

Specifies the retention period in days. Possible values are 30, 60, 90, 120, 180, 270, 365, 550 or 730. Defaults to 90.

Declaration
public Output<int?> RetentionInDays { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

SamplingPercentage

Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry.

Declaration
public Output<double?> SamplingPercentage { get; }
Property Value
Type Description
Output<System.Nullable<System.Double>>
View Source

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>

Methods

View Source

Get(String, Input<String>, InsightsState, CustomResourceOptions)

Get an existing Insights resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Insights Get(string name, Input<string> id, InsightsState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

InsightsState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Insights
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.