How to recover the local username created for the ELM in Azure and reset the password

How to recover the local username created for the ELM in Azure and reset the password

book

Article ID: CTX235499

calendar_today

Updated On:

Description

When you deploy an ELM into Azure, Azure requires that you do not enable the root account for external access.  Instead, you are required to specify a name and password for a non-administrative user.  If you do not write that username down, or if you lose it, it can be difficult to determine what it was.


Instructions

To recover the username:

You must be able to login to the web-based Management Console for the ELM and export logs.  The log export is a TGZ file which can be unpacked and examined with any archive unpacker.  

In the logs, look for ovf-env.xml.  This contains the initial configuration state of the ELM as deployed into Azure.  As long as you have not removed the original account and created another in its place, this will tell you the name of hte local account you initially specified:

<UserName>ELMAdmin</UserName>

The password will not be listed here as it is encrypted.


To reset the password:

You can use Azure CLI through the az extension in Powershell or the Cloud Shell to perform these steps. Azure Cloud Shell specific steps are listed below as it works directly in the browser.
  1. Select the ELM from the Azure Portal (portal.azure.com)
  2. Open the Cloud Shell from the top of the portal's toolbar. This will look like a command prompt icon.
  3. From the Cloud Shell toolbar, change the Environment from Powershell to Bash if it is not already selected.
  4. Run the following with the correct resource group, username, etc:

az vm user update \
  --resource-group myResourceGroup \
  --name myVM \
  --username azureuser \
  --password myNewPassword
 

Environment

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

Additional Information

Azure commands pulled from:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/vmaccess