Hi there
in this article I’ll demonstrate how to reset the VM user password from Azure Portal.
Did you know that if you don’t even know the admin you can still reset a user password for a new user you define on this process?
YES you can!
If you enter any user name that is not present on the VM you’re trying to “reset” its password Azure extension will create this new user, will add this user to the local administrators group and set its password to not expire and allow you to gain remote access to the VM.
Resetting user’s password from Azure Portal






Resetting user’s password from PowerShell
$SubID = "<SUBSCRIPTION ID>" $RgName = "<RESOURCE GROUP NAME>" $VmName = "<VM NAME>" $Location = "<LOCATION>" Connect-AzAccount Select-AzSubscription -SubscriptionId $SubID Set-AzVMAccessExtension -ResourceGroupName $RgName -Location $Location -VMName $VmName -Credential (get-credential) -typeHandlerVersion "2.0" -Name VMAccessAgent
net user <enter> : allows you to check how many users are created on this VM
Event viewer \ security logs will keep all changes made by the Azure Extension. Check below



References
Thanks,