Azure VM Agent breaks your server

If you new up a VM in Azure, the integration components and VM Agent  are already installed, and they work fine. If, however, you prepare a machine in Hyper-V and upload the VHD, you need to install the Integration Components for Windows 2012 or R2 (if your Guest is an earlier version of Windows, such as 2008 R2) . You may also want to add the VM agent to get the BGInfo and some other bits that normally come as standard on a “Made in Azure” VM.

The installer they point you to is:

WindowsAzureVmAgent.2.3.1198.670.rd_art_stable.140328-0941.fre.msi

Sadly, it has a problem. After you install it, many Roles and Features simply can’t be installed or uninstalled. In fact, attempts to install e.g. IIS result in a cycle of 3 or 4 failures and reboots. The box feels properly broken.

The fix is this registry file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{9148c98f-152c-44d3-a496-26350c475d74}\ChannelReferences]
"Count"=dword:00000004

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{9148c98f-152c-44d3-a496-26350c475d74}\ChannelReferences]
@="Microsoft-WindowsAzure-Diagnostics/GuestAgent"
"Id"=dword:00000010
"Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{9148c98f-152c-44d3-a496-26350c475d74}\ChannelReferences\1]
@="Microsoft-WindowsAzure-Diagnostics/Runtime"
"Id"=dword:00000011
"Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{9148c98f-152c-44d3-a496-26350c475d74}\ChannelReferences\2]
@="Microsoft-WindowsAzure-Diagnostics/Heartbeat"
"Id"=dword:00000012
"Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{9148c98f-152c-44d3-a496-26350c475d74}\ChannelReferences\3]
@="Microsoft-WindowsAzure-Diagnostics/Bootstrapper"
"Id"=dword:00000013
"Flags"=dword:00000000

Its a similar problem to this: http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/sp2-stalled-at-reverting-changes/416d843c-21c3-4477-a5e9-62e998526359

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s