Use this data source to access information about an existing Application Insights component.
data "azurerm_application_insights" "example" {
name = "production"
resource_group_name = "networking"
}
output "application_insights_instrumentation_key" {
value = data.azurerm_application_insights.example.instrumentation_key
}
name
- Specifies the name of the Application Insights component.resource_group_name
- Specifies the name of the resource group the Application Insights component is located in.id
- The ID of the Application Insights component.app_id
- The App ID associated with this Application Insights component.application_type
- The type of the component.instrumentation_key
- The instrumentation key of the Application Insights component.connection_string
- The connection string of the Application Insights component. (Sensitive)location
- The Azure location where the component exists.retention_in_days
- The retention period in days.workspace_id
- The id of the associated Log Analytics workspacetags
- Tags applied to the component.The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Application Insights component.