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

Fail to create azurerm_virtual_network_gateway #6

Open
albertyckwok opened this issue Feb 28, 2024 · 1 comment
Open

Fail to create azurerm_virtual_network_gateway #6

albertyckwok opened this issue Feb 28, 2024 · 1 comment

Comments

@albertyckwok
Copy link

Hi, I am try to run the code in new-environment but I am getting "Basic IP configuration for ExpressRoute Virtual Network Gateways is not supported". According to the doc on azurerm_virtual_network_gateway, To build a UltraPerformance ExpressRoute Virtual Network gateway, the associated Public IP needs to be SKU "Basic" not "Standard". The following is what I get from TF apply:

│ Error: Creating/Updating Virtual Network Gateway: (Name "InterConnectVNETGateway" / Resource Group "azure_oci_test_resources"): network.VirtualNetworkGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="PublicIpWithBasicSkuNotAllowedOnExpressRouteGateways" Message="Basic IP configuration for ExpressRoute Virtual Network Gateways is not supported. Please create and associate a Standard IP. /subscriptions/dfec75b7-da3b-4c07-ad4d-b56b9e7dabdb/resourceGroups/azure_oci_test_resources/providers/Microsoft.Network/virtualNetworkGateways/InterConnectVNETGateway" Details=[]

The following is my terraform.tfvars:

region="us-sanjose-1"
user_ocid="ocid1.user.oc1..aaaaaaaasz7cxunbocbkem4ivhvdgnhtvmvixfzxcekaprbf2fye6qms374a"
tenancy_ocid="ocid1.tenancy.oc1..aaaaaaaalmxrgmsqoou26rdybgthdwtwdwhn7km5oq3u25f6bdpoxihqef6q"
#Comp FC/azure
compartment_ocid="ocid1.compartment.oc1..aaaaaaaalncmm7xqopcckibpywsdfceebi6psxifchejzuqtjyu76zx7wdbq"
fingerprint="e6:3a:ec:78:4e:d4:78:04:51:6b:6b:2b:cd:bd:ea:c2"
ssh_public_key  = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDNy3VRCKGeuDNlhIDeUKwoIMo08lm37q37ac8gFZ9VjN4plCsfhDjfoo7GSzWZw8FGx0E40xBmn9lFAxwJZ+Axmy+mCGlG17D70PEaLQKAGzzvl8z+YRx+I5F+e4J5oo+V4pglpwkp9PsdtWNouRE7SA03Mor5pAlBjXgkHonUvd8uRXJReyX8NSYKXryKr3oIc8uFoTfeSNQH2Gn7oPNqJYABfj8VDDcl2ZigCCVwmgI2VxOcGAiKjVBWRWPlxul0SAr+tf4+AUvMgpki33gDk+X/9tSGlg3Ydyx5mhlMlClGLVTDu7xNrAMT4L9CUV7NRiz0WatP9vmGY9qwzGMxZdBvH5qm85k5fD4DQNYvsywGfJJRtDfFfA465EeS/I1VTsoqFgS4J30GMkpeoc8Ydr2h6OGkI/DdwimWZflFu9ULjiCa3YDd2ZW/RfGKUzW8t2rE/M49pwxISCu7Zi0mop3Tk+FkrXTye0AiUEg4jetkGAQ0XKgAbm9Vu2PPN/E= akwok@dellDesk"
private_key_path     = "~/.oci/oci_api_key.pem"


# ------ Azure Required Variables
bandwidth="1000"
azure_region="West US"
peering_location="Silicon Valley"
@albertyckwok
Copy link
Author

Hi, I found and fixed the problem, then created a PR.
Thanks
Albert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant