Component

class Component : KotlinCustomResource

An Application Insights component definition. Uses Azure REST API version 2020-02-02. Other available API versions: 2015-05-01, 2018-05-01-preview, 2020-02-02-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native applicationinsights [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ComponentCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var component = new AzureNative.ApplicationInsights.Component("component", new()
{
ApplicationType = AzureNative.ApplicationInsights.ApplicationType.Web,
FlowType = AzureNative.ApplicationInsights.FlowType.Bluefield,
Kind = "web",
Location = "South Central US",
RequestSource = AzureNative.ApplicationInsights.RequestSource.Rest,
ResourceGroupName = "my-resource-group",
ResourceName = "my-component",
WorkspaceResourceId = "/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace",
});
});
package main
import (
applicationinsights "github.com/pulumi/pulumi-azure-native-sdk/applicationinsights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := applicationinsights.NewComponent(ctx, "component", &applicationinsights.ComponentArgs{
ApplicationType: pulumi.String(applicationinsights.ApplicationTypeWeb),
FlowType: pulumi.String(applicationinsights.FlowTypeBluefield),
Kind: pulumi.String("web"),
Location: pulumi.String("South Central US"),
RequestSource: pulumi.String(applicationinsights.RequestSourceRest),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("my-component"),
WorkspaceResourceId: pulumi.String("/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.applicationinsights.Component;
import com.pulumi.azurenative.applicationinsights.ComponentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var component = new Component("component", ComponentArgs.builder()
.applicationType("web")
.flowType("Bluefield")
.kind("web")
.location("South Central US")
.requestSource("rest")
.resourceGroupName("my-resource-group")
.resourceName("my-component")
.workspaceResourceId("/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace")
.build());
}
}

ComponentUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var component = new AzureNative.ApplicationInsights.Component("component", new()
{
Kind = "web",
Location = "South Central US",
ResourceGroupName = "my-resource-group",
ResourceName = "my-component",
Tags =
{
{ "ApplicationGatewayType", "Internal-Only" },
{ "BillingEntity", "Self" },
},
});
});
package main
import (
applicationinsights "github.com/pulumi/pulumi-azure-native-sdk/applicationinsights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := applicationinsights.NewComponent(ctx, "component", &applicationinsights.ComponentArgs{
Kind: pulumi.String("web"),
Location: pulumi.String("South Central US"),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("my-component"),
Tags: pulumi.StringMap{
"ApplicationGatewayType": pulumi.String("Internal-Only"),
"BillingEntity": pulumi.String("Self"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.applicationinsights.Component;
import com.pulumi.azurenative.applicationinsights.ComponentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var component = new Component("component", ComponentArgs.builder()
.kind("web")
.location("South Central US")
.resourceGroupName("my-resource-group")
.resourceName("my-component")
.tags(Map.ofEntries(
Map.entry("ApplicationGatewayType", "Internal-Only"),
Map.entry("BillingEntity", "Self")
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:applicationinsights:Component my-component /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}

Properties

Link copied to clipboard
val appId: Output<String>

Application Insights Unique ID for your Application.

Link copied to clipboard
val applicationId: Output<String>

The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.

Link copied to clipboard
val applicationType: Output<String>

Type of application being monitored.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

Application Insights component connection string.

Link copied to clipboard
val creationDate: Output<String>

Creation Date for the Application Insights component, in ISO 8601 format.

Link copied to clipboard

Disable IP masking.

Link copied to clipboard

Disable Non-AAD based Auth.

Link copied to clipboard
val etag: Output<String>?

Resource etag

Link copied to clipboard
val flowType: Output<String>?

Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API.

Link copied to clipboard

Force users to create their own storage account for profiler and debugger.

Link copied to clipboard
val hockeyAppId: Output<String>?

The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.

Link copied to clipboard
val hockeyAppToken: Output<String>

Token used to authenticate communications with between Application Insights and HockeyApp.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Purge data immediately after 30 days.

Link copied to clipboard
val ingestionMode: Output<String>?

Indicates the flow of the ingestion.

Link copied to clipboard

Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component.

Link copied to clipboard
val kind: Output<String>

The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.

Link copied to clipboard
val laMigrationDate: Output<String>

The date which the component got migrated to LA, in ISO 8601 format.

Link copied to clipboard
val location: Output<String>

Resource location

Link copied to clipboard
val name: Output<String>

Azure resource name

Link copied to clipboard

List of linked private link scope resources.

Link copied to clipboard

Current state of this component: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.

Link copied to clipboard

The network access type for accessing Application Insights ingestion.

Link copied to clipboard

The network access type for accessing Application Insights query.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val requestSource: Output<String>?

Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.

Link copied to clipboard
val retentionInDays: Output<Int>?

Retention period in days.

Link copied to clipboard

Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags

Link copied to clipboard
val tenantId: Output<String>

Azure Tenant Id.

Link copied to clipboard
val type: Output<String>

Azure resource type

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Resource Id of the log analytics workspace which the data will be ingested to. This property is required to create an application with this API version. Applications from older versions will not have this property.