Skip to content

Instantly share code, notes, and snippets.

@riponbanik
Last active March 22, 2024 00:55
Show Gist options
  • Save riponbanik/d02069731c758dc7b5a3e71098bdbaf6 to your computer and use it in GitHub Desktop.
Save riponbanik/d02069731c758dc7b5a3e71098bdbaf6 to your computer and use it in GitHub Desktop.
provider "azurerm" {
features {}
}
module "lz_vending" {
source = "Azure/lz-vending/azurerm"
version = "4.0.2" # change this to your desired version, https://www.terraform.io/language/expressions/version-constraints
# Set the default location for resources
location = "${var.location}"
# subscription variables
subscription_alias_enabled = true
subscription_billing_scope = "/providers/Microsoft.Billing/billingAccounts/${var.billing_account_name}/billingProfiles/${var.billing_profile_name}/invoiceSections/${var.invoice_section_name}"
subscription_display_name = "management"
subscription_alias_name = "management"
subscription_workload = "${var.workload_type}"
# Network Watcher
network_watcher_resource_group_enabled = true
# management group association variables
subscription_management_group_association_enabled = true
subscription_management_group_id = "${var.mg_id}"
# virtual network variables
virtual_network_enabled = false
# resource group variables
resource_group_creation_enabled = true
resource_groups = {
rg1 = {
name = "rg-default"
location = "${var.location}"
}
}
# role assignments
role_assignment_enabled = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment