From 30f1682c74bdd815bcdedb41c7ad5f1d37c7a485 Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Sat, 25 Mar 2023 16:10:16 -0700 Subject: [PATCH] Fixes --- quickstart/101-ddos-protection-plan/main.tf | 4 ++-- quickstart/101-ddos-protection-plan/readme.md | 2 +- quickstart/101-ddos-protection-plan/variables.tf | 12 ------------ 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/quickstart/101-ddos-protection-plan/main.tf b/quickstart/101-ddos-protection-plan/main.tf index facff4e7..84bf81db 100644 --- a/quickstart/101-ddos-protection-plan/main.tf +++ b/quickstart/101-ddos-protection-plan/main.tf @@ -7,7 +7,7 @@ resource "azurerm_resource_group" "rg" { location = var.resource_group_location } -resource "random_string" "ddos_protection_plan_name" { +resource "random_string" "ddos_protection_plan" { length = 13 upper = false numeric = false @@ -15,7 +15,7 @@ resource "random_string" "ddos_protection_plan_name" { } resource "azurerm_network_ddos_protection_plan" "ddos" { - name = random_string.ddos_protection_plan_name.result + name = random_string.ddos_protection_plan.result resource_group_name = azurerm_resource_group.rg.name location = azurerm_resource_group.rg.location } diff --git a/quickstart/101-ddos-protection-plan/readme.md b/quickstart/101-ddos-protection-plan/readme.md index 5080bef8..d9e6d647 100644 --- a/quickstart/101-ddos-protection-plan/readme.md +++ b/quickstart/101-ddos-protection-plan/readme.md @@ -24,4 +24,4 @@ This template creates an Azure DDoS protection plan and a virtual network. ## Example -To see how to run this example, see [Create an Azure DDoS protection plan and virtual network using Terraform](https://docs.microsoft.com/azure/developer/terraform/create-ddos-protection-plan-and-virtual-network). \ No newline at end of file +To see how to run this example, see [Create and configure Azure DDoS Network Protection using Terraform](https://learn.microsoft.com/azure/ddos-protection/manage-ddos-protection-terraform). diff --git a/quickstart/101-ddos-protection-plan/variables.tf b/quickstart/101-ddos-protection-plan/variables.tf index 5d1e5855..bdb1e115 100644 --- a/quickstart/101-ddos-protection-plan/variables.tf +++ b/quickstart/101-ddos-protection-plan/variables.tf @@ -10,18 +10,6 @@ variable "resource_group_name_prefix" { default = "rg" } -variable "ddos_protection_plan_name" { - type = string - description = "Specify a DDoS protection plan name." - default = null -} - -variable "virtual_network_name" { - type = string - description = "Specify a DDoS virtual network name." - default = null -} - variable "vnet_address_prefix" { type = string description = "Specify the virtual network address prefix"