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

modules local_network_gateways + virtual_network_gateway_connections #118

Closed
nergalex opened this issue May 14, 2020 · 7 comments
Closed
Labels
medium_priority Medium priority new_feature New feature requirments new_module_issue Request to add a new module

Comments

@nergalex
Copy link

SUMMARY

Thank you for the module "azure_rm_virtualnetworkgateway".
In order to complete the setup of a VPN GW connection, have you already developed modules associated to the Python classes below ?

Use Case: connect another Cloud (private/public) to Azure with an IPsec VPN GW
Action needed to automate:

Provision a VPN GW of a remote Cloud (private/public) --> LocalNetworkGateways class
Connect the remote VPN GW to a Azure VPN GW (virtual_network_gateway) --> virtual_network_gateway_connections class

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

New modules : modules local_network_gateways + virtual_network_gateway_connections

ADDITIONAL INFORMATION
NetworkManagementClient.local_network_gateways
NetworkManagementClient.virtual_network_gateway_connections
Example of Python script currently used:

NetworkManagementClient(credentials, subscription_id).local_network_gateways.create_or_update(
                resource_group_name=local_gw['resource_group_name'],
                local_network_gateway_name=local_gw['local_network_gateway_name'],
                parameters={
                    'location': local_gw['location'],
                    'local_network_address_space': {
                        'address_prefixes': local_gw['local_network_address_space']
                    },
                    'gateway_ip_address': local_gw['gateway_ip_address'],
                    'tags': local_gw['tags']
                }

NetworkManagementClient(credentials, subscription_id).virtual_network_gateway_connections .create_or_update(
                resource_group_name=local_gw['resource_group_name'],
              virtual_network_gateway_connection_name=virtual_network_gateway_connection_name,
                parameters={
                    'location': local_gw['location'],
                    'tags': local_gw['tags'],
                    'virtual_network_gateway1': virtual_network_gateway,
                    'local_network_gateway2': local_network_gateway,
                    'connection_type': 'IPsec',
                    'connection_protocol': 'IKEv2',
                    'shared_key': local_gw['shared_key']
                }
            )
@Fred-sun
Copy link
Collaborator

@nergalex Glad you raised this question, we will investigate and add this feature. Thank you!

@Fred-sun Fred-sun added medium_priority Medium priority new_feature New feature requirments labels Oct 26, 2020
@paronnax
Copy link

paronnax commented Feb 9, 2021

Hi, I need these modules too
Will be ingretated soon ?
Thank you, good luck

@Fred-sun
Copy link
Collaborator

@TJulesVerne Working on it! Thank you very much!

@XabiBeltza
Copy link

Creating a connection would allow us to complete the whole Express Route workflow. There is already a VPN_GW and ExpressRoute roles.

@rnotley
Copy link

rnotley commented Nov 6, 2022

+1 for getting these modules. I'm currently using ARM deployments for these resources which works but not ideal.

@Fred-sun
Copy link
Collaborator

Fred-sun commented Nov 7, 2022

@XabiBeltza @rnotley We are developing it, thank you!

@Fred-sun Fred-sun added the new_module_issue Request to add a new module label Nov 7, 2022
@Fred-sun
Copy link
Collaborator

Added in #1627 and #1523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority new_feature New feature requirments new_module_issue Request to add a new module
Projects
None yet
Development

No branches or pull requests

5 participants