This article describes how to reset lost local admin password for FortiWeb-VM in Azure.
Scope
FortiWeb-VM Azure.
Solution
In the initial FortiWeb-VM Azure deployment, an admin account is created in deployment basic settings and later is used to access FortiWeb GUI and CLI. By default, there is also a local ‘admin’ account that comes with a firmware image.
The local default admin account password may or may not been changed in the initial deployment or it was changed and lost by the user.
To reset local ‘admin’ password, access the FortiWeb-VM Azure serial console.
Requirement:
Boot diagnostic must be enabled for the VM:
Navigate to Home > Virtual machines > ‘VM-name‘ > Boot Diagnostic > Settings and enable with managed storage account.
Navigate to Home > Virtual machines > ‘VM-name‘ > Serial Console.
Login with the working admin account and apply the following CLI command to reset the local admin password.
FortiWeb # config system admin FortiWeb (admin) # edit admin FortiWeb (admin) # set password F0rt1n3t!@#$ Please enter the new password again: F0rt1n3t!@#$ FortiWeb (admin) # end