When managing virtual machines in Azure, connectivity issues can sometimes arise that prevent you from accessing your VMs through Remote Desktop (for Windows) or SSH (for Linux). Rather than rebuilding your entire VM, Azure provides a targeted solution called “Reset Configuration Only” to help restore access without affecting your data.
Table of Contents
Azure VM Reset Configuration Only
This article will discuss configuring an Azure virtual machine reset using Azure Portal and PowerShell. Let’s discuss each approach individually.
Approach-1 Using Azure Portal
To configure the Azure VM Reset Configuration Only option, follow the below steps.
1. To do this, select your VM from the Azure portal, and from the left menu from the Support + troubleshooting section, select the “Reset password” button

2. The window below will now open. Select the mode “Reset configuration only” and then click the “Update” button.

Approach-2 Using PowerShell
You can use the below PowerShell script to reset the configuration of your virtual machine.
$MyResourceGroup = "<Mention your Resource group name>"
$MyVmName = "<Mention your VM name>"
$VMAccessname = "<Mention your VM access name>"
$MyLocation = "<Mention your VM Location>"
Set-AzVMAccessExtension -ResourceGroupName $MyResourceGroup -VMName $MyVmName -Name $VMAccessname -Location $MyLocation -typeHandlerVersion "2.0" -ForceRerunFor an Example, let us consider the virtual machine named AzurelessonsNewVM. We can execute the PowerShell script below for this purpose.
$MyResourceGroup = "Testing"
$MyVmName = "AzurelessonsNewVM"
$VMAccessname = "AzurelessonsNewVM"
$MyLocation = "centralus"
Set-AzVMAccessExtension -ResourceGroupName $MyResourceGroup -VMName $MyVmName -Name $VMAccessname -Location $MyLocation -typeHandlerVersion "2.0" After executing the above script, I got the expected output, which is shown in the screenshot below.

You may also like the following articles below
Wrapping Up
The “Reset Configuration Only” option is a troubleshooting feature in the Azure portal that allows you to reset Remote Desktop Services configurations on Windows VMs or SSH configurations on Linux VMs. This targeted approach fixes connection settings without changing your data, applications, or VM configurations.
When you select “Reset Configuration Only,” Azure deploys the VM Access extension to reconfigure the connection service while preserving all your data and applications.

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
