File tree Expand file tree Collapse file tree 19 files changed +188
-16
lines changed Expand file tree Collapse file tree 19 files changed +188
-16
lines changed Original file line number Diff line number Diff line change 8585 id : checkout_repository
8686 uses : actions/checkout@v4
8787
88+ # Azure login
89+ - name : Azure login
90+ id : azure_login
91+ uses : azure/login@v2
92+ with :
93+ client-id : ${{ secrets.CLIENT_ID }}
94+ tenant-id : ${{ inputs.tenant_id }}
95+ subscription-id : ${{ inputs.subscription_id }}
96+
8897 # Terraform Init
8998 - name : Terraform Init
9099 working-directory : ${{ inputs.working_directory }}
Original file line number Diff line number Diff line change @@ -229,6 +229,15 @@ jobs:
229229 id : checkout_repository
230230 uses : actions/checkout@v4
231231
232+ # Azure login
233+ - name : Azure login
234+ id : azure_login
235+ uses : azure/login@v2
236+ with :
237+ client-id : ${{ secrets.CLIENT_ID }}
238+ tenant-id : ${{ inputs.tenant_id }}
239+ subscription-id : ${{ inputs.subscription_id }}
240+
232241 # Terraform Init
233242 - name : Terraform Init
234243 working-directory : ${{ inputs.working_directory }}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module "azure_open_ai" {
77
88 location = var. location_openai
99 location_private_endpoint = var. location
10- resource_group_name = azurerm_resource_group. resource_group . name
10+ resource_group_name = azurerm_resource_group. resource_group_consumption . name
1111 tags = var. tags
1212 cognitive_account_name = " ${ local . prefix } -aoai001"
1313 cognitive_account_kind = " OpenAI"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module "application_insights" {
55 }
66
77 location = var. location
8- resource_group_name = azurerm_resource_group. resource_group . name
8+ resource_group_name = azurerm_resource_group. resource_group_consumption . name
99 tags = var. tags
1010 application_insights_name = " ${ local . prefix } -appi001"
1111 application_insights_application_type = " web"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module "app_service_plan" {
55 }
66
77 location = var. location
8- resource_group_name = azurerm_resource_group. resource_group . name
8+ resource_group_name = azurerm_resource_group. resource_group_consumption . name
99 tags = var. tags
1010 service_plan_name = " ${ local . prefix } -asp001"
1111 service_plan_maximum_elastic_worker_count = null
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module "bot_service" {
66 }
77
88 location = var. location
9- resource_group_name = azurerm_resource_group. resource_group . name
9+ resource_group_name = azurerm_resource_group. resource_group_consumption . name
1010 tags = var. tags
1111 bot_service_name = " ${ local . prefix } -bot001"
1212 bot_service_location = " global"
@@ -38,7 +38,7 @@ resource "azurerm_bot_connection" "bot_connection_aadv2_oauth" {
3838 name = local. bot_connection_aadv2_oauth_name
3939 bot_name = module. bot_service . bot_service_name
4040 location = " global"
41- resource_group_name = azurerm_resource_group. resource_group . name
41+ resource_group_name = azurerm_resource_group. resource_group_consumption . name
4242
4343 client_id = var. bot_oauth_client_id
4444 client_secret = var. bot_oauth_client_secret
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module "cosmosdb_account" {
66 }
77
88 location = var. location
9- resource_group_name = azurerm_resource_group. resource_group . name
9+ resource_group_name = azurerm_resource_group. resource_group_consumption . name
1010 tags = var. tags
1111 cosmosdb_account_name = " ${ local . prefix } -cosmos001"
1212 cosmosdb_account_access_key_metadata_writes_enabled = true
@@ -58,7 +58,7 @@ module "cosmosdb_account" {
5858resource "azurerm_cosmosdb_sql_database" "cosmosdb_sql_database" {
5959 name = " BotDb"
6060 account_name = module. cosmosdb_account . cosmosdb_account_name
61- resource_group_name = azurerm_resource_group. resource_group . name
61+ resource_group_name = azurerm_resource_group. resource_group_consumption . name
6262
6363 autoscale_settings {
6464 max_throughput = 1000
Original file line number Diff line number Diff line change 1+ module "data_factory" {
2+ source = " github.com/PerfectThymeTech/terraform-azurerm-modules//modules/datafactory?ref=main"
3+ providers = {
4+ azurerm = azurerm
5+ azapi = azapi
6+ time = time
7+ }
8+
9+ location = var. location
10+ resource_group_name = azurerm_resource_group. resource_group_ingestion . name
11+ tags = var. tags
12+ data_factory_name = " ${ local . prefix } -adf001"
13+ data_factory_purview_id = null
14+ data_factory_azure_devops_repo = {}
15+ data_factory_github_repo = {}
16+ data_factory_global_parameters = {}
17+ data_factory_published_content = {}
18+ data_factory_published_content_template_variables = {}
19+ data_factory_triggers_start = []
20+ data_factory_pipelines_run = []
21+ data_factory_managed_private_endpoints = {
22+ " storage-blob" = {
23+ subresource_name = " blob"
24+ target_resource_id = module.storage_account.storage_account_id
25+ }
26+ " keyvault-vault" = {
27+ subresource_name = " vault"
28+ target_resource_id = module.key_vault_ingestion.key_vault_id
29+ }
30+ }
31+ diagnostics_configurations = local. diagnostics_configurations
32+ subnet_id = azapi_resource. subnet_private_endpoints . id
33+ connectivity_delay_in_seconds = var. connectivity_delay_in_seconds
34+ private_dns_zone_id_data_factory = var. private_dns_zone_id_data_factory
35+ customer_managed_key = local. customer_managed_key
36+ }
Original file line number Diff line number Diff line change 1- module "key_vault " {
1+ module "key_vault_consumption " {
22 source = " github.com/PerfectThymeTech/terraform-azurerm-modules//modules/keyvault?ref=main"
33 providers = {
44 azurerm = azurerm
55 time = time
66 }
77
88 location = var. location
9- resource_group_name = azurerm_resource_group. resource_group . name
9+ resource_group_name = azurerm_resource_group. resource_group_consumption . name
1010 tags = var. tags
1111 key_vault_name = " ${ local . prefix } -kv001"
1212 key_vault_sku_name = " standard"
@@ -16,3 +16,22 @@ module "key_vault" {
1616 connectivity_delay_in_seconds = var. connectivity_delay_in_seconds
1717 private_dns_zone_id_vault = var. private_dns_zone_id_vault
1818}
19+
20+ module "key_vault_ingestion" {
21+ source = " github.com/PerfectThymeTech/terraform-azurerm-modules//modules/keyvault?ref=main"
22+ providers = {
23+ azurerm = azurerm
24+ time = time
25+ }
26+
27+ location = var. location
28+ resource_group_name = azurerm_resource_group. resource_group_ingestion . name
29+ tags = var. tags
30+ key_vault_name = " ${ local . prefix } -ngst-kv001"
31+ key_vault_sku_name = " standard"
32+ key_vault_soft_delete_retention_days = 7
33+ diagnostics_configurations = local. diagnostics_configurations
34+ subnet_id = azapi_resource. subnet_private_endpoints . id
35+ connectivity_delay_in_seconds = var. connectivity_delay_in_seconds
36+ private_dns_zone_id_vault = var. private_dns_zone_id_vault
37+ }
Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ locals {
6363 name = split (" /" , var. log_analytics_workspace_id )[8 ]
6464 }
6565
66+ # Storage locals
67+ storage_account_container_raw_name = " raw"
68+ storage_account_container_curated_name = " curated"
69+
6670 # Logging locals
6771 diagnostics_configurations = [
6872 {
You can’t perform that action at this time.
0 commit comments