hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.59k stars 4.63k forks source link

Feature request: data source for azurerm_network_ddos_protection_plan #3851

Closed JamesDLD closed 5 years ago

JamesDLD commented 5 years ago

Community Note

Description

Azure only allow one DDoS Protection Plan per region.

New or Affected Resource(s)

Potential Terraform Configuration

data "azurerm_network_ddos_protection_plan" "test" {
  name                = "ddospplan1"
  resource_group_name = "ddos-service"
}

output "ddos_protection_plan_id" {
  value = "${data.azurerm_network_ddos_protection_plan.test.id}"
}

References

katbyte commented 5 years ago

We should use azurerm_network_ddos_protection_plan as the azurerm_ddos_protection_plan resource has been deprecated in favour of it.

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!