Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
 

Azure Virtual Network - Use Azure Resources through Logic Apps inside Virtual Network

Article:
Viewed:  1214 
Posted On:  06/01/2020 14:22:11 
How to access Azure Resources which are secured by Azure Virtual Network?  

 

In this article, we are going to learn about virtual network. What is Virtual Network? Advantage of using VNet.

How Logic Apps can communicate to Azure Resources i.e.: Storage Account deployed in a VNet.

 

What is Azure Virtual Network?

Azure Virtual Network (VNet) is the fundamental building block for your private network in Azure. VNet enables many types of Azure resources, such as Azure Virtual Machines (VM), to securely communicate with each other, the internet, and on-premises networks.

Virtual Network scope is a single region, but virtual networks of different regions can be connected together by virtual network pairing.

Pillar of VNet:

  • Address space
  • Subnets
  • Regions
  • Subscription

Below are the steps involved in this Article:

Step 1#   Create a Virtual Network/ Subnet

Step 2#  Add a Storage Account in this Virtual Network

Step 3#  Create an Integrated Service Environment

Step 4#  Create a Logic App inside ISE

Step 5#  Access Storage Account in this Logic App

 

Step 1# Create a Virtual Network

Open Azure Portal: https://portal.azure.com/

#: Create a Resource- Virtual Network.

#: Click on Create

1.jpg

Image 1.

Enter Name, Address Space, Select your Subscription & Resource Group and enter Subnet information.

2.jpg

Image 2

Click on Create.

3.jpg

Image 3.

Virtual Network has been created. Now create 4 new subnets as while creating ISE (Integrated Service Environment we need 4 empty subnets)

To add new subnet click on Subnets option.

4.jpg

Image 4.

Step 2 #: Create a Storage Account and deployed in this Virtual Network

5.jpg

Image 5.

6.jpg

Image 6.

Click on Review + Create.

7.jpg

Image 7.

I have created 2 Container inside this Storage account:

1. input

2. output

If I try to access this container, then I will get below error. Because I am not accessing this storage account from inside VNet or my Client IP is not added

8.jpg

Image 8.

Go to Firewalls & Virtual Networks options:

9.jpg

Image 9.

Step 3#: Create an ISE (Integrated Service Environment)

What is an Integration Service Environment?

An Integration Service Environment is a fully isolated and dedicated environment for all enterprise-scale integration needs. When you create a new Integration Service Environment, it is injected into your Azure virtual network, which allows you to deploy Logic Apps as a service on your VNet.

Create new ISE:

10.jpg

Image 10.

Here in Virtual Network selection, I selected RSVirtualNetworkDemo and 4 empty subnet. Here I selected (subnet2, subnet3,subnet4, subnet5).

In Storage Account I selected subnet1.

Notice the thing, later we will discuss more on this.

11.jpg

Image 11.

ISE (Integrated Service Environment has been created).

Now time to create a Logic App inside this ISE (Integrated Service Environment).

Step 4#: Create a Logic App and select below values.

12.jpg

Image 12.

Design Logic App : Create a Blob inside Container.

13.jpg

 

Image 13.

Now create a Storage Account Connection.

14.jpg

Image 14.

Now try to access Storage Account Container.

15.jpg

Image 15.

Above error because in Storage Account we did not allow those subnet which we have in our ISE ie: (subnet2, subnet3, subnet4, subnet5)

16.jpg

Image 16.

Add all subnet of ISE in Storage Account Firewall.

17.jpg

Image 17.

Now Containers are available in Logic App J

18.jpg

Image 18.

Now Logic App will run successfully. Blob started creating.

19.jpg

Image 19.

  Comment:
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us