Hybrid Lab Guide: The Complete Connectivity Handbook
This guide provides detailed, step-by-step instructions for implementing Hybrid Azure
Designs by connecting your Pluralsight Sandbox (Ephemeral Compute) with your
Azure Free Tier (Persistent Identity/SaaS).
Prerequisites:
- Pluralsight Sandbox: Active session (approx. 4 hours).
- Azure Free Tier: Active subscription (Pay-As-You-Go or Free Trial).
- Tools: PowerShell, Azure CLI, Remote Desktop (RDP).
ποΈ Core Connectivity Pattern
Since we cannot create VPNs between these environments, we use Public Internet Connectivity
secured by Application-Layer Authentication.
- Sandbox Resources: Have Public IPs (VMs, Load Balancers).
- Free Tier Resources: Have Public Endpoints (Entra ID, DevOps, Cosmos DB).
- Security: All traffic is encrypted via HTTPS (TLS 1.2+).
π Design 47: DevSecOps (The Build Agent)
Goal: Use Azure DevOps (Free Tier) to build/deploy code on a Sandbox VM.
1. Free Tier Configuration (Azure DevOps)
- Create Organization: Go to
dev.azure.com β New
Organization.
- Create Project: Name it
Hybrid-DevOps.
- Create PAT (Personal Access Token):
- User Settings (Top Right) β Personal Access Tokens.
- New Token β Name:
SandboxAgent.
- Scopes: Select Agent Pools (Read & Manage).
- Copy the Token. (You won't see it again).
- Create Agent Pool:
- Project Settings β Agent Pools β Add Pool.
- Type: Self-hosted.
- Name:
Sandbox-Pool.
2. Sandbox Configuration (The VM)
- Deploy VM: Windows Server 2019 (
Standard_B2s).
- RDP into the VM.
- Download Agent:
- In the VM browser, go to your DevOps Project β Agent Pools β
Sandbox-Pool β
New Agent.
- Click Download.
- Install Agent:
- Extract the zip to
C:\agent.
- Open PowerShell (Admin).
- Run
.\config.cmd.
- Server URL:
https://dev.azure.com/{your-org-name}.
- Auth Type: Press Enter for PAT.
- Token: Paste the PAT from Step 1.
- Pool:
Sandbox-Pool.
- Agent Name: Press Enter (default).
- Run as Service: Type
Y.
- Verify: Go back to DevOps β Agent Pools. You should see the agent
Online.
π Design 49: Hybrid Identity (AD Connect)
Goal: Sync "On-Prem" Users (Sandbox) to Entra ID (Free Tier).
1. Free Tier Configuration (Entra ID)
- Create Global Admin:
- Go to Entra ID β Users β New User.
- Name:
syncadmin.
- Role: Global Administrator.
- IMPORTANT: This must be a cloud-only account (e.g.,
syncadmin@yourtenant.onmicrosoft.com).
2. Sandbox Configuration (Domain Controller)
- Deploy VM: Windows Server 2019.
- Install AD DS:
- Server Manager β Add Roles β Active Directory Domain Services.
- Promote to DC: Create a new forest
lab.local.
- Create Users: Open AD Users & Computers β Create OU
SyncUsers β Create
user JohnDoe.
- Install AD Connect:
- Download Microsoft Entra Connect (V2) from Microsoft Download Center.
- Run
AzureADConnect.msi.
- Express Settings: Use Express Settings.
- Connect to Entra ID: User
syncadmin@... (from Step 1).
- Connect to AD DS: User
LAB\Administrator (Local Admin).
- Install: Click Install.
3. Verification
- Wait 2 minutes.
- Go to Entra ID (Free Tier) β Users.
- You should see
JohnDoe with Directory Synced = Yes.
πΈοΈ Design 35: Azure Arc (Server Management)
Goal: Apply Azure Policy (Free Tier) to a Sandbox VM.
1. Free Tier Configuration (Arc)
- Search Azure Arc β Servers.
- Click Add β Add a single server.
- Prerequisites: Click Next.
- Resource Details:
- Subscription: Your Free Tier Sub.
- Region: East US.
- OS: Windows (or Linux if using Linux VM).
- Download Script: Copy the generated PowerShell script.
2. Sandbox Configuration (The Target)
- RDP into your Sandbox VM.
- Open PowerShell (Admin).
- Paste & Run the script.
- Authenticate: A browser window will open. Sign in with your Free
Tier credentials.
- Wait: The script will install the Connected Machine Agent.
3. Verification
- Go to Azure Arc (Free Tier).
- You will see the VM listed.
- Action: Go to Policies (in Free Tier) β Assign a policy (e.g.,
"Audit VMs without Disaster Recovery") to this Arc Server.
π¦ Design 17: Multi-Tier App (Frontend-Backend)
Goal: App Service (Free Tier) connects to SQL/API (Sandbox).
1. Sandbox Configuration (Backend)
- Deploy VM: Windows Server or Linux.
- Install Service: Install SQL Server Express or run a Python API on Port 80.
- Network Security Group (NSG):
- Go to the VM's Networking blade.
- Add Inbound Rule:
- Source:
Any (For lab simplicity. In prod, restrict to App Service IPs).
- Port:
1433 (SQL) or 80 (API).
- Action:
Allow.
- Get Public IP: Note the VM's Public IP (e.g.,
20.55.1.1).
2. Free Tier Configuration (Frontend)
- Create App Service:
- Plan: F1 (Free).
- Runtime: Matches your code (Node, Python, .NET).
- Configure Connection:
- Go to Configuration β Application Settings.
- Add New Setting:
DB_CONNECTION_STRING.
- Value:
Server=20.55.1.1;Database=mydb;User Id=sa;Password=...;
- Deploy Code: Deploy your web app that reads this setting.
πΎ Design 45: Data Mesh (Purview Scanning)
Goal: Azure Purview (Free Tier) scans Data (Sandbox Storage).
1. Sandbox Configuration (Data Source)
- Create Storage Account: Standard LRS.
- Upload Data: Upload some CSV files to a container.
- Get Access Key: Go to Access Keys β Copy
Key1.
2. Free Tier Configuration (Governance)
- Create Purview Account: (Note: Purview has a cost, check if Free Trial applies. If
not, use Azure Policy scanning instead).
- Alternative (Free): Use Power BI Desktop (Free).
- Open Power BI Desktop.
- Get Data β Azure Blob Storage.
- Account Name: (Sandbox Storage Name).
- Account Key: (Paste Key from Step 1).
- Result: You are now analyzing Sandbox data in your local/Free Tier tool.
π‘οΈ Design 44: Mission Critical (Global Traffic)
Goal: Front Door (Sandbox) routes to AKS (Sandbox) + Cosmos (Free Tier).
1. Free Tier Configuration (Database)
- Create Cosmos DB:
- Capacity Mode: Serverless or Provisioned (Free Tier
discount).
- API: NoSQL.
- Get Connection String: Go to Keys β Copy Primary Connection String.
2. Sandbox Configuration (Compute & Routing)
- Create AKS Cluster: Basic Tier (Free).
- Deploy App:
- Create a Kubernetes Secret with the Cosmos DB Connection String.
kubectl create secret generic db-secret --from-literal=connectionString="<paste-string>"
- Deploy your Pods referencing this secret.
- Create Front Door:
- Create a Front Door (Standard).
- Origin: Point to your AKS Public IP (Load Balancer).
- Routing: Route
/ to the AKS Origin.
π Design 50: The Ultimate Architecture (Orchestration)
Goal: Combine everything.
- Identity Layer (Free Tier):
- Set up Entra ID users and groups.
- Create a "Break Glass" account.
- Governance Layer (Free Tier):
- Assign Policies to your Subscription.
- Create Cost Budgets.
- Connectivity Layer (Sandbox):
- Deploy the Hub VNet and Azure Firewall (Basic).
- Deploy VPN Gateway (Basic).
- Workload Layer (Sandbox):
- Deploy Spoke VNets peered to the Hub.
- Deploy AKS and VMs in Spokes.
- Hybrid Link:
- Install Arc Agent on the Hub Jumpbox VM.
- Install DevOps Agent on a Spoke Build VM.
π§Ή Cleanup Instructions
Sandbox
- Action: Close the browser tab.
- Result: All VMs, AKS clusters, Firewalls, and IPs are automatically destroyed.
Free Tier (Manual Cleanup Required)
- Entra ID: Delete the
syncadmin user and any synced users
(JohnDoe).
- Azure Arc: Delete the "Server - Azure Arc" resources (they will show as
"Disconnected").
- DevOps: Delete the
Sandbox-Pool from Organization Settings.
- App Service: Delete the App Service and App Service Plan to free up your F1 quota.