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

  • Article

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 when the VM Agent is not installed and you can't RDP to the VM.

If you can RDP to the VM, you just need 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. Confirm 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, 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. Browse to the \windows\system32\config\SOFTWARE folder on the OS disk that you attached. For the name of the hive software, enter BROKENSOFTWARE.

  7. If the Attached OS disk has the VM agent installed, perform a backup of the current configuration. If it does not 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
  8. 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. Confirm that the following two 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 named WindowsAzure in the root path.

      2. Go to C:\WindowsAzure on the troubleshooter VM, look for any folder with the name 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 are not 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 cannot 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)

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

  10. Select BROKENSOFTWARE. From the menu, select File > Unload Hive​.

  11. 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.

  12. 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.

Use the ProvisionGuestAgent property for classic VMs

Important

Classic VMs will be retired on September 1, 2023

If you use IaaS resources from ASM, please complete your migration by September 1, 2023. We encourage you to make the switch sooner to take advantage of the many feature enhancements in Azure Resource Manager.

For more information, see Migrate your IaaS resources to Azure Resource Manager by September 1, 2023.

If you created the VM by using the classic model, use the Azure PowerShell module to update the ProvisionGuestAgent property. The property informs Azure that the VM has the VM Agent installed.

To set the ProvisionGuestAgent property, run the following commands in Azure PowerShell:

$vm = Get-AzureVM –ServiceName <cloud service name> –Name <VM name>$vm.VM.ProvisionGuestAgent = $trueUpdate-AzureVM –Name <VM name> –VM $vm.VM –ServiceName <cloud service name>

Then run the Get-AzureVM command. Notice that the GuestAgentStatus property is now populated with data:

Get-AzureVM –ServiceName <cloud service name> –Name <VM name>GuestAgentStatus:Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus

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 community support.

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

FAQs

Install the Azure VM Agent in offline mode - Virtual Machines? ›

For a Windows VM, download the Windows VM Agent . msi file and install the VM Agent. For a Linux VM, you will install it from the github repository located at https://github.com/Azure/WALinuxAgent. For more information on how to install the VM Agent on Linux, see the Azure Linux VM Agent User Guide.

How to install Azure VM agent manually? ›

For a Windows VM, download the Windows VM Agent . msi file and install the VM Agent. For a Linux VM, you will install it from the github repository located at https://github.com/Azure/WALinuxAgent. For more information on how to install the VM Agent on Linux, see the Azure Linux VM Agent User Guide.

How do I download Azure VM to local machine? ›

Generate download URL :
  1. On the page for the VM, click Disks in the left menu.
  2. Select the operating system disk for the VM.
  3. On the page for the disk, select Disk Export from the left menu.
  4. The default expiration time of the URL is 3600 seconds (one hour). ...
  5. Click Generate URL.
Mar 17, 2022

How to fix Azure VM agent status not ready? ›

If the status of the agent is not ready, then you can try the following troubleshooting steps:
  1. Confirm that the Azure VM Agent service is installed. ...
  2. Check whether auto-update is working. ...
  3. Check whether the VM can connect to the Fabric Controller.
Mar 24, 2023

What does an Azure VM agent do? ›

The Microsoft Azure Windows VM Agent is a secure, lightweight process that manages virtual machine (VM) interaction with the Azure fabric controller. The Azure Windows VM Agent has a primary role in enabling and executing Azure virtual machine extensions.

How do I manually install agent? ›

Deploy the agent manually to a Windows computer
  1. Click Settings > All Settings in the menu bar.
  2. Under Product Specific Settings, click Agent & Remote Collector. ...
  3. Click Windows, and click Next.
  4. Click Install Manually, and click Next.
  5. Click Download . ...
  6. Copy the MSI file to the client machine, and run it.

How to check if Azure VM agent is running? ›

-Check if the VM agent is running on the virtual machine. You can do this by logging into the virtual machine and checking if the Windows Azure Guest Agent service is running. If it is not running, try starting the service manually.

How do I install Azure CLI on local machine? ›

In Windows, the 32-bit Azure CLI installs in C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2 and the 64-bit in C:\Program Files\Microsoft SDKs\Azure\CLI2 . In Linux, the Azure CLI is installed in /opt/az/ on Ubuntu and Debian, and in /lib64/az/ on CentOS Stream, RHEL and Azure Linux.

How do I map a local drive to Azure VM? ›

Map the Azure file share to a Windows drive
  1. In the Azure portal, navigate to the qsfileshare fileshare and select Connect.
  2. Select a drive letter and then Show script.
  3. Copy the script and paste it in Notepad.
  4. In the VM, open PowerShell and paste in the contents of the Notepad, then press enter to run the command.
May 13, 2024

How do I copy and paste from Azure VM to local machine? ›

To copy text from a VM to your local computer
  1. Highlight the text in the VM, and then press Ctrl+C two times to copy the text.
  2. On your local computer, click where you want to paste the text.
  3. Press Ctrl+V or right-click and select Paste.

How do I install Microsoft monitoring agent on Azure VM? ›

Installs the agent by using a Windows MSI installer for Windows 10 and Windows 11 clients. Use Azure Policy to automatically install the agent on Azure virtual machines and Azure Arc-enabled servers and automatically associate them with required DCRs. To send data across tenants, you must first enable Azure Lighthouse.

How do I manually update Azure DevOps agent? ›

Your Azure DevOps Server will now use the local files whenever the agents are updated. Each agent automatically updates itself when it runs a task that requires a newer version of the agent. But if you want to manually update some agents, right-click the pool, and then choose Update all agents.

How do I restart Azure agent service? ›

To restart the agent, press Ctrl+C to stop the agent, and then run run. cmd to restart it. If you are running the agent from PowerShell Core to execute Windows PowerShell tasks, your pipeline may fail with an error such as Error in TypeData "System. Security.

How to install agent in VM? ›

How to install the VM Agent in offline mode
  1. Step 1: Attach the OS disk of the VM to another VM as a data disk. 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. ...
  2. Step 2: Modify the OS disk to install the Azure VM Agent.
May 24, 2024

How does Azure agent work? ›

When your pipeline runs, the system begins one or more jobs. An agent is computing infrastructure with installed agent software that runs one job at a time. Azure Pipelines provides several different types of agents. Jobs can be run directly on the host machine of the agent or in a container.

What is an Azure Connected machine Agent? ›

The Azure Connected Machine agent enables you to manage your Windows and Linux machines hosted outside of Azure on your corporate network or other cloud providers. Warning. Only Connected Machine agent versions within the last 1 year are officially supported by the product group.

How do I manually update my Azure agent? ›

Your Azure DevOps Server will now use the local files whenever the agents are updated. Each agent automatically updates itself when it runs a task that requires a newer version of the agent. But if you want to manually update some agents, right-click the pool, and then choose Update all agents.

How to install VMware converter agent manually? ›

Manually copy the Converter Agent Installer, VMware-Converter-Agent.exe located at C:\Program Files (x86)\VMware\VMware vCenter Converter Standalone, from the source computer to the remote computer and install the Converter agent.

How do I install Azure self hosted agent? ›

Here's how you can do it:
  1. Open your web browser and log in to your Azure DevOps account.
  2. Navigate to your Azure DevOps project and click on Project settings in the left side of the page.
  3. Click on Agent Pools under Pipelines and click on Add pool.
  4. Select Pool-type as Self-hosted, give it a name and click on Create.
May 22, 2023

How do I manually install Ivanti agent? ›

Install the Agent Using the Installation Wizard
  1. On the Security Controls console, locate the STPlatformUpdater.exe file. ...
  2. Copy the .exe file to the desired target machines. ...
  3. Log on to the target machine using an administrator account.
  4. Double-click the file named STPlatformUpdater.exe.

Top Articles
10 Ways to Ask for Apartment Reviews and Encourage Feedback
Re: cannot buy skin with legend tokens
No Hard Feelings (2023) Tickets & Showtimes
Davita Internet
Restaurer Triple Vitrage
Craftsman M230 Lawn Mower Oil Change
Lifewitceee
Repentance (2 Corinthians 7:10) – West Palm Beach church of Christ
Craigslist Kennewick Pasco Richland
Walgreens Alma School And Dynamite
2022 Apple Trade P36
Select The Best Reagents For The Reaction Below.
Missing 2023 Showtimes Near Lucas Cinemas Albertville
Lonadine
How do you like playing as an antagonist? - Goonstation Forums
Snow Rider 3D Unblocked Wtf
Ou Class Nav
Salem Oregon Costco Gas Prices
Parent Resources - Padua Franciscan High School
Petco Vet Clinic Appointment
Hennens Chattanooga Dress Code
Closest Bj Near Me
We Discovered the Best Snow Cone Makers for Carnival-Worthy Desserts
Slim Thug’s Wealth and Wellness: A Journey Beyond Music
Keyn Car Shows
UCLA Study Abroad | International Education Office
Gen 50 Kjv
Motorcycle Blue Book Value Honda
The Powers Below Drop Rate
Greyson Alexander Thorn
What Is Opm1 Treas 310 Deposit
Bridgestone Tire Dealer Near Me
Puffin Asmr Leak
Plasma Donation Racine Wi
Grays Anatomy Wiki
October 19 Sunset
Roadtoutopiasweepstakes.con
The Ultimate Guide to Obtaining Bark in Conan Exiles: Tips and Tricks for the Best Results
Max 80 Orl
M3Gan Showtimes Near Cinemark North Hills And Xd
Seymour Johnson AFB | MilitaryINSTALLATIONS
SOC 100 ONL Syllabus
Hannibal Mo Craigslist Pets
Midsouthshooters Supply
Easy Pigs in a Blanket Recipe - Emmandi's Kitchen
Emily Tosta Butt
Gym Assistant Manager Salary
Dr Mayy Deadrick Paradise Valley
Ups Authorized Shipping Provider Price Photos
Aloha Kitchen Florence Menu
Mountainstar Mychart Login
Nkey rollover - Hitta bästa priset på Prisjakt
Latest Posts
Article information

Author: Prof. Nancy Dach

Last Updated:

Views: 6229

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Prof. Nancy Dach

Birthday: 1993-08-23

Address: 569 Waelchi Ports, South Blainebury, LA 11589

Phone: +9958996486049

Job: Sales Manager

Hobby: Web surfing, Scuba diving, Mountaineering, Writing, Sailing, Dance, Blacksmithing

Introduction: My name is Prof. Nancy Dach, I am a lively, joyous, courageous, lovely, tender, charming, open person who loves writing and wants to share my knowledge and understanding with you.