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

Azure - possible to add Virtual Network Gateway resource #4116

Closed
davehodgson opened this issue Nov 30, 2015 · 7 comments
Closed

Azure - possible to add Virtual Network Gateway resource #4116

davehodgson opened this issue Nov 30, 2015 · 7 comments

Comments

@davehodgson
Copy link

Hi,

As part of putting together an Azure infrastructure I've noticed that while Virtual Network, Subnets and Security Groups exists, that a Virtual Network Gateway isn't possible, this is needed if you want to set up a Point-to-Site VPN, I can create it on the GUI after or via powershell/REST but it would be handy if I could do it via Terraform.

If it gets implemented then the ability to also upload a cert and download the configuration files that the GUI allows would be very handy.

A REST version of it is visible here: https://msdn.microsoft.com/en-us/library/azure/jj154119.aspx

I posted this on google groups originally: https://groups.google.com/forum/#!topic/terraform-tool/deNB8BWpRZ0

Cheers
Dave

@davehodgson
Copy link
Author

FYI - until this resource is added, the suggestion on #4141 @jen20 works well.

I expanded it a little to suite my needs - I put the null_resource into a separate file so I can essentially remove the file and run apply (destroys it) and put it back and re-run apply (re-creates it) to re-run the script. I will also in time add a second file which calls a powershell script to destroy the network gateway.

resource "azure_virtual_network" "mynetwork" {
// arguments
}

resource "null_resource" "makevpngateway" {
provisioner "local-exec" {
command = "run provisioning script here"
}
depends_on = ["azure_virtual_network.mynetwork"]
}

Cheers
Dave

@ghost
Copy link

ghost commented Jul 13, 2016

+1

4 similar comments
@aleksandrov
Copy link

+1

@wwwlicious
Copy link

+1

@ghost
Copy link

ghost commented Dec 6, 2016

+1

@gloverc
Copy link

gloverc commented May 9, 2017

+1

@ghost
Copy link

ghost commented Apr 11, 2020

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants