Azure virtual machine reset configuration

This article will discuss Azure virtual machine reset configuration using Azure Portal and PowerShell.

Azure virtual machine reset configuration [Azure Portal]

This step will reset the RDP configuration.

Step- 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

Azure virtual machine reset configuration

Step 2: Now that the below window will open, select the mode as “Reset configuration only” and then click the “Update” button.

azure reset linux vm password

Azure virtual machine reset configuration 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" -ForceRerun

You may also like following the articles below

Wrapping Up

This article discussed Azure virtual machine reset configuration using Azure Portal and PowerShell. Thanks for reading this article !!!