Microsoft Azure – VM Extensions are not installed

If you have a S2S VPN gateway connection between your on-premises and Microsoft Azure with a DNS server entry pointing to an on-premises DNS server you can experience the  issue that the VM extensions are not installed.

Extensions1

In the scenario you want to deploy a new VM in Azure, but the gateway connection between your on-premises and Microsoft Azure is not established, disconnected or otherwise interrupted. In the VM configuration wizard you will select to install the VM Agent and Microsoft Antimalware as the security extension.

Extensions2

The deployment completes successfully. If you check the dashboard of the VM or login using a RDP session, you will discover that the VM extensions BGInfo and Microsoft Antimalware are not installed.

Extensions3

To find out why the extensions are not installed check the WaAppAgent.log file under C:WindowsAzureLogs.

Extensions4

You will find several errors and warnings like the following ones.

[00000004] [01/07/2015 18:30:42.14] [ERROR] Retrieving CloudBlob Reference failed. Error: Microsoft.WindowsAzure.Storage.StorageException, Message: The remote name could not be resolved: ‘mystorage.blob.core.windows.net’

[00000004] [01/07/2015 18:31:04.37] [INFO]  Downloading version manifest for plugin Microsoft.Compute.BGInfo from http://rdfepirv2am2prdstr02.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.Compute_BGInfo_europewest_manifest.xml.
[00000004] [01/07/2015 18:31:04.37] [WARN]  Retrying Plugin Version Manifest download with CustomProxy
[00000004] [01/07/2015 18:31:16.39] [WARN]  Error in downloading version manifest for Microsoft.Compute.BGInfo from: http://rdfepirv2am2prdstr02.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.Compute_BGInfo_europewest_manifest.xml with exception: Manifest download error from http://rdfepirv2am2prdstr02.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.Compute_BGInfo_europewest_manifest.xml. Error: UnknownError. An exception occurred during a WebClient request..

That points you to your defined on-premises DNS server in the Azure Virtual Network settings. If your S2S VPN gateway connection between your on-premises and Microsoft Azure is not established the DNS server cannot be reached.

You do not need to redeploy the VMs! First make sure that the gateway connection is established. Stop your VMs and start them again. During the start phase the VM tries to install the extensions and the installation will not fail because the VM can reach its DNS server.

Extensions5

You can also check the WaAppAgent.log file again.

[00000012] [01/07/2015 18:53:05.78] [INFO]  Processing plugin Microsoft.Compute.BGInfo version 1.1, state: enabled, autoupgrade: True, isJson: False
[00000012] [01/07/2015 18:53:05.78] [INFO]  Plugin Microsoft.Compute.BGInfo 1.1 not found in cache.
[00000012] [01/07/2015 18:53:05.78] [INFO]  Starting download of plugin Microsoft.Compute.BGInfo from location: http://rdfepirv2am2prdstr02.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.Compute__BGInfo__1.1.
[00000012] [01/07/2015 18:53:05.83] [INFO]  Download finished for plugin Microsoft.Compute.BGInfo.
[00000012] [01/07/2015 18:53:05.83] [INFO]  Extracting plug-in zip file to folder. Zip file: C:PackagesPluginsMicrosoft.Compute.BGInfo1.1Microsoft.Compute.BGInfo_1.1.zip
[00000012] [01/07/2015 18:53:05.91] [INFO]  Xml manifest file C:PackagesPluginsMicrosoft.Compute.BGInfo1.1PluginManifest.xml found corresponding to the plugin Microsoft.Compute.BGInfo
[00000012] [01/07/2015 18:53:06.09] [INFO]  Successfully created folder C:PackagesPluginsMicrosoft.Compute.BGInfo1.1RuntimeSettings
[00000012] [01/07/2015 18:53:06.09] [INFO]  Successfully created folder C:PackagesPluginsMicrosoft.Compute.BGInfo1.1Status
[00000012] [01/07/2015 18:53:06.11] [INFO]  Successfully created folder C:WindowsAzureLogsPluginsMicrosoft.Compute.BGInfo1.1
[00000012] [01/07/2015 18:53:06.12] [INFO]  Install command of plugin Microsoft.Compute.BGInfo: C:PackagesPluginsMicrosoft.Compute.BGInfo1.1BGInfoLauncher.exe
[00000012] [01/07/2015 18:53:06.12] [INFO]  Beginning installation of plugin Microsoft.Compute.BGInfo 1.1.
[00000012] [01/07/2015 18:53:06.34] [INFO]  Waiting for command of plugin Microsoft.Compute.BGInfo to finish…
[00000012] [01/07/2015 18:53:09.63] [INFO]  Successfully installed plugin Microsoft.Compute.BGInfo 1.1.
[00000012] [01/07/2015 18:53:09.63] [INFO]  Plugin enabled (name: Microsoft.Compute.BGInfo, version: 1.1)., Code: 0

Facebooktwittergoogle_pluslinkedinmail

Leave a Reply