azure-native.insights.Component
Explore with Pulumi AI
An Application Insights component definition. Azure REST API version: 2020-02-02. Prior API version in Azure Native 1.x: 2015-05-01.
Other available API versions: 2020-02-02-preview.
Example Usage
ComponentCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var component = new AzureNative.Insights.Component("component", new()
    {
        ApplicationType = AzureNative.Insights.ApplicationType.Web,
        FlowType = AzureNative.Insights.FlowType.Bluefield,
        Kind = "web",
        Location = "South Central US",
        RequestSource = AzureNative.Insights.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 (
	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewComponent(ctx, "component", &insights.ComponentArgs{
			ApplicationType:     pulumi.String(insights.ApplicationTypeWeb),
			FlowType:            pulumi.String(insights.FlowTypeBluefield),
			Kind:                pulumi.String("web"),
			Location:            pulumi.String("South Central US"),
			RequestSource:       pulumi.String(insights.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.insights.Component;
import com.pulumi.azurenative.insights.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());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const component = new azure_native.insights.Component("component", {
    applicationType: azure_native.insights.ApplicationType.Web,
    flowType: azure_native.insights.FlowType.Bluefield,
    kind: "web",
    location: "South Central US",
    requestSource: azure_native.insights.RequestSource.Rest,
    resourceGroupName: "my-resource-group",
    resourceName: "my-component",
    workspaceResourceId: "/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace",
});
import pulumi
import pulumi_azure_native as azure_native
component = azure_native.insights.Component("component",
    application_type=azure_native.insights.ApplicationType.WEB,
    flow_type=azure_native.insights.FlowType.BLUEFIELD,
    kind="web",
    location="South Central US",
    request_source=azure_native.insights.RequestSource.REST,
    resource_group_name="my-resource-group",
    resource_name_="my-component",
    workspace_resource_id="/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace")
resources:
  component:
    type: azure-native:insights:Component
    properties:
      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
ComponentUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var component = new AzureNative.Insights.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 (
	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewComponent(ctx, "component", &insights.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.insights.Component;
import com.pulumi.azurenative.insights.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 * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const component = new azure_native.insights.Component("component", {
    kind: "web",
    location: "South Central US",
    resourceGroupName: "my-resource-group",
    resourceName: "my-component",
    tags: {
        ApplicationGatewayType: "Internal-Only",
        BillingEntity: "Self",
    },
});
import pulumi
import pulumi_azure_native as azure_native
component = azure_native.insights.Component("component",
    kind="web",
    location="South Central US",
    resource_group_name="my-resource-group",
    resource_name_="my-component",
    tags={
        "ApplicationGatewayType": "Internal-Only",
        "BillingEntity": "Self",
    })
resources:
  component:
    type: azure-native:insights:Component
    properties:
      kind: web
      location: South Central US
      resourceGroupName: my-resource-group
      resourceName: my-component
      tags:
        ApplicationGatewayType: Internal-Only
        BillingEntity: Self
Create Component Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Component(name: string, args: ComponentArgs, opts?: CustomResourceOptions);@overload
def Component(resource_name: str,
              args: ComponentArgs,
              opts: Optional[ResourceOptions] = None)
@overload
def Component(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              application_type: Optional[Union[str, ApplicationType]] = None,
              resource_group_name: Optional[str] = None,
              kind: Optional[str] = None,
              force_customer_storage_for_profiler: Optional[bool] = None,
              public_network_access_for_ingestion: Optional[Union[str, PublicNetworkAccessType]] = None,
              hockey_app_id: Optional[str] = None,
              immediate_purge_data_on30_days: Optional[bool] = None,
              ingestion_mode: Optional[Union[str, IngestionMode]] = None,
              disable_local_auth: Optional[bool] = None,
              location: Optional[str] = None,
              flow_type: Optional[Union[str, FlowType]] = None,
              public_network_access_for_query: Optional[Union[str, PublicNetworkAccessType]] = None,
              request_source: Optional[Union[str, RequestSource]] = None,
              disable_ip_masking: Optional[bool] = None,
              resource_name_: Optional[str] = None,
              retention_in_days: Optional[int] = None,
              sampling_percentage: Optional[float] = None,
              tags: Optional[Mapping[str, str]] = None,
              workspace_resource_id: Optional[str] = None)func NewComponent(ctx *Context, name string, args ComponentArgs, opts ...ResourceOption) (*Component, error)public Component(string name, ComponentArgs args, CustomResourceOptions? opts = null)
public Component(String name, ComponentArgs args)
public Component(String name, ComponentArgs args, CustomResourceOptions options)
type: azure-native:insights:Component
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ComponentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComponentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComponentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComponentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComponentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var componentResource = new AzureNative.Insights.Component("componentResource", new()
{
    ApplicationType = "string",
    ResourceGroupName = "string",
    Kind = "string",
    ForceCustomerStorageForProfiler = false,
    PublicNetworkAccessForIngestion = "string",
    HockeyAppId = "string",
    ImmediatePurgeDataOn30Days = false,
    IngestionMode = "string",
    DisableLocalAuth = false,
    Location = "string",
    FlowType = "string",
    PublicNetworkAccessForQuery = "string",
    RequestSource = "string",
    DisableIpMasking = false,
    ResourceName = "string",
    RetentionInDays = 0,
    SamplingPercentage = 0,
    Tags = 
    {
        { "string", "string" },
    },
    WorkspaceResourceId = "string",
});
example, err := insights.NewComponent(ctx, "componentResource", &insights.ComponentArgs{
	ApplicationType:                 pulumi.String("string"),
	ResourceGroupName:               pulumi.String("string"),
	Kind:                            pulumi.String("string"),
	ForceCustomerStorageForProfiler: pulumi.Bool(false),
	PublicNetworkAccessForIngestion: pulumi.String("string"),
	HockeyAppId:                     pulumi.String("string"),
	ImmediatePurgeDataOn30Days:      pulumi.Bool(false),
	IngestionMode:                   pulumi.String("string"),
	DisableLocalAuth:                pulumi.Bool(false),
	Location:                        pulumi.String("string"),
	FlowType:                        pulumi.String("string"),
	PublicNetworkAccessForQuery:     pulumi.String("string"),
	RequestSource:                   pulumi.String("string"),
	DisableIpMasking:                pulumi.Bool(false),
	ResourceName:                    pulumi.String("string"),
	RetentionInDays:                 pulumi.Int(0),
	SamplingPercentage:              pulumi.Float64(0),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	WorkspaceResourceId: pulumi.String("string"),
})
var componentResource = new Component("componentResource", ComponentArgs.builder()
    .applicationType("string")
    .resourceGroupName("string")
    .kind("string")
    .forceCustomerStorageForProfiler(false)
    .publicNetworkAccessForIngestion("string")
    .hockeyAppId("string")
    .immediatePurgeDataOn30Days(false)
    .ingestionMode("string")
    .disableLocalAuth(false)
    .location("string")
    .flowType("string")
    .publicNetworkAccessForQuery("string")
    .requestSource("string")
    .disableIpMasking(false)
    .resourceName("string")
    .retentionInDays(0)
    .samplingPercentage(0)
    .tags(Map.of("string", "string"))
    .workspaceResourceId("string")
    .build());
component_resource = azure_native.insights.Component("componentResource",
    application_type="string",
    resource_group_name="string",
    kind="string",
    force_customer_storage_for_profiler=False,
    public_network_access_for_ingestion="string",
    hockey_app_id="string",
    immediate_purge_data_on30_days=False,
    ingestion_mode="string",
    disable_local_auth=False,
    location="string",
    flow_type="string",
    public_network_access_for_query="string",
    request_source="string",
    disable_ip_masking=False,
    resource_name_="string",
    retention_in_days=0,
    sampling_percentage=0,
    tags={
        "string": "string",
    },
    workspace_resource_id="string")
const componentResource = new azure_native.insights.Component("componentResource", {
    applicationType: "string",
    resourceGroupName: "string",
    kind: "string",
    forceCustomerStorageForProfiler: false,
    publicNetworkAccessForIngestion: "string",
    hockeyAppId: "string",
    immediatePurgeDataOn30Days: false,
    ingestionMode: "string",
    disableLocalAuth: false,
    location: "string",
    flowType: "string",
    publicNetworkAccessForQuery: "string",
    requestSource: "string",
    disableIpMasking: false,
    resourceName: "string",
    retentionInDays: 0,
    samplingPercentage: 0,
    tags: {
        string: "string",
    },
    workspaceResourceId: "string",
});
type: azure-native:insights:Component
properties:
    applicationType: string
    disableIpMasking: false
    disableLocalAuth: false
    flowType: string
    forceCustomerStorageForProfiler: false
    hockeyAppId: string
    immediatePurgeDataOn30Days: false
    ingestionMode: string
    kind: string
    location: string
    publicNetworkAccessForIngestion: string
    publicNetworkAccessForQuery: string
    requestSource: string
    resourceGroupName: string
    resourceName: string
    retentionInDays: 0
    samplingPercentage: 0
    tags:
        string: string
    workspaceResourceId: string
Component Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Component resource accepts the following input properties:
- ApplicationType string | Pulumi.Azure Native. Insights. Application Type 
- Type of application being monitored.
- Kind 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.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- DisableIp boolMasking 
- Disable IP masking.
- DisableLocal boolAuth 
- Disable Non-AAD based Auth.
- FlowType string | Pulumi.Azure Native. Insights. Flow Type 
- 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.
- ForceCustomer boolStorage For Profiler 
- Force users to create their own storage account for profiler and debugger.
- HockeyApp stringId 
- The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
- ImmediatePurge boolData On30Days 
- Purge data immediately after 30 days.
- IngestionMode string | Pulumi.Azure Native. Insights. Ingestion Mode 
- Indicates the flow of the ingestion.
- Location string
- Resource location
- PublicNetwork string | Pulumi.Access For Ingestion Azure Native. Insights. Public Network Access Type 
- The network access type for accessing Application Insights ingestion.
- PublicNetwork string | Pulumi.Access For Query Azure Native. Insights. Public Network Access Type 
- The network access type for accessing Application Insights query.
- RequestSource string | Pulumi.Azure Native. Insights. Request Source 
- Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
- ResourceName string
- The name of the Application Insights component resource.
- RetentionIn intDays 
- Retention period in days.
- SamplingPercentage double
- Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
- Dictionary<string, string>
- Resource tags
- WorkspaceResource stringId 
- 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.
- ApplicationType string | ApplicationType 
- Type of application being monitored.
- Kind 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.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- DisableIp boolMasking 
- Disable IP masking.
- DisableLocal boolAuth 
- Disable Non-AAD based Auth.
- FlowType string | FlowType 
- 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.
- ForceCustomer boolStorage For Profiler 
- Force users to create their own storage account for profiler and debugger.
- HockeyApp stringId 
- The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
- ImmediatePurge boolData On30Days 
- Purge data immediately after 30 days.
- IngestionMode string | IngestionMode 
- Indicates the flow of the ingestion.
- Location string
- Resource location
- PublicNetwork string | PublicAccess For Ingestion Network Access Type 
- The network access type for accessing Application Insights ingestion.
- PublicNetwork string | PublicAccess For Query Network Access Type 
- The network access type for accessing Application Insights query.
- RequestSource string | RequestSource 
- Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
- ResourceName string
- The name of the Application Insights component resource.
- RetentionIn intDays 
- Retention period in days.
- SamplingPercentage float64
- Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
- map[string]string
- Resource tags
- WorkspaceResource stringId 
- 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.
- applicationType String | ApplicationType 
- Type of application being monitored.
- kind 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.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- disableIp BooleanMasking 
- Disable IP masking.
- disableLocal BooleanAuth 
- Disable Non-AAD based Auth.
- flowType String | FlowType 
- 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.
- forceCustomer BooleanStorage For Profiler 
- Force users to create their own storage account for profiler and debugger.
- hockeyApp StringId 
- The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
- immediatePurge BooleanData On30Days 
- Purge data immediately after 30 days.
- ingestionMode String | IngestionMode 
- Indicates the flow of the ingestion.
- location String
- Resource location
- publicNetwork String | PublicAccess For Ingestion Network Access Type 
- The network access type for accessing Application Insights ingestion.
- publicNetwork String | PublicAccess For Query Network Access Type 
- The network access type for accessing Application Insights query.
- requestSource String | RequestSource 
- Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
- resourceName String
- The name of the Application Insights component resource.
- retentionIn IntegerDays 
- Retention period in days.
- samplingPercentage Double
- Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
- Map<String,String>
- Resource tags
- workspaceResource StringId 
- 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.
- applicationType string | ApplicationType 
- Type of application being monitored.
- kind 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.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- disableIp booleanMasking 
- Disable IP masking.
- disableLocal booleanAuth 
- Disable Non-AAD based Auth.
- flowType string | FlowType 
- 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.
- forceCustomer booleanStorage For Profiler 
- Force users to create their own storage account for profiler and debugger.
- hockeyApp stringId 
- The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
- immediatePurge booleanData On30Days 
- Purge data immediately after 30 days.
- ingestionMode string | IngestionMode 
- Indicates the flow of the ingestion.
- location string
- Resource location
- publicNetwork string | PublicAccess For Ingestion Network Access Type 
- The network access type for accessing Application Insights ingestion.
- publicNetwork string | PublicAccess For Query Network Access Type 
- The network access type for accessing Application Insights query.
- requestSource string | RequestSource 
- Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
- resourceName string
- The name of the Application Insights component resource.
- retentionIn numberDays 
- Retention period in days.
- samplingPercentage number
- Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
- {[key: string]: string}
- Resource tags
- workspaceResource stringId 
- 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.
- application_type str | ApplicationType 
- Type of application being monitored.
- kind str
- 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.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- disable_ip_ boolmasking 
- Disable IP masking.
- disable_local_ boolauth 
- Disable Non-AAD based Auth.
- flow_type str | FlowType 
- 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.
- force_customer_ boolstorage_ for_ profiler 
- Force users to create their own storage account for profiler and debugger.
- hockey_app_ strid 
- The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
- immediate_purge_ booldata_ on30_ days 
- Purge data immediately after 30 days.
- ingestion_mode str | IngestionMode 
- Indicates the flow of the ingestion.
- location str
- Resource location
- public_network_ str | Publicaccess_ for_ ingestion Network Access Type 
- The network access type for accessing Application Insights ingestion.
- public_network_ str | Publicaccess_ for_ query Network Access Type 
- The network access type for accessing Application Insights query.
- request_source str | RequestSource 
- Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
- resource_name str
- The name of the Application Insights component resource.
- retention_in_ intdays 
- Retention period in days.
- sampling_percentage float
- Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
- Mapping[str, str]
- Resource tags
- workspace_resource_ strid 
- 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.
- applicationType String | "web" | "other"
- Type of application being monitored.
- kind 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.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- disableIp BooleanMasking 
- Disable IP masking.
- disableLocal BooleanAuth 
- Disable Non-AAD based Auth.
- flowType String | "Bluefield"
- 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.
- forceCustomer BooleanStorage For Profiler 
- Force users to create their own storage account for profiler and debugger.
- hockeyApp StringId 
- The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
- immediatePurge BooleanData On30Days 
- Purge data immediately after 30 days.
- ingestionMode String | "ApplicationInsights" | "Application Insights With Diagnostic Settings" | "Log Analytics" 
- Indicates the flow of the ingestion.
- location String
- Resource location
- publicNetwork String | "Enabled" | "Disabled"Access For Ingestion 
- The network access type for accessing Application Insights ingestion.
- publicNetwork String | "Enabled" | "Disabled"Access For Query 
- The network access type for accessing Application Insights query.
- requestSource String | "rest"
- Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
- resourceName String
- The name of the Application Insights component resource.
- retentionIn NumberDays 
- Retention period in days.
- samplingPercentage Number
- Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
- Map<String>
- Resource tags
- workspaceResource StringId 
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Component resource produces the following output properties:
- AppId string
- Application Insights Unique ID for your Application.
- ApplicationId string
- The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
- ConnectionString string
- Application Insights component connection string.
- CreationDate string
- Creation Date for the Application Insights component, in ISO 8601 format.
- HockeyApp stringToken 
- Token used to authenticate communications with between Application Insights and HockeyApp.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstrumentationKey string
- 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.
- LaMigration stringDate 
- The date which the component got migrated to LA, in ISO 8601 format.
- Name string
- Azure resource name
- PrivateLink List<Pulumi.Scoped Resources Azure Native. Insights. Outputs. Private Link Scoped Resource Response> 
- List of linked private link scope resources.
- ProvisioningState string
- 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.
- TenantId string
- Azure Tenant Id.
- Type string
- Azure resource type
- Etag string
- Resource etag
- AppId string
- Application Insights Unique ID for your Application.
- ApplicationId string
- The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
- ConnectionString string
- Application Insights component connection string.
- CreationDate string
- Creation Date for the Application Insights component, in ISO 8601 format.
- HockeyApp stringToken 
- Token used to authenticate communications with between Application Insights and HockeyApp.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstrumentationKey string
- 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.
- LaMigration stringDate 
- The date which the component got migrated to LA, in ISO 8601 format.
- Name string
- Azure resource name
- PrivateLink []PrivateScoped Resources Link Scoped Resource Response 
- List of linked private link scope resources.
- ProvisioningState string
- 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.
- TenantId string
- Azure Tenant Id.
- Type string
- Azure resource type
- Etag string
- Resource etag
- appId String
- Application Insights Unique ID for your Application.
- applicationId String
- The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
- connectionString String
- Application Insights component connection string.
- creationDate String
- Creation Date for the Application Insights component, in ISO 8601 format.
- hockeyApp StringToken 
- Token used to authenticate communications with between Application Insights and HockeyApp.
- id String
- The provider-assigned unique ID for this managed resource.
- instrumentationKey String
- 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.
- laMigration StringDate 
- The date which the component got migrated to LA, in ISO 8601 format.
- name String
- Azure resource name
- privateLink List<PrivateScoped Resources Link Scoped Resource Response> 
- List of linked private link scope resources.
- provisioningState String
- 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.
- tenantId String
- Azure Tenant Id.
- type String
- Azure resource type
- etag String
- Resource etag
- appId string
- Application Insights Unique ID for your Application.
- applicationId string
- The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
- connectionString string
- Application Insights component connection string.
- creationDate string
- Creation Date for the Application Insights component, in ISO 8601 format.
- hockeyApp stringToken 
- Token used to authenticate communications with between Application Insights and HockeyApp.
- id string
- The provider-assigned unique ID for this managed resource.
- instrumentationKey string
- 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.
- laMigration stringDate 
- The date which the component got migrated to LA, in ISO 8601 format.
- name string
- Azure resource name
- privateLink PrivateScoped Resources Link Scoped Resource Response[] 
- List of linked private link scope resources.
- provisioningState string
- 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.
- tenantId string
- Azure Tenant Id.
- type string
- Azure resource type
- etag string
- Resource etag
- app_id str
- Application Insights Unique ID for your Application.
- application_id str
- The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
- connection_string str
- Application Insights component connection string.
- creation_date str
- Creation Date for the Application Insights component, in ISO 8601 format.
- hockey_app_ strtoken 
- Token used to authenticate communications with between Application Insights and HockeyApp.
- id str
- The provider-assigned unique ID for this managed resource.
- instrumentation_key str
- 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.
- la_migration_ strdate 
- The date which the component got migrated to LA, in ISO 8601 format.
- name str
- Azure resource name
- private_link_ Sequence[Privatescoped_ resources Link Scoped Resource Response] 
- List of linked private link scope resources.
- provisioning_state str
- 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.
- tenant_id str
- Azure Tenant Id.
- type str
- Azure resource type
- etag str
- Resource etag
- appId String
- Application Insights Unique ID for your Application.
- applicationId String
- The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
- connectionString String
- Application Insights component connection string.
- creationDate String
- Creation Date for the Application Insights component, in ISO 8601 format.
- hockeyApp StringToken 
- Token used to authenticate communications with between Application Insights and HockeyApp.
- id String
- The provider-assigned unique ID for this managed resource.
- instrumentationKey String
- 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.
- laMigration StringDate 
- The date which the component got migrated to LA, in ISO 8601 format.
- name String
- Azure resource name
- privateLink List<Property Map>Scoped Resources 
- List of linked private link scope resources.
- provisioningState String
- 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.
- tenantId String
- Azure Tenant Id.
- type String
- Azure resource type
- etag String
- Resource etag
Supporting Types
ApplicationType, ApplicationTypeArgs    
- Web
- web
- Other
- other
- ApplicationType Web 
- web
- ApplicationType Other 
- other
- Web
- web
- Other
- other
- Web
- web
- Other
- other
- WEB
- web
- OTHER
- other
- "web"
- web
- "other"
- other
FlowType, FlowTypeArgs    
- Bluefield
- Bluefield
- FlowType Bluefield 
- Bluefield
- Bluefield
- Bluefield
- Bluefield
- Bluefield
- BLUEFIELD
- Bluefield
- "Bluefield"
- Bluefield
IngestionMode, IngestionModeArgs    
- ApplicationInsights 
- ApplicationInsights
- ApplicationInsights With Diagnostic Settings 
- ApplicationInsightsWithDiagnosticSettings
- LogAnalytics 
- LogAnalytics
- IngestionMode Application Insights 
- ApplicationInsights
- IngestionMode Application Insights With Diagnostic Settings 
- ApplicationInsightsWithDiagnosticSettings
- IngestionMode Log Analytics 
- LogAnalytics
- ApplicationInsights 
- ApplicationInsights
- ApplicationInsights With Diagnostic Settings 
- ApplicationInsightsWithDiagnosticSettings
- LogAnalytics 
- LogAnalytics
- ApplicationInsights 
- ApplicationInsights
- ApplicationInsights With Diagnostic Settings 
- ApplicationInsightsWithDiagnosticSettings
- LogAnalytics 
- LogAnalytics
- APPLICATION_INSIGHTS
- ApplicationInsights
- APPLICATION_INSIGHTS_WITH_DIAGNOSTIC_SETTINGS
- ApplicationInsightsWithDiagnosticSettings
- LOG_ANALYTICS
- LogAnalytics
- "ApplicationInsights" 
- ApplicationInsights
- "ApplicationInsights With Diagnostic Settings" 
- ApplicationInsightsWithDiagnosticSettings
- "LogAnalytics" 
- LogAnalytics
PrivateLinkScopedResourceResponse, PrivateLinkScopedResourceResponseArgs          
- ResourceId string
- The resourceId of the Azure Monitor Private Link Scope Scoped Resource through which this DCE is associated with a Azure Monitor Private Link Scope.
- ScopeId string
- The immutableId of the Azure Monitor Private Link Scope Resource to which the association is.
- ResourceId string
- The resourceId of the Azure Monitor Private Link Scope Scoped Resource through which this DCE is associated with a Azure Monitor Private Link Scope.
- ScopeId string
- The immutableId of the Azure Monitor Private Link Scope Resource to which the association is.
- resourceId String
- The resourceId of the Azure Monitor Private Link Scope Scoped Resource through which this DCE is associated with a Azure Monitor Private Link Scope.
- scopeId String
- The immutableId of the Azure Monitor Private Link Scope Resource to which the association is.
- resourceId string
- The resourceId of the Azure Monitor Private Link Scope Scoped Resource through which this DCE is associated with a Azure Monitor Private Link Scope.
- scopeId string
- The immutableId of the Azure Monitor Private Link Scope Resource to which the association is.
- resource_id str
- The resourceId of the Azure Monitor Private Link Scope Scoped Resource through which this DCE is associated with a Azure Monitor Private Link Scope.
- scope_id str
- The immutableId of the Azure Monitor Private Link Scope Resource to which the association is.
- resourceId String
- The resourceId of the Azure Monitor Private Link Scope Scoped Resource through which this DCE is associated with a Azure Monitor Private Link Scope.
- scopeId String
- The immutableId of the Azure Monitor Private Link Scope Resource to which the association is.
PublicNetworkAccessType, PublicNetworkAccessTypeArgs        
- Enabled
- EnabledEnables connectivity to Application Insights through public DNS.
- Disabled
- DisabledDisables public connectivity to Application Insights through public DNS.
- PublicNetwork Access Type Enabled 
- EnabledEnables connectivity to Application Insights through public DNS.
- PublicNetwork Access Type Disabled 
- DisabledDisables public connectivity to Application Insights through public DNS.
- Enabled
- EnabledEnables connectivity to Application Insights through public DNS.
- Disabled
- DisabledDisables public connectivity to Application Insights through public DNS.
- Enabled
- EnabledEnables connectivity to Application Insights through public DNS.
- Disabled
- DisabledDisables public connectivity to Application Insights through public DNS.
- ENABLED
- EnabledEnables connectivity to Application Insights through public DNS.
- DISABLED
- DisabledDisables public connectivity to Application Insights through public DNS.
- "Enabled"
- EnabledEnables connectivity to Application Insights through public DNS.
- "Disabled"
- DisabledDisables public connectivity to Application Insights through public DNS.
RequestSource, RequestSourceArgs    
- Rest
- rest
- RequestSource Rest 
- rest
- Rest
- rest
- Rest
- rest
- REST
- rest
- "rest"
- rest
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:Component my-component /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0