### Create Azure App Services with Terraform Source: https://context7.com/adilsondcardoso/azure-modules/llms.txt Provisions multiple Azure App Services (Web Apps/APIs) dynamically using a list input with Terraform. It includes automatic Application Insights integration and environment-specific configurations. Requires a service plan and instrumentation key. ```hcl # azure-webapp/main.tf module usage module "web_apps" { source = "./azure-webapp" seguradora = "mag" tipo_recurso = "api" ambiente = "prd" sistema = "claims" tecnologia = "" location = "Brazil South" resourcegroup_name = "MAG_RG_CLAIMS_PRD" servicePlanId = "/subscriptions/abc123/resourceGroups/MAG_RG_CLAIMS_PRD/providers/Microsoft.Web/serverfarms/claims-service-plan" instrumentation_key = "abc123def-456g-789h-012i-345jkl678mno" versao = "1.0" centrocusto = "CC12345" departamento = "IT Operations" listApi = { "0" = "policy" "1" = "billing" "2" = "customer" } } # Output example: # Created App Services: # - magpolicyapiprd (with AppInsights integration) # - magbillingapiprd (with AppInsights integration) # - magcustomerapiprd (with AppInsights integration) # # Each with settings: # - .NET Framework v4.0 # - Always On: enabled # - Time Zone: E. South America Standard Time # - HTTPS logging retention: 1 day ``` -------------------------------- ### Provision Azure SQL Databases with Terraform Source: https://context7.com/adilsondcardoso/azure-modules/llms.txt Deploys multiple Azure SQL Databases on an existing SQL Server using Terraform. It allows configuration of collation and applies standardized organizational tags. Requires an existing SQL Server instance. ```hcl # azure-sqldatabase/main.tf module usage module "sql_databases" { source = "./azure-sqldatabase" resourcegroup_name = "MAG_RG_CLAIMS_PRD" location = "Brazil South" seguradora = "mag" sistema = "claims" ambiente = "prd" versao = "1.0" centrocusto = "CC12345" departamento = "IT Operations" sqlServer_name = "mag-claims-sqlserver-prd" sql_collation = "SQL_Latin1_General_CP1_CI_AS" tipo_recurso = "sqldb" sqlDbName = { "0" = "PolicyDatabase" "1" = "BillingDatabase" "2" = "CustomerDatabase" } } # Output example: # Created Databases on mag-claims-sqlserver-prd: # - policydatabase (SQL_Latin1_General_CP1_CI_AS collation) # - billingdatabase (SQL_Latin1_General_CP1_CI_AS collation) # - customerdatabase (SQL_Latin1_General_CP1_CI_AS collation) # All tagged with environment, cost center, and department info ``` -------------------------------- ### Deploy Azure Resource Group with Terraform Source: https://context7.com/adilsondcardoso/azure-modules/llms.txt This module deploys an Azure Resource Group. It utilizes a variable block for common configuration parameters like environment, location, and cost center. The output is the name of the created resource group. ```Terraform variable "common_config" { default = { seguradora = "mag" sistema = "claims" ambiente = "prd" location = "Brazil South" versao = "1.0" centrocusto = "CC12345" departamento = "IT Operations" } } # Step 1: Create Resource Group module "rg" { source = "./azure-resourcegroup" seguradora = var.common_config.seguradora tipo_recurso = "rg" sistema = var.common_config.sistema ambiente = var.common_config.ambiente location = var.common_config.location versao = var.common_config.versao centrocusto = var.common_config.centrocusto departamento = var.common_config.departamento } output "resource_group" { value = module.rg.rg_name } ``` -------------------------------- ### Deploy Azure SQL Databases with Terraform Source: https://context7.com/adilsondcardoso/azure-modules/llms.txt This module deploys Azure SQL Databases, requiring an existing resource group and SQL Server name. It uses common configuration variables and the resource group's location. The module supports deploying multiple named SQL databases. ```Terraform # Step 4: Create SQL Databases (requires existing SQL Server) module "databases" { source = "./azure-sqldatabase" tipo_recurso = "sqldb" resourcegroup_name = module.rg.rg_name sqlServer_name = azurerm_sql_server.server.name seguradora = var.common_config.seguradora sistema = var.common_config.sistema ambiente = var.common_config.ambiente location = module.rg.rg_location versao = var.common_config.versao centrocusto = var.common_config.centrocusto departamento = var.common_config.departamento sqlDbName = { "0" = "PolicyDB" "1" = "BillingDB" } } output "databases" { value = module.databases.db_name } ``` -------------------------------- ### Deploy Azure Application Insights with Terraform Source: https://context7.com/adilsondcardoso/azure-modules/llms.txt This module deploys Azure Application Insights, integrating with an existing resource group. It uses common configuration variables and the resource group's location. The output includes the instrumentation key for Application Insights. ```Terraform # Step 2: Create Application Insights module "appinsights" { source = "./azure-appinsights" tipo_recurso = "ai" resourcegroup_name = module.rg.rg_name seguradora = var.common_config.seguradora sistema = var.common_config.sistema ambiente = var.common_config.ambiente location = module.rg.rg_location versao = var.common_config.versao centrocusto = var.common_config.centrocusto departamento = var.common_config.departamento } output "app_insights_key" { value = module.appinsights.ai_instrumentation_key sensitive = true } ``` -------------------------------- ### Deploy Azure App Services with Terraform Source: https://context7.com/adilsondcardoso/azure-modules/llms.txt This module deploys Azure App Services, requiring an existing resource group and App Service Plan ID. It integrates with Application Insights using its instrumentation key. The module supports deploying multiple named web apps. ```Terraform # Step 3: Create App Services (requires existing App Service Plan) module "apps" { source = "./azure-webapp" tipo_recurso = "api" resourcegroup_name = module.rg.rg_name servicePlanId = azurerm_app_service_plan.plan.id instrumentation_key = module.appinsights.ai_instrumentation_key seguradora = var.common_config.seguradora sistema = var.common_config.sistema ambiente = var.common_config.ambiente location = module.rg.rg_location versao = var.common_config.versao centrocusto = var.common_config.centrocusto departamento = var.common_config.departamento listApi = { "0" = "policy" "1" = "billing" } } output "web_apps" { value = module.apps.appservice } ``` -------------------------------- ### Provision Azure Application Insights with Terraform Source: https://context7.com/adilsondcardoso/azure-modules/llms.txt Deploys Azure Application Insights for monitoring applications using Terraform. It integrates with web applications for performance tracking and diagnostics. Requires a resource group to be pre-existing. ```hcl # azure-appinsights/main.tf module usage module "app_insights" { source = "./azure-appinsights" seguradora = "mag" sistema = "claims" tipo_recurso = "ai" ambiente = "prd" tecnologia = "" resourcegroup_name = "MAG_RG_CLAIMS_PRD" location = "Brazil South" versao = "1.0" centrocusto = "CC12345" departamento = "IT Operations" } # Output example: # Application Insights Name: magclaimsaiprd # Application Type: Web # Instrumentation Key: abc123def-456g-789h-012i-345jkl678mno # Use the instrumentation_key in app_settings of Web Apps for telemetry ``` -------------------------------- ### Create Azure Resource Group with Terraform Source: https://context7.com/adilsondcardoso/azure-modules/llms.txt Provisions an Azure Resource Group using Terraform. It applies standardized naming conventions and organizational tags for cost tracking and environment classification. Requires Azure provider configuration. ```hcl # azure-resourcegroup/main.tf module usage module "resource_group" { source = "./azure-resourcegroup" seguradora = "mag" tipo_recurso = "rg" sistema = "claims" ambiente = "prd" tecnologia = "" location = "Brazil South" versao = "1.0" centrocusto = "CC12345" departamento = "IT Operations" } # Output example: # Resource Group Name: MAG_RG_CLAIMS_PRD # Location: Brazil South # Tags: {environment: prd, CC: CC12345, departamento: IT Operations, sistema: claims, version: 1.0} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.