Hello @Mels Tovmasyan ,
As @Andriy Bilous suggested, Azure doesn't support increasing the RAM & CPU dynamically. The changes only affect if the VM gets restarted. My recommendation steps include
- Using the Azure Portal
- Make sure to Turn off VM first
- Open the Azure portal.
- Open the page for the virtual machine.
- In the left menu, select Size.
- Pick a new size from the list of available sizes and then select Resize.
Note: If the virtual machine is currently running, changing its size will cause it to be restarted. Stopping the virtual machine may reveal additional sizes.
If the server downtime is applicable, the alternative option is to create a PowerShell script to automate the VM RAM increase/decrease process. Before the job run (or processing of the report), increase the RAM, post-process downgrade the RAM/CPU,
Please suggest if I can help you in this case. If the reply was helpful please don't forget to upvote and/or accept as the answer, thank you