Skip to content

Commit 6936243

Browse files
authored
Merge pull request #317 from janegilring/sovereign_cloud_updates
fix: VM creation instructions in Sovereign Cloud MicroHack
2 parents a684fb7 + 755e771 commit 6936243

6 files changed

Lines changed: 18 additions & 10 deletions

File tree

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

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,23 +124,26 @@ $pool = Get-StoragePool -FriendlyName "SU1_Pool"
124124
$freeSpace = ($pool.Size - $pool.AllocatedSize)
125125
$expandPerDisk = [math]::Floor($freeSpace / 2)
126126
127-
# Expand each UserStorage virtual disk
128-
foreach ($diskName in @("UserStorage_1", "UserStorage_2")) {
127+
# Expand each UserStorage_1 virtual disk
128+
foreach ($diskName in @("UserStorage_1")) {
129129
$vdisk = Get-VirtualDisk -FriendlyName $diskName
130130
$currentSize = $vdisk.Size
131131
$newSize = $currentSize + $expandPerDisk
132132
Write-Host "Expanding $diskName from $([math]::Round($currentSize/1GB)) GB to $([math]::Round($newSize/1GB)) GB..."
133133
Resize-VirtualDisk -FriendlyName $diskName -Size $newSize
134134
}
135135
136-
# Expand the partitions to use the new virtual disk space
137-
foreach ($diskName in @("UserStorage_1", "UserStorage_2")) {
136+
# Expand the partition to use the new virtual disk space
137+
foreach ($diskName in @("UserStorage_1")) {
138138
$volume = Get-Volume -FriendlyName $diskName
139139
$partition = $volume | Get-Partition
140140
$maxSize = ($partition | Get-PartitionSupportedSize).SizeMax
141141
Resize-Partition -InputObject $partition -Size $maxSize
142142
Write-Host "$diskName partition resized to $([math]::Round($maxSize/1GB)) GB"
143143
}
144+
145+
# Remove the UserStorage_2 virtual disk as we will only use UserStorage_1 for the labs
146+
Remove-VirtualDisk -FriendlyName UserStorage_2
144147
```
145148

146149
**2. Verify the new sizes:**
@@ -161,16 +164,21 @@ You should also see updated values in the Azure Portal:
161164

162165
### Step 5: Configure the Environment
163166

164-
VM image:
167+
#### VM image and storage paths
168+
165169
1. In the Azure Portal, navigate to your **Azure Local** instance
166170
2. Select **VM images** in the left menu
167171
3. Click **+ Add VM Image -> From Azure Marketplace** to start the VM image creation wizard
168172
![Create VM image](./img/add_vm_image_win_01.jpg)
169-
4. For the **Image to download** parameter, select **Windows Server 2025: Azure edition - Gen2**
170-
![Create VM image](./img/add_vm_image_win_02.jpg)
171-
5. Select **Review + create** and wait for the deployment to finish (on LocalBox, this takes approximately 2,5 hours due to use of nested VMs and a virtual router VM).
173+
4. For the **Image to download** parameter, select **[smalldisk] Windows Server 2025: Azure edition - Gen2**
174+
![Create VM image](./img/add_vm_image_win_02.png)
175+
5. For the **Storage path** parameter, select **Choose manually** and the **UserStorage1** storage path.
176+
6. Select **Review + create** and wait for the deployment to finish (on LocalBox, this takes approximately 2,5 hours due to use of nested VMs and a virtual router VM).
177+
7. To avoid an issue with image file copies when many VMs are created in parallel, delete the storage path **UserStorage2**
178+
![Create VM image](./img/add_vm_image_win_03.png)
179+
180+
#### Logical network
172181

173-
Logical network:
174182
1. In the Azure Portal, navigate to your **Azure Local** instance
175183
2. Select **Logical network** in the left menu
176184
3. Click **+ Create logical network** to start the creation wizard
75.6 KB
Loading
126 KB
Loading
-111 KB
Loading

03-Azure/01-03-Infrastructure/01_Sovereign_Cloud/walkthrough/challenge-06/solution-06.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ For background and conceptual reference, review the article [What is SSH Posture
177177

178178
![Azure Local](./images/localbox_02.jpg)
179179

180-
5. **Image**: Select an available gallery image (e.g., Windows Server 2025)
180+
5. **Image**: Select the available gallery image **2025-datacenter-azure-edition-smalldisk-01** (Windows Server 2025)
181181
6. **Virtual processor count**: 2
182182
7. **Memory (MB)**: 4096
183183

0 commit comments

Comments
 (0)