Install the Azure VM Agent in offline mode - Virtual Machines (2024)

  • Article

Applies to: ✔️ Windows VMs

The Azure Virtual Machine Agent (VM Agent) provides useful features, such as local administrator password reset and script pushing. This article shows you how to install the VM Agent for an offline Windows virtual machine (VM).

When to use the VM Agent in offline mode

Install the VM Agent in offline mode if the VM Agent isn't installed and you can't RDP to the VM.

If you can RDP to the VM, you only have to download and install the VM Agent manually.

How to install the VM Agent in offline mode

Use the following steps to install the VM Agent in offline mode.

Step 1: Attach the OS disk of the VM to another VM as a data disk

  1. Take a snapshot for the OS disk of the affected VM, create a disk from the snapshot, and then attach the disk to a troubleshoot VM. For more information, see Troubleshoot a Windows VM by attaching the OS disk to a recovery VM using the Azure portal. For the classic VM, delete the VM and keep the OS disk, and then attach the OS disk to the troubleshoot VM.

  2. Connect to the troubleshooter VM. Open Computer management > Disk management. Verify that the OS disk is online and that drive letters are assigned to the disk partitions.

Step 2: Modify the OS disk to install the Azure VM Agent

  1. Make a remote desktop connection to the troubleshooter VM.

  2. In the troubleshooter VM, browse to the OS disk that you attached, and then open the \windows\system32\config folder. Copy all of the files in this folder as a backup, in case a rollback is required.

  3. Start the Registry Editor (regedit.exe).

  4. Select the HKEY_LOCAL_MACHINE key. On the menu, select File > Load Hive:

    Install the Azure VM Agent in offline mode - Virtual Machines (1)

  5. Browse to the \windows\system32\config\SYSTEM folder on the OS disk that you attached. For the name of the hive, enter BROKENSYSTEM. The new registry hive is displayed under the HKEY_LOCAL_MACHINE key.

  6. If the attached OS disk has the VM agent installed, perform a backup of the current configuration. If it doesn't have VM agent installed, move to the next step.

    1. Rename the \windowsazure folder to \windowsazure.old.

    2. Export the following registries:

      • HKEY_LOCAL_MACHINE\BROKENSYSTEM\ControlSet001\Services\WindowsAzureGuestAgent
      • HKEY_LOCAL_MACHINE\BROKENSYSTEM\ControlSet001\Services\RdAgent
  7. Use the existing files on the troubleshooter VM as a repository for the VM Agent installation. Complete the following steps:

    1. From the troubleshooter VM, export the following subkeys in registry format (.reg):

      • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WindowsAzureGuestAgent

      • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\RdAgent

        Install the Azure VM Agent in offline mode - Virtual Machines (2)

    2. Edit the registry files. In each file, change the entry value SYSTEM to BROKENSYSTEM (as shown in the following images) and save the file. Remember the ImagePath of the current VM agent. We will need to copy the corresponding folder to the attached OS disk.

      Install the Azure VM Agent in offline mode - Virtual Machines (3)

    3. Import the registry files into the repository by double-clicking each registry file.

    4. Verify that the following subkeys are successfully imported into the BROKENSYSTEM hive:

      • WindowsAzureGuestAgent
      • RdAgent
    5. Copy the installation folder of the current VM Agent to the attached OS disk:

      1. On the OS disk that you attached, create a folder that's named WindowsAzure in the root path.

      2. Go to C:\WindowsAzure on the troubleshooter VM, and look for any folder that is named C:\WindowsAzure\GuestAgent_X.X.XXXX.XXX. Copy the GuestAgent folder that has latest version number from C:\WindowsAzure to the WindowsAzure folder in the attached OS disk. If you aren't sure which folder should be copied, copy all GuestAgent folders. The following image shows an example of the GuestAgent folder that is copied to the attached OS disk. If you can't find the GuestAgent folder, check for the imagePath of WindowsAzureGuestAgent registry subkey for the accurate path.

        Install the Azure VM Agent in offline mode - Virtual Machines (4)

  8. Select BROKENSYSTEM. From the menu, select File > Unload Hive​.

  9. Detach the OS disk, and then change the OS disk for the affected VM. For the classic VM, create a new VM by using the repaired OS disk.

  10. Access the VM. Notice that the RdAgent is running and the logs are being generated.

If you created the VM by using the Resource Manager deployment model, you're done.

Next steps

If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure feedback community.

Install the Azure VM Agent in offline mode - Virtual Machines (2024)
Top Articles
How to create a private blockchain: All You Need to Know
TSX Blue Chip Stocks
How Total Wine & More Became The Largest U.S. Wine Retailer
He's Baby Gronk. She's Livvy. He's got drip and she rizzed him up (and we've got it translated)
J Amore Love Net Worth
Find A Red Cross Blood Drive
Inexpensive Auto Body Repair Near Me
8636643427
Knox County 24 Hour List
Highest-Paying VMware Certifications of 2024: Invest in Your Future
Rescare Training Online
South Bend Weather Underground
Electric Toothbrush Feature Crossword
Cregslistlist
Lorain County Busted Mugshots
Goodwill Fairport
Getting Started With Python IDLE – Real Python
Gogoanime Bleach Tybw
5417873087
Directions To Closest Cvs
Cinemark University Mall Showtimes
Ups Drop Off Newton Ks
Cregslistlist
No Hard Feelings Showtimes Near Pullman Village Centre Cinemas
Virginia Tech named a top-20 public university in latest U.S. News & World Report 2024 Best Colleges report
Ff14 Sit Anywhere
Classy Spa Fort Walton Beach
How Sonny and Cher Went From TV's Power Couple to Bitter Exes
Bow Creek (U.S. National Park Service)
Huff Lakjer Funeral Home
What Time Does Sam's Club Gas Close Today
Savannah State University
America Cuevas Discord
The Cure Average Setlist
Cherry Gorilla aka Cherry Gorilla Glue Weed Strain Information | Leafly
21 Alive Weather Team
Ts Massage Fort Lauderdale
Brokensilenze Rupaul
Jin Wigs Thomaston Ga
Baird Funeral Home Wayland Ny Obituaries
Bfads 2022 Walmart
TamilMV Proxy List (Jan 2024) 1TamilMV Mirrors To Unblock
History of Lewiston | Lewiston, ME
Sierra At Tahoe Season Pass Costco
8 1944 1945 Jerome Weidman Playwright Skippy Adelman Old Photo Negative Lot 393A for Sale
Fort Carson Cif Phone Number
Webadvisor Niagara
Unverified | Crossword Clue Answers
Savage Foolsbaby
Accuradio Unblocked
How Much Is Gas At Flying J
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 5821

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.