You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 03-Azure/01-03-Infrastructure/01_Sovereign_Cloud/resources/demo-vm-creator/README.md
+75-2Lines changed: 75 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,80 @@ Choose the appropriate deployment script:
86
86
Deployments can take 2-6 hours depending on the environment. Monitor progress in:
87
87
- Azure Portal > Resource Groups > Deployments
88
88
89
-
### Step 4: Configure the Environment
89
+
### Step 4: Expand UserStorage Volumes
90
+
91
+
> [!IMPORTANT]
92
+
> LocalBox VM creation may fail for some attendees if the UserStorage volumes do not have enough free space. The default volume sizes (~679 GB each) can be too small when multiple attendees create VMs simultaneously. To fix this, add a 1 TB data disk to each Azure Local node and expand the storage pool before the event.
93
+
94
+

95
+
96
+
This is a two-part process: first add disks from the **host VM**, then expand volumes from a **cluster node**.
97
+
98
+
#### Part A: Add data disks to each node (run on the host VM)
99
+
100
+
Connect to the LocalBox host VM (`LOCALBOX-CLIENT`) via Azure Bastion or Remote Desktop, open a PowerShell session as Administrator, and run:
101
+
102
+
```powershell
103
+
# Create and attach a 1 TB dynamic VHDX to each Azure Local node
104
+
foreach ($node in @("AzLHOST1", "AzLHOST2")) {
105
+
$vhdxPath = "V:\VMs\${node}-S2D_Disk7.vhdx"
106
+
Write-Host "Creating $vhdxPath (1 TB dynamic)..."
107
+
New-VHD -Path $vhdxPath -SizeBytes 1TB -Dynamic
108
+
Add-VMHardDiskDrive -VMName $node -Path $vhdxPath
109
+
Write-Host "Attached $vhdxPath to $node"
110
+
}
111
+
```
112
+
113
+
#### Part B: Expand the storage pool and volumes (run on a cluster node)
114
+
115
+
Open **Hyper-V Manager** on the host VM, connect to one of the Azure Local nodes (e.g., `AzLHOST1`), and open a PowerShell session as Administrator on the node:
116
+
117
+
**1. Expand the UserStorage virtual disks and partitions:**
118
+
119
+
```powershell
120
+
# Get the updated pool
121
+
$pool = Get-StoragePool -FriendlyName "SU1_Pool"
122
+
123
+
# Calculate available space and split evenly between the two UserStorage volumes
124
+
$freeSpace = ($pool.Size - $pool.AllocatedSize)
125
+
$expandPerDisk = [math]::Floor($freeSpace / 2)
126
+
127
+
# Expand each UserStorage virtual disk
128
+
foreach ($diskName in @("UserStorage_1", "UserStorage_2")) {
129
+
$vdisk = Get-VirtualDisk -FriendlyName $diskName
130
+
$currentSize = $vdisk.Size
131
+
$newSize = $currentSize + $expandPerDisk
132
+
Write-Host "Expanding $diskName from $([math]::Round($currentSize/1GB)) GB to $([math]::Round($newSize/1GB)) GB..."
Write-Host "$diskName partition resized to $([math]::Round($maxSize/1GB)) GB"
143
+
}
144
+
```
145
+
146
+
**2. Verify the new sizes:**
147
+
148
+
```powershell
149
+
Get-StoragePool -FriendlyName "SU1_Pool"
150
+
```
151
+
152
+
```powershell
153
+
Get-Volume -FriendlyName UserStorage_*
154
+
```
155
+
156
+

157
+
158
+
You should also see updated values in the Azure Portal:
159
+
160
+

161
+
162
+
### Step 5: Configure the Environment
90
163
91
164
VM image:
92
165
1. In the Azure Portal, navigate to your **Azure Local** instance
@@ -131,7 +204,7 @@ Role assignments:
131
204
- For the **User Access Administrator** role, select **Allow user to assign all roles except privileged administrator roles Owner, UAA, RBAC (Recommended)** on the **Conditions** tab:
132
205

133
206
134
-
### Step 5: Test the Environment
207
+
### Step 6: Test the Environment
135
208
Once deployed:
136
209
- Follow Challenge 6 walkthrough for lab exercises verification
0 commit comments