appinsights

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.

class pulumi_azure.appinsights.AnalyticsItem(resource_name, opts=None, application_insights_id=None, content=None, function_alias=None, name=None, scope=None, type=None, __props__=None, __name__=None, __opts__=None)

Manages an Application Insights Analytics Item component.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • application_insights_id (pulumi.Input[str]) – The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created.

  • content (pulumi.Input[str]) – The content for the Analytics Item, for example the query text if type is query.

  • function_alias (pulumi.Input[str]) – The alias to use for the function. Required when type is function.

  • name (pulumi.Input[str]) – Specifies the name of the Application Insights Analytics Item. Changing this forces a new resource to be created.

  • scope (pulumi.Input[str]) – The scope for the Analytics Item. Can be shared or user. Changing this forces a new resource to be created. Must be shared for functions.

  • type (pulumi.Input[str]) – The type of Analytics Item to create. Can be one of query, function, folder, recent. Changing this forces a new resource to be created.

application_insights_id = None

The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created.

content = None

The content for the Analytics Item, for example the query text if type is query.

function_alias = None

The alias to use for the function. Required when type is function.

name = None

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

scope = None

The scope for the Analytics Item. Can be shared or user. Changing this forces a new resource to be created. Must be shared for functions.

time_created = None

A string containing the time the Analytics Item was created.

time_modified = None

A string containing the time the Analytics Item was last modified.

type = None

The type of Analytics Item to create. Can be one of query, function, folder, recent. Changing this forces a new resource to be created.

version = None

A string indicating the version of the query format

static get(resource_name, id, opts=None, application_insights_id=None, content=None, function_alias=None, name=None, scope=None, time_created=None, time_modified=None, type=None, version=None)

Get an existing AnalyticsItem resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • application_insights_id (pulumi.Input[str]) – The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created.

  • content (pulumi.Input[str]) – The content for the Analytics Item, for example the query text if type is query.

  • function_alias (pulumi.Input[str]) – The alias to use for the function. Required when type is function.

  • name (pulumi.Input[str]) – Specifies the name of the Application Insights Analytics Item. Changing this forces a new resource to be created.

  • scope (pulumi.Input[str]) – The scope for the Analytics Item. Can be shared or user. Changing this forces a new resource to be created. Must be shared for functions.

  • time_created (pulumi.Input[str]) – A string containing the time the Analytics Item was created.

  • time_modified (pulumi.Input[str]) – A string containing the time the Analytics Item was last modified.

  • type (pulumi.Input[str]) – The type of Analytics Item to create. Can be one of query, function, folder, recent. Changing this forces a new resource to be created.

  • version (pulumi.Input[str]) – A string indicating the version of the query format

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.appinsights.ApiKey(resource_name, opts=None, application_insights_id=None, name=None, read_permissions=None, write_permissions=None, __props__=None, __name__=None, __opts__=None)

Manages an Application Insights API key.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • application_insights_id (pulumi.Input[str]) – The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the Application Insights API key. Changing this forces a new resource to be created.

  • read_permissions (pulumi.Input[list]) – Specifies the list of read permissions granted to the API key. Valid values are agentconfig, aggregate, api, draft, extendqueries, search. Please note these values are case sensitive. Changing this forces a new resource to be created.

  • write_permissions (pulumi.Input[list]) – Specifies the list of write permissions granted to the API key. Valid values are annotations. Please note these values are case sensitive. Changing this forces a new resource to be created.

api_key = None

The API Key secret (Sensitive).

application_insights_id = None

The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created.

name = None

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

read_permissions = None

Specifies the list of read permissions granted to the API key. Valid values are agentconfig, aggregate, api, draft, extendqueries, search. Please note these values are case sensitive. Changing this forces a new resource to be created.

write_permissions = None

Specifies the list of write permissions granted to the API key. Valid values are annotations. Please note these values are case sensitive. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, api_key=None, application_insights_id=None, name=None, read_permissions=None, write_permissions=None)

Get an existing ApiKey resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • api_key (pulumi.Input[str]) – The API Key secret (Sensitive).

  • application_insights_id (pulumi.Input[str]) – The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the Application Insights API key. Changing this forces a new resource to be created.

  • read_permissions (pulumi.Input[list]) – Specifies the list of read permissions granted to the API key. Valid values are agentconfig, aggregate, api, draft, extendqueries, search. Please note these values are case sensitive. Changing this forces a new resource to be created.

  • write_permissions (pulumi.Input[list]) – Specifies the list of write permissions granted to the API key. Valid values are annotations. Please note these values are case sensitive. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.appinsights.AwaitableGetInsightsResult(app_id=None, application_type=None, instrumentation_key=None, location=None, name=None, resource_group_name=None, tags=None, id=None)
class pulumi_azure.appinsights.GetInsightsResult(app_id=None, application_type=None, instrumentation_key=None, location=None, name=None, resource_group_name=None, tags=None, id=None)

A collection of values returned by getInsights.

app_id = None

The App ID associated with this Application Insights component.

application_type = None

The type of the component.

instrumentation_key = None

The instrumentation key of the Application Insights component.

location = None

The Azure location where the component exists.

tags = None

Tags applied to the component.

id = None

id is the provider-assigned unique ID for this managed resource.

class pulumi_azure.appinsights.Insights(resource_name, opts=None, application_type=None, location=None, name=None, resource_group_name=None, tags=None, __props__=None, __name__=None, __opts__=None)

Manages an Application Insights component.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • application_type (pulumi.Input[str]) – 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.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the Application Insights component. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the Application Insights component.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

app_id = None

The App ID associated with this Application Insights component.

application_type = None

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.

instrumentation_key = None

The Instrumentation Key for this Application Insights component.

location = None

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

name = None

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

resource_group_name = None

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

tags = None

A mapping of tags to assign to the resource.

static get(resource_name, id, opts=None, app_id=None, application_type=None, instrumentation_key=None, location=None, name=None, resource_group_name=None, tags=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • app_id (pulumi.Input[str]) – The App ID associated with this Application Insights component.

  • application_type (pulumi.Input[str]) – 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.

  • instrumentation_key (pulumi.Input[str]) – The Instrumentation Key for this Application Insights component.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the Application Insights component. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the Application Insights component.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.appinsights.WebTest(resource_name, opts=None, application_insights_id=None, configuration=None, description=None, enabled=None, frequency=None, geo_locations=None, kind=None, location=None, name=None, resource_group_name=None, retry_enabled=None, tags=None, timeout=None, __props__=None, __name__=None, __opts__=None)

Manages an Application Insights WebTest.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • application_insights_id (pulumi.Input[str]) – The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.

  • configuration (pulumi.Input[str]) – An XML configuration specification for a WebTest.

  • description (pulumi.Input[str]) – Purpose/user defined descriptive test for this WebTest.

  • enabled (pulumi.Input[bool]) – Is the test actively being monitored.

  • frequency (pulumi.Input[float]) – Interval in seconds between test runs for this WebTest. Default is 300.

  • geo_locations (pulumi.Input[list]) – A list of where to physically run the tests from to give global coverage for accessibility of your application.

  • location (pulumi.Input[str]) – The location of the resource group.

  • name (pulumi.Input[str]) – Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.

  • retry_enabled (pulumi.Input[bool]) – Allow for retries should this WebTest fail.

  • tags (pulumi.Input[dict]) – Resource tags.

  • timeout (pulumi.Input[float]) – Seconds until this WebTest will timeout and fail. Default is 30.

application_insights_id = None

The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.

configuration = None

An XML configuration specification for a WebTest.

description = None

Purpose/user defined descriptive test for this WebTest.

enabled = None

Is the test actively being monitored.

frequency = None

Interval in seconds between test runs for this WebTest. Default is 300.

geo_locations = None

A list of where to physically run the tests from to give global coverage for accessibility of your application.

location = None

The location of the resource group.

name = None

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

retry_enabled = None

Allow for retries should this WebTest fail.

tags = None

Resource tags.

timeout = None

Seconds until this WebTest will timeout and fail. Default is 30.

static get(resource_name, id, opts=None, application_insights_id=None, configuration=None, description=None, enabled=None, frequency=None, geo_locations=None, kind=None, location=None, name=None, resource_group_name=None, retry_enabled=None, synthetic_monitor_id=None, tags=None, timeout=None)

Get an existing WebTest resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • application_insights_id (pulumi.Input[str]) – The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.

  • configuration (pulumi.Input[str]) – An XML configuration specification for a WebTest.

  • description (pulumi.Input[str]) – Purpose/user defined descriptive test for this WebTest.

  • enabled (pulumi.Input[bool]) – Is the test actively being monitored.

  • frequency (pulumi.Input[float]) – Interval in seconds between test runs for this WebTest. Default is 300.

  • geo_locations (pulumi.Input[list]) – A list of where to physically run the tests from to give global coverage for accessibility of your application.

  • location (pulumi.Input[str]) – The location of the resource group.

  • name (pulumi.Input[str]) – Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.

  • retry_enabled (pulumi.Input[bool]) – Allow for retries should this WebTest fail.

  • tags (pulumi.Input[dict]) – Resource tags.

  • timeout (pulumi.Input[float]) – Seconds until this WebTest will timeout and fail. Default is 30.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_azure.appinsights.get_insights(name=None, resource_group_name=None, opts=None)

Use this data source to access information about an existing Application Insights component.

Parameters
  • name (str) – Specifies the name of the Application Insights component.

  • resource_group_name (str) – Specifies the name of the resource group the Application Insights component is located in.