From a6545710f551b81edc63f4c08a659609441d7f93 Mon Sep 17 00:00:00 2001 From: Stef Pierre Date: Fri, 14 Jun 2024 23:33:10 -0400 Subject: [PATCH 1/2] Add support for skip_provider_registration --- main.tf | 13 +++++++------ variables.tf | 6 ++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/main.tf b/main.tf index 28ee7a23..5bc0c6cd 100644 --- a/main.tf +++ b/main.tf @@ -8,12 +8,13 @@ # provider "azurerm" { - subscription_id = var.subscription_id - client_id = var.client_id - client_secret = var.client_secret - tenant_id = var.tenant_id - partner_id = var.partner_id - use_msi = var.use_msi + subscription_id = var.subscription_id + client_id = var.client_id + client_secret = var.client_secret + tenant_id = var.tenant_id + partner_id = var.partner_id + use_msi = var.use_msi + skip_provider_registration = var.skip_provider_registration features {} } diff --git a/variables.tf b/variables.tf index 445100fb..23c6996d 100644 --- a/variables.tf +++ b/variables.tf @@ -30,6 +30,12 @@ variable "use_msi" { default = false } +variable "skip_provider_registration" { + description = "Set Azure Provider to skip automatic registeration all of the Resource Providers which it supports on launch" + type = bool + default = false +} + variable "iac_tooling" { description = "Value used to identify the tooling used to generate this providers infrastructure." type = string From 75371b365d2582bead73efd35fd1024f21de71a0 Mon Sep 17 00:00:00 2001 From: Stef Pierre Date: Sat, 15 Jun 2024 01:43:39 -0400 Subject: [PATCH 2/2] Fix typo in skip_provider_registration description --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 23c6996d..99e9fcf6 100644 --- a/variables.tf +++ b/variables.tf @@ -31,7 +31,7 @@ variable "use_msi" { } variable "skip_provider_registration" { - description = "Set Azure Provider to skip automatic registeration all of the Resource Providers which it supports on launch" + description = "Set Azure Provider to skip automatic registration all of the Resource Providers which it supports on launch" type = bool default = false }