FortiGate Cloud
FortiGate Cloud provides cloud-based management for FortiGate devices.
lpizziniaco
Staff
Staff
Article Id 281052
Description This article describes how to effortlessly reset the password for an Azure FortiGate-VM using both the command line and the user-friendly Web GUI.
Scope Azure FortiGate-VM
Solution

The command described below is applicable to any VM defined in Azure, and it is equally effective for the FortiGate since, ultimately, the FortiGate on Azure is a VM.

 

To execute the command in the Azure Cloud Shell, click on the terminal icon in the top bar, and when the terminal is ready, enter the following command:

 

az vm user update -n {vm name} -g {resource group name} -u {username} -p {password}

 

Note that the command may take a short while to execute. Afterward, attempt to connect again.

 

Alternatively, the same operation can be performed using the Azure Web GUI.

Navigate to the resource group where the machine is defined, select the machine, and in the left column at the very bottom, there is a 'reset password' option. Selecting this option will open a form to fill, like the one in the picture below 

 
 
 

reset.png

 

Ensure the Reset Password option is chosen. Proceed to enter the admin username, set the new password, and confirm it in the subsequent text field. Select the 'Update' button, and subsequently, attempt to establish login into the VM.

This would help to reset the password.

 

Note:

In the case of a cluster, change the password on the primary unit.