Reiterating from previous article PART 3 I will be doing same task using Microsoft Azure Powershell, There are only 2 commands to create new Virtual network. Before creating New virtual network I have deleted existing one so there is no conflict.
I have shown how to install Powershell Azure and use it, Links are provided in the bottom of this blog. Also detailed Virtual Network diagram explanation check on Part 3.
One of the definition of vNet (Virtual Network) I found on the azure network is, Create a logically isolated section in Microsoft Azure with this networking service. You can securely connect it to your on-premises datacenter or a single client machine using an IPsec connection. Virtual Networks make it easy fo you to take advantage of the scalable, on-demand infrastructure of Azure while providing connectivity to data and applications on-premises, including systems running on Windows Server, mainframes, and UNIX.
Use Virtual Network to:
- Extend your datacenter
- Build distributed applications
- Remotely debug your applications
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
Command New-AzureRmVirtualNetworkSubnetConfig is used to store subnet in variables. I want to create 2 subnets and note the address prefix they are different. I am going to use $subnet01 and $subnet02 variables later while creating Virtual network.
$subnet01 = New-AzureRmVirtualNetworkSubnetConfig -Name Subnet01 -AddressPrefix 10.100.2.0/26
$subnet02 = New-AzureRmVirtualNetworkSubnetConfig -Name Subnet02 -AddressPrefix 10.100.2.64/26
Next cmdlet is New-AzureRmVirtualNetwork, while using this command, There has to mention Resourcegroup, Location mandatory Parameters, Note down the addressprefix it has 254 blocks, and they are divided (supernetted) in to subblocks, Subnet parameters values are taken from $subnet01 and $subnet02, I don't see any error means everything looks good.
$vNet = New-AzureRmVirtualNetwork -ResourceGroupName 'Poc-VPN' -Location 'East US 2' -Name 'vnet-poc-10.100.2.0' -AddressPrefix '10.100.2.0/24' -Subnet $subnet01, $subnet02
In the last I have used command Get-AzureRmVirtualNetwork to verification of new created resource object in Azure, it is successful.
Get-AzureRmVirtualNetwork -Name 'vnet-poc-10.100.2.0' -ResourceGroupName 'POC-VPN'
In the last I verify the same in Azure portal for deployed services.
Some Useful Links
MICROSOFT AZURE ERROR REGISTERING RESOURCE PROVIDERS CODE AUTHORIZATION FAILED
INSTALLING MICROSOFT AZURE POWERSHELL