To change the size of a standalone virtual machine, go to Virtual machines from the main menu, select the required virtual machine and open the Configure tab.
You can select one of the ready-made templates in the subscription.
You can only change the size of the virtual machine if the virtual machine is stopped.