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.53k stars 4.6k forks source link

Support for creating a public IP prefix from a custom IP prefix #16381

Open salindaliyanage opened 2 years ago

salindaliyanage commented 2 years ago

Is there an existing issue for this?

Community Note

Description

Azure recently announced the general availability of Bring your own IP service (BYOIP). This service allows customer owned Public IP ranges to be onboarded to Azure as regional Custom IP Prefix resources, where they can be utilized in the same manner as Azure-owned public IP prefixes. When custom IP prefix is onboarded into Azure, public IP prefix can be created using this custom ip prefix. Currently azurerm_public_ip_prefix resource does not support creating from a public ip prefix and therefore should use Azure CLI or Powershell (https://docs.microsoft.com/en-us/azure/virtual-network/ip-services/manage-custom-ip-address-prefix#create-a-public-ip-prefix-from-a-custom-ip-prefix).

New or Affected Resource(s)/Data Source(s)

azurerm_public_ip_prefix

Potential Terraform Configuration

Add optional argument custom_ip_prefix_id to azurerm_public_ip_prefix

resource "azurerm_public_ip_prefix" "example" {

  name                = "acceptanceTestPublicIpPrefix1"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  custom_ip_prefix_id = var.custom_ip_prefix_id

  prefix_length = 31

  tags = {
    environment = "Production"
  }
}

References

No response

neilfromit commented 2 years ago

For what it's worth this is now supported in ARM as of 30/06/2022 version of the API: along with the custom ip prefix object itself:

wrighgl commented 1 year ago

+1

lehoangkhanh2008 commented 8 months ago

Hello, may I know if is there any update on this feature? Is it available now or any timeline to release please?

hofmannma commented 1 month ago

We would need this too - any update?