Skip to content

Commit 4f6484c

Browse files
authored
Merge pull request #310 from janegilring/sovereign_cloud_updates
Sovereign Cloud update
2 parents e48b9b6 + 417e518 commit 4f6484c

3 files changed

Lines changed: 75 additions & 2 deletions

File tree

03-Azure/01-03-Infrastructure/01_Sovereign_Cloud/resources/demo-vm-creator/README.md

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,80 @@ Choose the appropriate deployment script:
8686
Deployments can take 2-6 hours depending on the environment. Monitor progress in:
8787
- Azure Portal > Resource Groups > Deployments
8888

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+
![Create role assignment](./img/localbox_storage_01.png)
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..."
133+
Resize-VirtualDisk -FriendlyName $diskName -Size $newSize
134+
}
135+
136+
# Expand the partitions to use the new virtual disk space
137+
foreach ($diskName in @("UserStorage_1", "UserStorage_2")) {
138+
$volume = Get-Volume -FriendlyName $diskName
139+
$partition = $volume | Get-Partition
140+
$maxSize = ($partition | Get-PartitionSupportedSize).SizeMax
141+
Resize-Partition -InputObject $partition -Size $maxSize
142+
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+
![Azure Local storage](./img/localbox_storage_01.png)
157+
158+
You should also see updated values in the Azure Portal:
159+
160+
![Azure Local storage](./img/localbox_storage_02.png)
161+
162+
### Step 5: Configure the Environment
90163

91164
VM image:
92165
1. In the Azure Portal, navigate to your **Azure Local** instance
@@ -131,7 +204,7 @@ Role assignments:
131204
- 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:
132205
![Create role assignment](./img/add_rbac_06.jpg)
133206

134-
### Step 5: Test the Environment
207+
### Step 6: Test the Environment
135208
Once deployed:
136209
- Follow Challenge 6 walkthrough for lab exercises verification
137210

222 KB
Loading
149 KB
Loading

0 commit comments

Comments
 (0)