Azure / terraform-azurerm-avm-ptn-alz-management

AVM Terraform Pattern Module for ALZ Management.
https://registry.terraform.io/modules/Azure/avm-ptn-alz-management/azurerm/latest
MIT License
4 stars 3 forks source link

Can't disable telemetry #33

Closed gevraud closed 4 months ago

gevraud commented 4 months ago

Is there an existing issue for this?

Greenfield/Brownfield provisioning

greenfield

Terraform Version

1.8.2

Module Version

0.1

AzureRM Provider Version

3.101

Affected Resource(s)/Data Source(s)

azurerm_resource_group_template_deployment

Terraform Configuration Files

data "azurerm_client_config" "current" {}

module "alz_management_resources" {
  source  = "Azure/alz-management/azurerm"
  version = "~> 0.1"

  automation_account_name         = module.naming.automation_account.name
  location                        = var.location
  log_analytics_workspace_name    = var.log_analytics_workspace_name
  resource_group_creation_enabled = true
  resource_group_name             = var.resource_group_name
  tracing_tags_enabled            = true
  enable_telemetry                = false
  tags                            = var.tags
}

### tfvars variables values

```hcl
location = westeurope"
log_analytics_workspace_name = "mylaw"
resource_group_name = "myrg"
tags = {
  env = "dev"
}

Debug Output/Panic Output

terraform plan -var-file=variables.tfvars -out=tfplan
╷
│ Error: Unsupported argument
│
│   on test-mg.tf line 14, in module "alz_management_resources":
│   14:   enable_telemetry                = false
│
│ An argument named "enable_telemetry" is not expected here.

Expected Behaviour

enable_telemetry should be set to false

Actual Behaviour

module doesn't expect the argument there.

Steps to Reproduce

No response

Important Factoids

No response

References

No response

microsoft-github-policy-service[bot] commented 4 months ago

[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!

[!NOTE] This label was added as per ITA06.