How to: Change the Size of a Windows Azure Virtual Machine

Microsoft Dynamics NAV 2013

You can change the size of a Windows Azure virtual machine by using either the Windows Azure Management Portal or PowerShell commands. The size of a virtual machine determines the number of CPU cores, the memory capacity, and the local file system size that is allocated to a running instance. For more information, see Virtual Machine and Cloud Service Sizes for Windows Azure.

For a virtual machine that runs Microsoft Dynamics NAV, we recommend that you choose the Small size.

To change the size of a virtual machine by using the Windows Azure Management Portal

  1. Sign in to the Windows Azure Management Portal.

  2. Choose VIRTUAL MACHINES, and then choose the virtual machine for which you want to change the size.

  3. Choose the CONFIGURE tab. In the VIRTUAL MACHINE SIZE drop-down box, select from the following sizes:

    • Extra Small (Shared core, 768 MB Memory)

    • Small (1 core, 1.75 GB Memory)

    • Medium (2 cores, 3.5 GB Memory)

    • Large (4 cores, 7 GB Memory)

    • Extra Large (8 cores, 14 GB Memory)

    • A6 (4 cores, 28 GB Memory)

    • A7 (8 cores, 56 GB Memory)

  4. Choose the SAVE command.

To change the size of a virtual machine by using a PowerShell script

  1. Create a PowerShell script with the following commands.

    Function HowTo-SetAzureVMSize{
             Get-AzureVM –ServiceName $ServiceName –Name $Name | 
                 Set-AzureVMSize $VMSize | 
    HowTo-SetAzureVMSize –ServiceName "<your-vm>" –VMSize "Small"
  2. Change the value of <your-vm> to the name of your virtual machine.

  3. Change the value of the VMSize parameter to the size that you want. The value must be one of the following:

    • ExtraSmall

    • Small

    • Medium

    • Large

    • ExtraLarge

    • A6

    • A7

  4. Save and run the script. For more information about how to run PowerShell scripts, see Running Scripts.

See Also