Private Link is an Azure service that helps provide private network accessibility to a range of supported services. Private Link supports several Azure PaaS solutions, as well as customer-managed solutions (backed by a standard load balancer).
In this lab, you will have the opportunity to configure the Private Link service for Azure Blob storage. This will enable private connectivity between a virtual machine, and Blob storage, within a virtual network.
After completing this lab, you’ll be familiar with how to configure a Private Endpoint for the Azure Blob service, using Private Link.
**Note:** In the lab, use the same Region as your lab provisioned Resource Group for the location.
> **The FQDN in the Azure console is not directly available now. The solution video is slated to be updated. In the meantime, you could go to the DNS configuration of the private endpoint, then click on the private zone dns hyperlink. From there you can find the resolve information.**
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Configure a Private Endpoint for Blob Storage
Use the Azure Portal to create the private endpoint.
- Navigate to the Storage Accounts section.
- Open Storage Accounts from the sidebar, and navigate to the storage account already created for you.
- Click on Private endpoint connections in the storage account resource menu.
- Click + Private endpoint to create a new private endpoint.
Create the private endpoint with the following details:
- Basics:
- Subscription: select the Hands-On Labs subscription
- Resource Group: select the existing resource group
- Name: privatelink1
- Region: Use the same Region as your lab provisioned Resource Group
- Click Next
- Resource
- Connection method: Connect to an Azure resource in my directory
- Subscription: select the Hands-On Labs subscription
- Resource type: Microsoft.Storage/storageAccounts
- Resource: select the existing storage account
- Target sub-resource: blob
- Click Next
- Configuration:
- Virtual network: vnet1
- Subnet: subnet1
- Leave DNS as-is
- Click on Review + create
- Verify the Private Endpoint from VM1
Use the Azure Portal to gather the necessary information. Please be aware you will need an RDP client to connect to the Windows server.
Copy the details for the Blob endpoint
- Navigate to the Private Link services page (you can search with the search bar if required).
- Open Private endpoints from the sidebar, and navigate to the private endpoint you created earlier.
- Copy the FQDN (e.g.,
azurelalab123.blob.core.windows.net
)
Connect to VM1 using RDP
To connect to vm1, use the following credentials:
Username:azureuser
Password:labh0l-2021-learn!
- Navigate to the Virtual Machines services page.
- Open the existing VM called vm1.
- Click on the Connect option in the command bar, and select RDP.
- Use the RDP file with your preferred RDP client.
Note: you may choose to copy the public IP address and connect via RDP manually with your RDP client, instead of using the RDP file.
Verify the Private Endpoint from VM1
- Open the command prompt (Right-click Start > Run > type
cmd
> press Enter) - Use nslookup to verify DNS now points to a private IP address, for example:
nslookup azurelalab123.blob.core.windows.net
Note: You should see a private IP address, such as 10.1.1.5. You may also choose to upload and access a file using other tools such as
netstat
and Storage Explorer.