This article will discuss Azure virtual machine reset configuration using Azure Portal and PowerShell.
Table of Contents
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
Step 2: Now that the below window will open, select the mode as “Reset configuration only” and then click the “Update” button.
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
This article discussed Azure virtual machine reset configuration using Azure Portal and PowerShell. Thanks for reading this article !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, 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.