How to reset Azure ARM VM credentials

Just a quick tip for today. If you need to reset the administrative credentials of your Virtual Machine running ARM (IaaS v2), use one of the two solutions below:

Using Powershell cmdlets:

Download from:

PS C:\> Login-AzureRmAccount
PS C:\> Set-AzureRmVMAccessExtension -ResourceGroupName RESOURCE_GROUP_NAME -Name HOSTNAME -VMName VM_NAME -UserName USER -Password PASSWORD

Using the CLI:

Download from:

> azure login
> azure config mode arm
> azure vm reset-access -g RESORCE_GROUP_NAME -n VM_NAME -u USER -p PASSWORD

That’s it! You should be able to login to your VM now.

Leave a Reply

Your email address will not be published. Required fields are marked *