Service Endpoints and Securing Storage
Lab 6: Service Endpoints and Securing Storage
Student Name: Daniel Wanjama Student ID: ADC-CSS02-25012
Introduction
This walkthrough guides you through Lab 06 of the Microsoft ADC Cybersecurity Skilling Program, focusing on securing Azure Storage using Service Endpoints and Network Security Groups (NSGs). Youโll restrict access to storage accounts via virtual network subnets, ensuring traffic stays within the Azure backbone.
Objectives
- Configure Azure Service Endpoints for a storage account
- Set up Network Security Groups to control subnet access
- Deploy virtual machines in isolated subnets to test connectivity
- Validate secure access to Azure Storage
Prerequisites
- Active Azure subscription
- Familiarity with Azure Portal, virtual networks, and storage accounts
- Access to Azure Cloud Shell or PowerShell
Walkthrough
๐๏ธ Step 1: Create a Storage Account
- Log in to Azure Portal
- Navigate to Storage accounts โ Create
- Fill in:
- Subscription: Your active subscription
- Resource group:
Lab06-RG - Storage account name:
lab06storage - Region: East US
- Performance: Standard
- Redundancy: LRS
- Click Create
Screenshot:
Caption: Creating storage account basics
๐ Step 2: Create a Virtual Network
- Navigate to Virtual networks โ Create
- Configure:
- Name:
Lab06-VNet - Resource group:
Lab06-RG - Region: East US
- Name:
- Create subnets:
- Subnet-1:
10.0.1.0/24(default) - Subnet-2:
10.0.2.0/24(for isolated access)
- Subnet-1:
- Click Create
Screenshot:
Caption: Creating virtual network and subnets
๐ Step 3: Configure Service Endpoint
- Open the storage account created in Step 1
- Navigate to Networking โ Firewalls and virtual networks
- Select Selected networks
- Click Add existing virtual network
- Select
Lab06-VNetandSubnet-1 - Enable Service Endpoint for Microsoft.Storage
- Click Add
Screenshot:
Caption: Enabling Service Endpoint for storage account
๐ Step 4: Deploy Virtual Machines
- Create two VMs:
- VM-Allowed: In
Subnet-1(has service endpoint access) - VM-Denied: In
Subnet-2(no service endpoint)
- VM-Allowed: In
- Configure networking:
- Assign to respective subnets
- Enable RDP access
Screenshot:
Caption: Deploying VMs in isolated subnets
โ Step 5: Validate Secure Access
- RDP into VM-Allowed
- Attempt to access storage account using
az storage account show - Verify successful access
- RDP into VM-Denied
- Attempt the same access - should fail
Screenshots:
Caption: VM-Allowed successfully accessing storage account
Caption: VM-Denied blocked from accessing storage account
Conclusion
This lab demonstrated how to secure Azure Storage using Service Endpoints and NSGs. By isolating access through subnets and enforcing firewall rules, you ensured that only trusted resources could connect. These configurations are essential for building secure, compliant cloud architectures.