Creating a VNet and Azure Storage account

To get started, we will need a resource group with a VNet created inside it. To do this, you can use the following PowerShell or CLI command:

  • PowerShell: New-AzureRmVirtualNetwork -ResourceGroupName myResourceGroup -Location location -Name myVirtualNetwork -AddressPrefix
  • CLI: az network vnet create -g myResourceGroup -n vnetName

The next thing that we need here is a subnet, which will contain an endpoint. To create it, you can once again use a PowerShell or CLI command:

  • PowerShell: New-AzureRmVirtualNetworkSubnetConfig
  • CLI: az network subnet create

In this section, we will try to configure an endpoint for Azure Storage. To create a new account, you will need the following PowerShell command (if you do not have Azure PowerShell installed, go to

PS C:\> New-AzStorageAccount
cmdlet New-AzureRmStorageAccount at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
ResourceGroupName: myResourceGroup
Name: accountName
SkuName: Standard_LRS|Standard_ZRS|Standard_GRS|Standard_RAGRS|Premium_LRS
Location: location

Note that passing no parameters results in PowerShell asking you to provide them. The same can be done with the Azure CLI using a slightly different syntax:

az storage account create -g myResourceGroup -n accountName

Let’s assume that I created an account with the name serviceendpoint123. Its primary endpoints will be as follows:

"primaryEndpoints": {
"blob": "",
"file": "",
"queue": "",
"table": ""

As you can see, each endpoint is an address that is available via HTTPS, which can be used to connect with a specific service. They are all available via the public internet (you can try to ping any of them so you can see whether they respond). Now we will try to hide them inside a VNet.

Related Articles

How to add swap space on Ubuntu 21.04 Operating System

How to add swap space on Ubuntu 21.04 Operating System

The swap space is a unique space on the disk that is used by the system when Physical RAM is full. When a Linux machine runout the RAM it use swap space to move inactive pages from RAM. Swap space can be created into Linux system in two ways, one we can create a...

read more

Lorem ipsum dolor sit amet consectetur


Submit a Comment

Your email address will not be published. Required fields are marked *

three − two =