The correct answer is to stop VM from the Azure portal.
Shutting down the machine from the OS is not enough, you will still be paying for the Azure VM compute resources (aka hardware allocation).
A is wrong ,, disconnecting wiull not stop the vm resources, B is wrong too... so between C and D ...
so when you stop it the IPs are still allocated and used ... unless its stop (its Azure’s Deallocated State) so shut down seems to make sense here
You should not be billed for virtual machine use while your VM is in the Stopped (deallocated) state
shutting down the server makes sense
To save costs on an unused Azure virtual machine running Windows 10, the best option is to select “Stop” for the virtual machine from the Azure portal. This action deallocates the compute resources and suspends billing for those resources until the virtual machine is started again.
Just read the doc proposed in the answer (non Microsoft) and stop saves you compute costs, shutdown from RDP shuts down the OS but not the compute costs. Don’t forget a large proportion of answers are. deliberately wrong - else MS would have shut down all these sort of sites
Shut down in the correct answer
https://learn.microsoft.com/en-us/azure/advisor/advisor-reference-cost-recommendations
Consider enabling autopause on Spark compute
Autopause releases and shuts down unused Compute resources after a set idle period of inactivity.
Right-size or shutdown underutilized virtual machine scale sets
In the answers to these tests I have always placed myself in this vision: there is a right answer and a more right one. Shutting down the VM saves money, but using stop in Azure Portal deallocates resources (public IP for example) and saves more. Here I take the stop in the portal.
https://learn.microsoft.com/en-us/answers/questions/574969/whats-the-difference-between-deallocated-and-stopp
So far googling a lot and also got from chatGPT a well answer: To save on costs for an unused Azure virtual machine that runs Windows 10, you should select "stop" for the virtual machine from the Azure portal.
Stopping the virtual machine from the Azure portal will deallocate the compute resources, which will stop the accrual of charges for the virtual machine.
Shutting down the virtual machine from a Remote Desktop session will not deallocate the compute resources and will continue to accrue charges for the virtual machine.
So, it is recommended to use the Azure portal to stop the virtual machine to save on costs.
Deallocating a virtual machine stops the billing for the compute resources associated with the virtual machine while retaining the configuration and data associated with it. Here are the steps to deallocate an Azure virtual machine:
Open the Azure portal and go to the Virtual Machines page.
Select the virtual machine that you want to deallocate.
Click on the Stop button in the top menu. This will stop the virtual machine and deallocate its resources.
Once the virtual machine is stopped, you can start it again by clicking on the Start button in the top menu.
By deallocating the virtual machine, you can avoid paying for the compute resources that are not being used. However, keep in mind that you will still be charged for any storage resources associated with the virtual machine, such as disks and images. To save on these costs as well, you can consider deleting the virtual machine altogether, but this will also delete all of the data associated with it.
Stop from Azure Portal.
The second method, and the important one to remember, is to go into the Azure Portal (or use the Azure CLI or Azure PowerShell) and use Azure to Stop the VM. Instead of just shutting down the Operating System, Azure will also deallocate the compute resources allocated for the VM. This releases the compute resources to be used for another customer within Microsoft Azure. This will cause Azure to no longer charge you for the compute resources, and Azure will report the status of the VM as being in a “Stopped (Deallocated)” state.
https://build5nines.com/properly-shutdown-azure-vm-to-save-money/
Shut down is the correct answer:
check this link: https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-opt-recommendations
The list of recommendations identifies usage inefficiencies or shows purchase recommendations that can help you save additional money. The totaled Potential yearly savings shows the total amount that you can save if you shut down or deallocate all of your VMs that meet recommendation rules. If you don't want to shut them down, you should consider resizing them to a less expensive VM SKU.
If you're unsure whether you can shut down an idle resource without causing chaos, you can first restrict access to the resource. Make sure the resource's role is restricted, too. Leave the resource up for a few weeks, and if nobody has connected to it or has complained, chances are the resource can be shut down safely.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Examiner
Highly Voted 2 years, 5 months agoGreg_Exam
Highly Voted 2 years, 5 months agoHov13
Most Recent 1 month agozswap
3 months, 3 weeks agoNoursBear
6 months, 1 week agoe3ddceb
6 months, 3 weeks agoKholio86
7 months ago3d1d88d
1 year, 1 month agoArmadilloIta
1 year, 2 months agoJohn198666
1 year, 4 months agoLuckybird
1 year, 8 months agorafacop
1 year, 9 months agoakramul
1 year, 10 months agoSean_n3
1 year, 11 months agoziggy1117
1 year, 11 months agoAlexKK
1 year, 11 months ago4pelos
1 year agoHov13
1 month agoRohit2023
1 year, 11 months ago