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

PublicIpWithBasicSkuNotAllowedOnVPNGateways #1125

Open
almclv1 opened this issue Sep 3, 2024 · 4 comments
Open

PublicIpWithBasicSkuNotAllowedOnVPNGateways #1125

almclv1 opened this issue Sep 3, 2024 · 4 comments
Assignees
Labels
Type: Bug 🪲 Something isn't working
Milestone

Comments

@almclv1
Copy link

almclv1 commented Sep 3, 2024

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

6.1.0 and older

Terraform v1.9.5
Version = ">= 3.74.0"

connectivity

Description

│ Error: creating Virtual Network Gateway (Subscription: "" │ Resource Group Name: "rg-net-****" │ Virtual Network Gateway Name: "vgw-net-hub-"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: PublicIpWithBasicSkuNotAllowedOnVPNGateways: Basic IP configuration for VPN Virtual Network Gateways is not supported. Follow the link for more details

I am getting that, even though the SKU is set to standard from what i can see. i even tried adding extra params to try force standard. There appears to be nowhere else to force "Standard" over "Basic"

It appears to be creating the public IP as basic,.
image

Anybody else seeing this issue?

@charlesb87
Copy link

Hello,

I'm having the same problem here, therefore I cant create any VPN Gateway anymore

Module version : 6.0.0
TF version: 1.9.5

All the best,

@almclv1
Copy link
Author

almclv1 commented Sep 6, 2024 via email

@charlesb87
Copy link

charlesb87 commented Sep 6, 2024

I found a suitable workaround by adding this to advanced parameters :

    advanced = {
      custom_settings_by_resource_type = {
        azurerm_public_ip = {
          connectivity_vpn = {
            francecentral = {
              sku               = "Standard"
              allocation_method = "Static"
            }
          }
        }
    }
}

@matt-FFFFFF
Copy link
Member

Hi @almclv1 - we do try and get back to you in 3 business days so sorry if we missed the mark there.

I see @charlesb87 has a solution using the advanced block. We cannot change the PIP SKU without it being a breaking change so we will update the default in v7 of the module.

@matt-FFFFFF matt-FFFFFF added this to the 7.0.0 milestone Sep 7, 2024
@matt-FFFFFF matt-FFFFFF self-assigned this Sep 7, 2024
@matt-FFFFFF matt-FFFFFF added the Type: Bug 🪲 Something isn't working label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants