30Aug

How to Create an Azure Virtual Network by using a Deployment Template

Hello Folks!

In this Blog post, we will try to learn how to create an Azure V-Net using an ARM template. I have divided the post into two tasks. Please follow the steps to complete the deployment.

Task 1: Download the Template from GitHub

1.

Open the internet explorer and type https://github.com/Azure/azure-quickstart-templates/tree/master/101-vnet-two-subnets

 

2.

Click azuredeploy.json, and then click RAW.

 

3

 

3.

You will be redirected to a new page containing the JSON template.

4

4.

Copy everything from this page using Ctrl+A and paste it in a new notepad file created in the folder C:\ARM. Save this file with the name azuredeploy.json.

5

 

5.

Navigate back to the sample template page.

 

6.

Click azuredeploy-paremeters.json, and then click RAW.

9

 

7.

You will be redirected to a new page containing the JSON template.

 

10

8.

Copy everything from this page using Ctrl+A and paste it in a new notepad file created in the folder C:\ARM. Save this file with the name azuredeploy-parameters.json.

11

9.

Open azuredeploy-parameters.json in notepad and replace the value of vnetName with this standard-

13

10.

It should look something like this

14

11.

Save your file.

 

Task 2: Create a Resource Group to deploy Virtual Network into

1.

Run Azure PowerShell on your computer

 

2.

Login to your Azure Account using the cmdlet Login-AzureRmAccount and enter your Azure subscription credentials.15

 

 

3.

Once you are logged in you will get an output similar to this16

 

4.

 Run the New-AzureRmResourceGroup cmdlet to create a new resource group. The command below creates a resource group named MyName-RG in the Central US azure region. Replace MyName with your name in the below cmdlet.

 

New-AzureRmResourceGroup -Name MyName-RG -Location centralus

 

 

5.

After your deployment gets succeeded, you will get an output similar to this.

 

17

 

 

Task 3: Deploy the Virtual Network using the ARM templates to the Resource Group

1.

Copy the command below and paste in your powershell window.

 

New-AzureRmResourceGroupDeployment -Name TestVNetDeployment -ResourceGroupName MyName-RG -TemplateFile C:\ARM\azuredeploy.json -TemplateParameterFile C:\ARM\azuredeploy-parameters.json

 

Replace TestVNetDeployment to YourNameVNetDeployment

Replace MyName-RG to YourName-RG (The Name of your Resource Group)

 

 

2.

The output should be similar to this.

 

18

 

3.

Run the cmdlet below to view the properties of the new VNet created.

Replace TestRG with the name of your resource group.

Replace TestVNet with the name of the VNET you just created.

 

Get-AzureRmVirtualNetwork -ResourceGroupName MyName-RG -Name MyName-VNET

 

4.

Your output should be similar to this.

 

19

 

 

 

Related

Azure Blob Storage: The PowerShell Way!

Hi folks!Great to see you again.This blog post is purely based on Azure Blob Storage: The PowerShell...

Read More >

Create a Windows Server 2012 R2 VM using ARM in Azure PowerShell

Hi Folks,In this Blog Post we will learn how to create an Azure ARM Virtual Machine using Azure Powe...

Read More >

Continuous Integration/ Continuous Deployment VSTS

Following the below steps you can build and deploy your ASP.NET  app to Azure from either Visua...

Read More >

How to Sync On-premise AD with Windows Azure AD using Azure AD Connect tool

 Azure AD is a service that provides identity and access management capabilities in the cloud. ...

Read More >

Creating a Point-to-Site Connectivity using Azure Resource Manager

Configure a Point-to-Site connectivity to a VNet using PowerShell (ARM Mode)Task 1: Create a Self-Si...

Read More >

Locking VMs and Resources Groups with Azure Resource Manager using Azure PowerShell

Hello Folks!In this blog post we will be talking about locking down your Azure Resources with Azure ...

Read More >

Microsoft Azure: Implementing Internet Facing Load Balancers using Azure Resource Manager

Howdy Folks!I was exploring Network Load Balancer in Azure Resource Manager and found out that you c...

Read More >

Microsoft Azure Stack : Power of Azure in our datacentre

Why Azure Stack?Microsoft Azure Stack is a new hybrid cloud platform product that enables our organi...

Read More >

Microsoft Azure : Mobile Services - Xamarian.Android with .Net

NOTE: Microsoft Azure recommends Azure App Service Mobile Apps for all new mobile backend deployment...

Read More >

Microsoft Azure : The cloud for modern business

 Why Azure? Microsoft Azure: Cloud Computing Platform and Services Move faster Save Money ...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
Tags
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *