Skip to content

Think-Cube/terraform-azure-application-insights

Repository files navigation

Requirements

Name Version
terraform >= 1.6.4
azurerm 4.0.1

Providers

Name Version
azurerm 4.0.1

Resources

Name Type
azurerm_application_insights.main resource
azurerm_log_analytics_workspace.main resource
azurerm_client_config.current data source
azurerm_resource_group.main data source

Inputs

Name Description Type Default Required
application_insights_name Specifies the name of the Application Insights component. Changing this forces a new resource to be created. string n/a yes
application_insights_type Specifies the type of Application Insights to create. Valid values are ios for iOS, java for Java web, MobileCenter for App Center, nodejs for Node.js, and other for General. string "web" no
default_tags A mapping of tags to assign to the resource. map(any)
{
"ManagedByTerraform": "True"
}
no
environment Variable that defines the name of the environment. string "dev" no
log_analytics_workspace_name Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created string n/a yes
log_analytics_workspace_retention_in_days The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. number "30" no
log_analytics_workspace_sku Specifies the SKU of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, CapacityReservation, and PerGB2018 (new SKU as of 2018-04-03). Defaults to PerGB2018. string "PerGB2018" no
region Region in which resources are deployed. string "weu" no
resource_group_location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. string "West Europe" no
resource_group_name TThe name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created. string n/a yes

Outputs

Name Description
azurerm_application_insights_app_id The App ID associated with this Application Insights component.
azurerm_application_insights_connection_string The Connection String for this Application Insights component.
azurerm_application_insights_id The ID of the Application Insights component.
azurerm_application_insights_instrumentation_key The Instrumentation Key for this Application Insights component.
azurerm_log_analytics_workspace_id The Log Analytics Workspace ID.
azurerm_log_analytics_workspace_primary_shared_key The Primary shared key for the Log Analytics Workspace.
azurerm_log_analytics_workspace_secondary_shared_key The Secondary shared key for the Log Analytics Workspace.