Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

PART 4.1 : MICROSOFT AZURE POWERSHELL CREATING AND ADMINISTRATING LOCAL NETWORK GATEWAY

October 1, 2016 08:44PM

This is commandline version of Part 4 Microsoft Azure VPN connection series. Before creating another Local Network Gateway, I deleted before proceeding to avoid conflicts. There is simple command to proceed. 
New-AzureRmLocalNetworkGateway -Name Poc-VPN_localGateway -ResourceGroupName POC-VPN -Location 'East US 2' -GatewayIpAddress '203.1.1.10' -AddressPrefix @('172.21.101.0/24', '172.21.1.0/24')

Parameters break down as below.
-Name: Name for new local network gateway
-ResourceGroupName: Name of the existing Resource Group in my case is POC-VPN
-Location: This is region where gateway is location, mine is same as existing resource group (East US 2)
-GatewayIPAddress: This is my in-house public internet IP
-AddressPrefix: This is again my inhouse private IPs, I have my servers and desktops in this IP series.Microsoft Azure New-AzureRmLocalNetworkGateway Local Network Gateway, GatewayIPAddress, AddressPrefix

PART 1 : MICROSOFT AZURE CREATION AND CONFIGURATION OF VPN TUNNEL SERIES
PART 2 : MICROSOFT AZURE CREATING RESOURCE GROUP 
PART 3 : MICROSOFT AZURE CREATING AND ADMINISTERING VIRTUAL NETWORK (VNET)
PART 3.1 : MICROSOFT AZURE POWERSHELL CREATING AND ADMINISTERING VIRTUAL NETWORK (VNET)
PART 4 : MICROSOFT AZURE CREATING AND ADMINISTRATING LOCAL NETWORK GATEWAY VPN
PART 4.1 : MICROSOFT AZURE POWERSHELL CREATING AND ADMINISTRATING LOCAL NETWORK GATEWAY 
PART 5: VIRTUAL NETWORK GATEWAY DEPLOYMENT ON MICROSOFT AZURE
PART 5.1: VIRTUAL NETWORK GATEWAY DEPLOYMENT USING MICROSOFT AZURE POWERSHELL
PART 6: INSTALLING ROUTING AND REMOTE ACCESS SERVER ROLE (MICROSOFT RRAS)
PART 6.1: CONFIGURING ROUTING AND REMOTE ACCESS SERVER DEMAND-DIAL (MICROSOFT RRAS AZURE VPN)
PART 6.2: CONFIGURING ROUTING AND REMOTE ACCESS SERVER ROUTER (MICROSOFT RRAS AZURE VPN)
PART 7: MICROSOFT AZURE CREATE CONNECTION IN VIRTUAL NETWORK GATEWAY
PART 7.1: MICROSOFT AZURE POWERSHELL VPN CONNECTION IN VIRTUAL NETWORK GATEWAY
PART 8: MICROSOFT AZURE ARM AND POWERSHELL CREATING AND MANAGING STORAGE ACCOUNT
PART 9: CREATING AND MANAGING VIRTUAL MACHINE (VM) USING MICROSOFT AZURE RESOURCE MANAGER PORTAL

If there is no error it will be showing information new local network gateway. In case if you would like to reconfirm Get-AzureRmLocalNetworkGateway command can be used.
Get-AzureRmLocalNetworkGateway -Name Poc-VPN_localGateway -ResourceGroupName POC-VPN

Microsoft Azure Get-AzureRmLocalnetworkGateway name resourcegroup parameters

Next Part will be about creating and administrating Microsoft Azure virtual network gateway. I just would like to discuss here what is how my actual Production looks like (I am doing this POC with Microsoft Windows RRAS server in these article series). I have got a Cisco ASA firewall, and switch/router inside. This is one of the common ideal diagram can be found for any production. I am sharing this diagram for just knowledge purpose. VPN Tunnel to Azure using local virtual network gateway cisco asa to azure vpn connection

Go Back

Very useful article explained in plain English.

Eagerly waiting for more session and NSG.

Thanks Jack, will be soon completing the series., And thanks for the positive feedback.



Comment