Skip to content

Commit 69ad06c

Browse files
Merge pull request #277465 from LouisBerner/v-loberner-ado-259642-resize-a-cluster-pinned-vm
Added 'Resize VM' section and links + Acrolinx.
2 parents 1523d19 + e2ff8f8 commit 69ad06c

File tree

2 files changed

+42
-12
lines changed

2 files changed

+42
-12
lines changed

articles/databox-online/azure-stack-edge-create-vm-with-custom-size.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: alkohli
77
ms.service: databox
88
ms.subservice: edge
99
ms.topic: how-to
10-
ms.date: 10/30/2023
10+
ms.date: 06/06/2024
1111
ms.author: alkohli
1212
# Customer intent: As an IT admin, I need to understand how to update a VM with custom number of cores, memory, and GPU count.
1313
---
@@ -56,10 +56,10 @@ Use the following steps to get custom VM sizes for Azure Stack Edge.
5656
1. Run the following command to update the **Custom VM size** with the `Cores` or `MemoryMb` values for a VM you deploy to your device.
5757

5858
Consider the following requirements and restrictions:
59-
- The `Name` for these sizes cannot be modified.
59+
- The `Name` for these sizes can't be modified.
6060
- `GpuCount` can only be a value compatible with the number of GPUs on your device, which is 1 or 2.
6161
- Make sure to modify the correct GPU custom size that corresponds with the GPU on your device.
62-
- Once a VM is deployed with a custom size, you cannot modify that custom size again. To make a change, you will have to remove that VM first.
62+
- Once a VM is deployed with a custom size, you can't modify that custom size again. To make a change, you'll have to remove that VM first.
6363
- Once an operation kicks off, wait at least five minutes before you deploy any other VMs or workloads; this command takes about 5 minutes to complete.
6464

6565
The following table shows default values for available custom SKUs.
@@ -77,7 +77,7 @@ Use the following steps to get custom VM sizes for Azure Stack Edge.
7777
Set-HcsVMCustomSizes -CustomVMSizesJson <string> [-JsonFormat]
7878
```
7979
80-
Here's example output where `Custom_NonGPU` is modified to have four cores and 4096 MiB of memory.
80+
Here's example output where `Custom_NonGPU` is modified to have four cores and 4,096 MiB of memory.
8181
8282
```Output
8383
[DBE-BNVGF33.microsoftdatabox.com]: PS>Set-HcsVMCustomSizes -CustomVMSizesJson "[{'Name':'Custom_NonGPU','Cores':4,'MemoryMb':4096},{'Name':'Custom_GPU_T4_v3','Cores':8,'MemoryMb':28672,'GpuCount':2}]"
@@ -91,10 +91,12 @@ Use the following steps to get custom VM sizes for Azure Stack Edge.
9191
Get-AzVmSize -Location dbelocal
9292
```
9393

94-
In Azure portal, the VM size dropdown will update in about five minutes with the new VM options you just created.
94+
In Azure portal, the VM size dropdown updates in about five minutes with the new VM options you created.
9595

9696
[![Screenshot of Azure portal dropdown menu with custom VM size.](./media/azure-stack-edge-create-vm-with-custom-size/azure-stack-edge-custom-vm-size.png)](./media/azure-stack-edge-create-vm-with-custom-size/azure-stack-edge-custom-vm-size.png#lightbox)
9797

98+
For more information about resizing a VM, see [Deploy VMs on your Azure Stack Edge device via PowerShell](azure-stack-edge-gpu-deploy-virtual-machine-powershell.md#resize-the-vm).
99+
98100
## Next steps
99101

100102
- [Create a VM](azure-stack-edge-gpu-virtual-machine-overview.md#create-a-vm).

articles/databox-online/azure-stack-edge-gpu-deploy-virtual-machine-powershell.md

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: alkohli
77
ms.service: databox
88
ms.subservice: edge
99
ms.topic: how-to
10-
ms.date: 07/27/2023
10+
ms.date: 06/06/2024
1111
ms.author: alkohli
1212
ms.custom: devx-track-azurepowershell, linux-related-content
1313
#Customer intent: As an IT admin, I need to understand how to create and manage virtual machines (VMs) on my Azure Stack Edge Pro device. I want to use APIs so that I can efficiently manage my VMs.
@@ -334,7 +334,7 @@ C:\AzCopy.exe cp "$VHDPath\$VHDFile" "$endPoint$ContainerName$StorageAccountSAS
334334

335335
## Create a managed disk from the VHD
336336

337-
You'll now create a managed disk from the uploaded VHD.
337+
Create a managed disk from the uploaded VHD.
338338

339339
### [Az](#tab/az)
340340

@@ -735,7 +735,7 @@ You can now use the VM image to create a VM and attach it to the virtual network
735735
$pass = ConvertTo-SecureString "<Password>" -AsPlainText -Force;
736736
$cred = New-Object System.Management.Automation.PSCredential("<Enter username>", $pass)
737737
```
738-
After you've created and powered up the VM, you'll use the preceding username and password to sign in to it.
738+
After you create and power up the VM, use the preceding username and password to sign in to it.
739739
740740
1. Set the parameters.
741741
@@ -853,7 +853,7 @@ $pass = ConvertTo-SecureString "<Password>" -AsPlainText -Force;
853853
$cred = New-Object System.Management.Automation.PSCredential("<Enter username>", $pass)
854854
```
855855

856-
After you've created and powered up the VM, you'll use the following username and password to sign in to it.
856+
After you create and power up the VM, use the following username and password to sign in to it.
857857

858858
```powershell
859859
$VirtualMachine = New-AzureRmVMConfig -VMName <VM name> -VMSize "Standard_D1_v2"
@@ -933,7 +933,6 @@ Get-AzureRmVM -ResourceGroupName <String> -Name <String>
933933

934934
---
935935

936-
937936
### Turn on the VM
938937

939938
To turn on a virtual machine that's running on your device, run the following cmdlet:
@@ -977,6 +976,37 @@ For more information about this cmdlet, see [Stop-AzureRmVM cmdlet](/powershell/
977976

978977
---
979978

979+
### Resize the VM
980+
981+
To resize an existing virtual machine, run the following cmdlets:
982+
983+
### [Az](#tab/az)
984+
985+
> [!IMPORTANT]
986+
> Before you resize it, stop the VM without the `-StayProvisioned` flag.
987+
988+
```powershell
989+
$vm = Get-AzVM [-Name] <String> [-ResourceGroupName] <String>
990+
991+
$vm.HardwareProfile.VmSize = <new size> - Example: "Standard_D3_v2"
992+
993+
$vm | Update-AzVM
994+
```
995+
996+
### [AzureRM](#tab/azure-rm)
997+
998+
> [!IMPORTANT]
999+
> Before you resize it, stop the VM without the `-StayProvisioned` flag.
1000+
1001+
```powershell
1002+
$vm = Get-AzureRmVM [-Name] <String> [-ResourceGroupName] <String>
1003+
1004+
$vm.HardwareProfile.VmSize = <new size> - Example: "Standard_D3_v2"
1005+
1006+
$vm | Update-AzureRmVM
1007+
```
1008+
---
1009+
9801010
### Add a data disk
9811011

9821012
If the workload requirements on your VM increase, you might need to add a data disk. To do so, run the following command:
@@ -998,8 +1028,6 @@ Update-AzureRmVM -ResourceGroupName "<Resource Group Name string>" -VM $VirtualM
9981028
```
9991029
---
10001030

1001-
1002-
10031031
### Delete the VM
10041032

10051033
To remove a virtual machine from your device, run the following cmdlet:

0 commit comments

Comments
 (0)