To completely delete and retire an old virtual machine (VM) in Azure, follow these steps:
- Sign in to the Azure portal: Go to the Azure portal.
- Navigate to Virtual Machines: In the left-hand menu, select Virtual Machines to view your list of VMs.
- Select the VM to delete: Find and click on the VM you want to delete.
- Delete the VM: In the VM's menu, select Delete. You will be prompted to confirm the deletion.
- Confirm deletion: Click Yes to confirm that you want to delete the VM.
Note that when you delete a VM, it may not automatically delete associated resources like networking and disk resources unless specified. Make sure to check the settings if you want to delete those as well.
If you want to avoid incurring costs from any associated resources, ensure that you also delete or manage those resources accordingly.
References: