Created on
10-26-2023
07:20 AM
Edited on
01-31-2025
12:51 AM
By
Anthony_E
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
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. If this option does not work, re-deploy the FortiGate VM in Azure.
Note: In a cluster, change the password on the primary unit.
Note: To change the password for the default 'admin' account automatically created after deployment: Login as another super_admin account(for example the one added by the deployer on the deployment phase), and then change the default admin account to the prof_admin profile. Set the new password, and then set it back to the super_admin profile. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.