Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not use VpnGw1AZ, VpnGw2AZ, and VpnGw3AZ SKU's with resource azurerm_virtual_network_gateway #3314

Closed
JamesDLD opened this issue Apr 26, 2019 · 1 comment · Fixed by #3362

Comments

@JamesDLD
Copy link

JamesDLD commented Apr 26, 2019

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

AzureRm provider version 1.25.0, 1.26.0 and 1.27.0
Terraform v0.11.13

Affected Resource(s)

  • azurerm_virtual_network_gateway

Terraform Configuration Files

resource "azurerm_virtual_network" "bp1-vnet1" {
  name                = "bp1-vnet1"
  location            = "CentralUS"           #"francecentral"
  resource_group_name = "infr-jdld-noprd-rg1"
  address_space       = ["10.0.0.0/16"]

  tags {
    environment = "Test"
  }
}


resource "azurerm_subnet" "subnet" {
  name                 = "GatewaySubnet"
  resource_group_name  = "${azurerm_virtual_network.bp1-vnet1.resource_group_name}"
  virtual_network_name = "${azurerm_virtual_network.bp1-vnet1.name}"
  address_prefix       = "10.0.2.0/24"
}

resource "azurerm_public_ip" "pip" {
  name                = "pip"
  location            = "${azurerm_virtual_network.bp1-vnet1.location}"
  resource_group_name = "${azurerm_virtual_network.bp1-vnet1.resource_group_name}"
  sku                 = "Standard"
  allocation_method   = "Static"
  zones               = ["1"]
}

resource "azurerm_virtual_network_gateway" "ngw" {
  name                = "ngw"
  location            = "${azurerm_virtual_network.bp1-vnet1.location}"
  resource_group_name = "${azurerm_virtual_network.bp1-vnet1.resource_group_name}"

  type = "Vpn"
  vpn_type = "RouteBased"

  active_active = false
  enable_bgp    = false
  sku           = "VpnGw1AZ"
  ip_configuration {
    name                          = "vnetGatewayConfig"
    public_ip_address_id          = "${azurerm_public_ip.pip.id}"
    private_ip_address_allocation = "Dynamic"
    subnet_id                     = "${azurerm_subnet.subnet.id}"
  }
}

Expected Behavior

Should create the Virtual Network Gateway with the SKU "VpnGw1AZ" (same issue with VpnGw2AZ and VpnGw3AZ).

Actual Behavior

azurerm_virtual_network_gateway.ngw: expected sku to be one of [Basic Standard HighPerformance VpnGw1 VpnGw2 VpnGw3], got VpnGw1AZ

Steps to Reproduce

  1. terraform apply

Important Factoids

As discussed on the slack community channel, it appears that the validate function "validateArmVirtualNetworkGatewayRouteBasedVpnSku" doesn't include the SKUs VpnGw1AZ, VpnGw2AZ and VpnGw3AZ for the resource "azurerm_virtual_network_gateway".

References

@ghost
Copy link

ghost commented Jun 2, 2019

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!

@ghost ghost locked and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants