Showing posts with label Mohit Gupta. Show all posts
Showing posts with label Mohit Gupta. Show all posts

Wednesday, 26 December 2018

Microsoft Azure: Implementing Internet Facing Load Balancer

 

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

 

In this Video, I will show you How to create an External Load balancer using Azure Resource Manager. We will create two load balanced web-servers publicly accessible through a common IP address.

Then we will test that load balancer through a common IP

 

Step 1: Create a VM in one region

Step 2: Create another VM in that region

Step 3: Create a Load Balancer

Step 4: Test Load Balancer

Create a new resource group

 

 

Create a new Virtual network

Create a Virtual Machine

 

Create a Availability Set

Select appropriate VM compute resources

 

 

 

Create another VM and add in same region and availability set

                               

 

Create a Load Balancer for both VM

 

Create a new Probe

Add rule to redirect load balancer port

 

Test Load Balancer:

Test the LB by turnoff one VM

Thursday, 20 December 2018

Vnet-Vnet Between Different Region and Different Subscripiton

Overview:

 

This article helps you connect virtual networks (VNets) by using the VNet-to-VNet connection type. Virtual networks can be in different regions and from different subscriptions. When you connect VNets from different subscriptions, the subscriptions don't need to be associated with the same Active Directory tenant.

SetUp a xyz company network

 

Create a new Resource group :

 

 

Create a Virtual Network :

 

Create a Gateway Subnet :

 

 

 

Create a VM in your Virtual Network .

Create a Virtual Network Gateway

 

 

SetUp a ABC Company network

 

Create New resource group for abc company

 

 

Create a Virtual Network

Add SubNet

 

Create a new VM

Create a Virtual Network Gateway

Connect Abc and Xyz Virtual Network Gateway using Powershell CLI

 

Fetch the id for Vnet-Gateway using command :

 

az network vnet-gateway show -n xyz-vnet-gateway -g xyz-resgroup

 

Execute below command in Subscription 1:

 

az network vpn-connection create -n xyzvnet-abcvnet -g xyz-resgroup --vnet-gateway1 /subscriptions/subscription-id2/resourceGroups/xyz-resgroup/providers/Microsoft.Network/virtualNetworkGateways/xyz-vnet-gateway -l "West US 2" --shared-key "eeffgg" --vnet-gateway2 /subscriptions/subscription-id/resourceGroups/abc-resgroup/providers/Microsoft.Network/virtualNetworkGateways/abc-vnet-gateway

Execute below command in Subscription 2:

 

az network vpn-connection create -n abcvnet-xyzvnet -g abc-resgroup --vnet-gateway1 /subscriptions/subscription-id/resourceGroups/abc-resgroup/providers/Microsoft.Network/virtualNetworkGateways/abc-vnet-gateway -l "East US 2" --shared-key "eeffgg" --vnet-gateway2 /subscriptions/subscription-id2/resourceGroups/xyz-resgroup/providers/Microsoft.Network/virtualNetworkGateways/xyz-vnet-gateway

Test the connection :

Test the RDP using private IP from one machine to another machine.