Fixes
This commit is contained in:
parent
a4ae7b817c
commit
30f1682c74
@ -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
|
||||
}
|
||||
|
@ -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).
|
||||
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).
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user