From ca099860ed86264de13ebd531f5bf4e0f2ae0f4b Mon Sep 17 00:00:00 2001 From: Nathan Alberti Date: Wed, 8 Apr 2026 16:19:53 +0800 Subject: [PATCH 1/2] make credentials optional set default of null for client_id and client_secret --- modules/high-availability/variables.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/high-availability/variables.tf b/modules/high-availability/variables.tf index f71bac3..8516d7f 100644 --- a/modules/high-availability/variables.tf +++ b/modules/high-availability/variables.tf @@ -12,12 +12,14 @@ variable "tenant_id" { variable "client_id" { description = "Application ID(Client ID)" type = string + default = null } variable "client_secret" { description = "A secret string that the application uses to prove its identity when requesting a token. Also can be referred to as application password." type = string sensitive = true + default = null } variable "resource_group_name" { From 31863851437c809d40919bf21cf261a93d0a61c8 Mon Sep 17 00:00:00 2001 From: Nathan Alberti Date: Wed, 8 Apr 2026 16:21:20 +0800 Subject: [PATCH 2/2] Remove client credentials from provider settings Removed client_id and client_secret from provider configurations defaulting to ChainedTokenCredential. --- modules/high-availability/versions.tf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/high-availability/versions.tf b/modules/high-availability/versions.tf index 74a2e8c..7361f4f 100644 --- a/modules/high-availability/versions.tf +++ b/modules/high-availability/versions.tf @@ -16,15 +16,11 @@ terraform { } provider "azapi" { subscription_id = var.subscription_id - client_id = var.client_id - client_secret = var.client_secret tenant_id = var.tenant_id } provider "azurerm" { subscription_id = var.subscription_id - client_id = var.client_id - client_secret = var.client_secret tenant_id = var.tenant_id features {} }