Last updated on: 2024-04-19 09:21:35.

Reset BIG-IP VE password in Azure

In the Azure portal, there is an option to reset the password for your virtual machine.

You cannot use this option to reset the password for BIG-IP VE.

../_images/azure_password1.png

Instead, to reset the password for an account that has access to BIG-IP VE, complete the following steps.

Before you begin, note the name of the admin user whose account you want to reset. If you used an SSH key when you created the instance, you can use the admin account to access BIG-IP VE.

  1. In the Azure portal, click Virtual Machines.

  2. Filter the list to find your virtual machine and select it.

  3. On the Virtual machine blade, click Extensions.

    ../_images/azure_password2.png

  4. Click Add.

  5. Click Custom Script for Linux and then click Create.

  6. In the Command field, type tmsh modify auth user <username> password <password>.

  7. Click OK.

The extension appears in the list. When it is complete, the status changes to Provisioning succeeded.

You can now log into BIG-IP VE by using this username and password.

Reset the password without using the portal

You can also reset the password without accessing the Azure portal by following these steps.

  1. Install the Azure CLI.

  2. Open a command prompt and type az login. Follow the instructions to authenticate.

  3. Create a new text file with the .json extension.

  4. In the file, paste this content:

    {
        "commandToExecute": "tmsh modify auth user <user> password <password>"
    }
    
  5. Replace <user> and <password> with the admin username and new password and save the file.

  6. At the command prompt, navigate to the directory where your json file is saved.

  7. Type this command, where <vm_name> is the name of your virtual machine, <resource_group> is the name of the resource group, and myfile is the name of your .json file.

    az vm extension set --name CustomScript --publisher Microsoft.Azure.Extensions --version 2.0 --vm-name <vm_name> --resource-group <resource_group> --protected-settings ./myfile.json
    

When the command is complete, text similar to the following is displayed:

{
  "autoUpgradeMinorVersion": true,
  "forceUpdateTag": null,
  "id": "/subscriptions/12345-12345-12345-12-123-12345/resourceGroups/resource_group/providers/Microsoft.Compute/virtualMachines/VM/extensions/CustomScript",
  "instanceView": null,
  "location": "westus",
  "name": "CustomScript",
  "protectedSettings": null,
  "provisioningState": "Succeeded",
  "publisher": "Microsoft.Azure.Extensions",
  "resourceGroup": "resource_group",
  "settings": null,
  "tags": null,
  "type": "Microsoft.Compute/virtualMachines/extensions",
  "typeHandlerVersion": "2.0",
  "virtualMachineExtensionType": "CustomScript"
}

The password is changed to the value in the .json file.