In this blog post, we will learn how to reset a Microsoft Azure user password using the Azure CLI command line.
Azure CLI is a cross-platform command-line tool that allows us to manage Microsoft Azure using a set of commands that are broken down into modules for each Azure Service.
In this post, I will focus on the user management module (az ad user) and show you how I reset the password of an existing user account.
Az ad user
The command below will reset the password of a user and will not ask him to change it when he first log in to Azure.
az ad user update --id [email protected] --password password --force-change-password-next-login false