From 955821d9403b9aafa1c79248b231ad23f97003cd Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 2 Jul 2024 14:48:49 +0000 Subject: [PATCH 1/6] Apply terraform fmt --- .../configuration.tfvars | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars b/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars index 79f8ab921a..62c98ec3e1 100644 --- a/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars +++ b/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars @@ -27,14 +27,14 @@ cognitive_services_account = { # lz_key = "examples" key = "test-rg" } - name = "cs-test-1" - kind = "OpenAI" - sku_name = "S0" + name = "cs-test-1" + kind = "OpenAI" + sku_name = "S0" public_network_access_enabled = true identity = { type = "SystemAssigned, UserAssigned" // Can be "SystemAssigned, UserAssigned" or "SystemAssigned" or "UserAssigned" - key = "cognitive_msi" // A must with "SystemAssigned, UserAssigned" and "UserAssigned" + key = "cognitive_msi" // A must with "SystemAssigned, UserAssigned" and "UserAssigned" } tags = { From 79b2fdb48e53fb20a16a3349b52ecdad13f21216 Mon Sep 17 00:00:00 2001 From: kevindelmont <133667252+kevindelmont@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:29:42 +0200 Subject: [PATCH 2/6] add public_network_access_enabled for azurerm_postgresql_flexible_server (#21) add new argument public_network_access_enabled = try(var.settings.public_network_access_enabled, null) --- modules/databases/postgresql_flexible_server/server.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/databases/postgresql_flexible_server/server.tf b/modules/databases/postgresql_flexible_server/server.tf index 5a97256436..d912bdd8f8 100644 --- a/modules/databases/postgresql_flexible_server/server.tf +++ b/modules/databases/postgresql_flexible_server/server.tf @@ -17,6 +17,8 @@ resource "azurerm_postgresql_flexible_server" "postgresql" { zone = try(var.settings.zone, null) storage_mb = try(var.settings.storage_mb, null) + public_network_access_enabled = try(var.settings.public_network_access_enabled, null) + delegated_subnet_id = var.remote_objects.subnet_id private_dns_zone_id = var.remote_objects.private_dns_zone_id From 9b057facff6f7094e95c21b1ed1edbf280193715 Mon Sep 17 00:00:00 2001 From: kevindelmont <133667252+kevindelmont@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:37:59 +0200 Subject: [PATCH 3/6] =?UTF-8?q?Revert=20"add=20public=5Fnetwork=5Faccess?= =?UTF-8?q?=5Fenabled=20for=20azurerm=5Fpostgresql=5Fflexible=5Fser?= =?UTF-8?q?=E2=80=A6"=20(#25)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 79b2fdb48e53fb20a16a3349b52ecdad13f21216. --- modules/databases/postgresql_flexible_server/server.tf | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/databases/postgresql_flexible_server/server.tf b/modules/databases/postgresql_flexible_server/server.tf index d912bdd8f8..5a97256436 100644 --- a/modules/databases/postgresql_flexible_server/server.tf +++ b/modules/databases/postgresql_flexible_server/server.tf @@ -17,8 +17,6 @@ resource "azurerm_postgresql_flexible_server" "postgresql" { zone = try(var.settings.zone, null) storage_mb = try(var.settings.storage_mb, null) - public_network_access_enabled = try(var.settings.public_network_access_enabled, null) - delegated_subnet_id = var.remote_objects.subnet_id private_dns_zone_id = var.remote_objects.private_dns_zone_id From d415b4baa7437130be0c1254dec4c3dbb6f2dde6 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 13 Aug 2024 13:11:48 +0000 Subject: [PATCH 4/6] Apply terraform fmt --- .../configuration.tfvars | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars b/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars index 79f8ab921a..62c98ec3e1 100644 --- a/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars +++ b/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars @@ -27,14 +27,14 @@ cognitive_services_account = { # lz_key = "examples" key = "test-rg" } - name = "cs-test-1" - kind = "OpenAI" - sku_name = "S0" + name = "cs-test-1" + kind = "OpenAI" + sku_name = "S0" public_network_access_enabled = true identity = { type = "SystemAssigned, UserAssigned" // Can be "SystemAssigned, UserAssigned" or "SystemAssigned" or "UserAssigned" - key = "cognitive_msi" // A must with "SystemAssigned, UserAssigned" and "UserAssigned" + key = "cognitive_msi" // A must with "SystemAssigned, UserAssigned" and "UserAssigned" } tags = { From d1c6e0970166ba26792ba54315c86c5bb0b94df8 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 11 Sep 2024 12:06:22 +0000 Subject: [PATCH 5/6] Apply terraform fmt --- .../configuration.tfvars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/azuread/107-azuread-application-with-single-page-application/configuration.tfvars b/examples/azuread/107-azuread-application-with-single-page-application/configuration.tfvars index be32857be7..a8a7b91a7e 100644 --- a/examples/azuread/107-azuread-application-with-single-page-application/configuration.tfvars +++ b/examples/azuread/107-azuread-application-with-single-page-application/configuration.tfvars @@ -56,8 +56,8 @@ azuread_applications = { admin_consent_description = "Allow to administer app2." admin_consent_display_name = "Administer app2" enabled = true - type = "Admin" - value = "app2" + type = "Admin" + value = "app2" } ] } From 125e4662d1c17ee42835f23f7969277b57b8f29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20DELMONT?= Date: Fri, 15 Nov 2024 10:22:23 +0100 Subject: [PATCH 6/6] Updated storage account management policy --- .../management_policy/management_policy.tf | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/modules/storage_account/management_policy/management_policy.tf b/modules/storage_account/management_policy/management_policy.tf index 71a51d32b3..3ee6b45bcc 100644 --- a/modules/storage_account/management_policy/management_policy.tf +++ b/modules/storage_account/management_policy/management_policy.tf @@ -34,10 +34,18 @@ resource "azurerm_storage_management_policy" "mgmt_policy" { content { tier_to_cool_after_days_since_modification_greater_than = try(base_blob.value.tier_to_cool_after_days_since_modification_greater_than, null) tier_to_cool_after_days_since_last_access_time_greater_than = try(base_blob.value.tier_to_cool_after_days_since_last_access_time_greater_than, null) + tier_to_cool_after_days_since_creation_greater_than = try(base_blob.value.tier_to_cool_after_days_since_creation_greater_than, null) + auto_tier_to_hot_from_cool_enabled = try(base_blob.value.auto_tier_to_hot_from_cool_enabled, null) tier_to_archive_after_days_since_modification_greater_than = try(base_blob.value.tier_to_archive_after_days_since_modification_greater_than, null) tier_to_archive_after_days_since_last_access_time_greater_than = try(base_blob.value.tier_to_archive_after_days_since_last_access_time_greater_than, null) + tier_to_archive_after_days_since_creation_greater_than = try(base_blob.value.tier_to_archive_after_days_since_creation_greater_than, null) + tier_to_archive_after_days_since_last_tier_change_greater_than = try(base_blob.value.tier_to_archive_after_days_since_last_tier_change_greater_than, null) + tier_to_cold_after_days_since_modification_greater_than = try(base_blob.value.tier_to_cold_after_days_since_modification_greater_than, null) + tier_to_cold_after_days_since_last_access_time_greater_than = try(base_blob.value.tier_to_cold_after_days_since_last_access_time_greater_than, null) + tier_to_cold_after_days_since_creation_greater_than = try(base_blob.value.tier_to_cold_after_days_since_creation_greater_than, null) delete_after_days_since_modification_greater_than = try(base_blob.value.delete_after_days_since_modification_greater_than, null) delete_after_days_since_last_access_time_greater_than = try(base_blob.value.delete_after_days_since_last_access_time_greater_than, null) + delete_after_days_since_creation_greater_than = try(base_blob.value.delete_after_days_since_creation_greater_than, null) } } @@ -45,9 +53,11 @@ resource "azurerm_storage_management_policy" "mgmt_policy" { for_each = try(rule.value.actions.snapshot, {}) content { - change_tier_to_archive_after_days_since_creation = try(snapshot.value.change_tier_to_archive_after_days_since_creation, null) - change_tier_to_cool_after_days_since_creation = try(snapshot.value.change_tier_to_cool_after_days_since_creation, null) - delete_after_days_since_creation_greater_than = try(snapshot.value.delete_after_days_since_creation_greater_than, null) + change_tier_to_archive_after_days_since_creation = try(snapshot.value.change_tier_to_archive_after_days_since_creation, null) + tier_to_archive_after_days_since_last_tier_change_greater_than = try(snapshot.value.tier_to_archive_after_days_since_last_tier_change_greater_than, null) + change_tier_to_cool_after_days_since_creation = try(snapshot.value.change_tier_to_cool_after_days_since_creation, null) + tier_to_cold_after_days_since_creation_greater_than = try(snapshot.value.tier_to_cold_after_days_since_creation_greater_than, null) + delete_after_days_since_creation_greater_than = try(snapshot.value.delete_after_days_since_creation_greater_than, null) } } @@ -55,12 +65,14 @@ resource "azurerm_storage_management_policy" "mgmt_policy" { for_each = try(rule.value.actions.version, {}) content { - change_tier_to_archive_after_days_since_creation = try(version.value.change_tier_to_archive_after_days_since_creation, null) - change_tier_to_cool_after_days_since_creation = try(version.value.change_tier_to_cool_after_days_since_creation, null) - delete_after_days_since_creation = try(version.value.delete_after_days_since_creation, null) + change_tier_to_archive_after_days_since_creation = try(version.value.change_tier_to_archive_after_days_since_creation, null) + tier_to_archive_after_days_since_last_tier_change_greater_than = try(version.value.tier_to_archive_after_days_since_last_tier_change_greater_than, null) + change_tier_to_cool_after_days_since_creation = try(version.value.change_tier_to_cool_after_days_since_creation, null) + tier_to_cold_after_days_since_creation_greater_than = try(version.value.tier_to_cold_after_days_since_creation_greater_than, null) + delete_after_days_since_creation = try(version.value.delete_after_days_since_creation, null) } } } } } -} \ No newline at end of file +}