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 10.0.0.0/16
- 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 https://docs.microsoft.com/en-us/powershell/azure/install-az-ps-msi?view=azps-3.0.0):
PS C:\> New-AzStorageAccount
cmdlet New-AzureRmStorageAccount at command pipeline position 1
Supply...