Cloud Computing

How to Use the Azure BGInfo Extension on a Windows Server 2012 Virtual Machine

Microsoft has recently updated Windows Azure to include a new feature, the VM agent, which allows Microsoft and third parties to provide extensions that enhance the functionality of VMs. So far there is only one extension provided by Microsoft, BGInfo from the SysInternals toolkit, which displays useful information about the VM on the desktop.

In this Ask the Admin, I’ll show you how to make sure the VM agent gets installed and how to enable the BGInfo extension.

Install the VM Agent in an Azure Virtual Machine

The VM agent must be installed when a VM is created. Microsoft plans to release an installer for the agent at a later date, so that it can be added to existing VMs. When using the Quick Create option in the Azure management portal to create a new VM, the VM agent is installed by default. If you choose to install a VM from the gallery, you have the option to omit the VM agent. For more information on how to deploy Windows Server 2012 on Azure, see “Deploy Windows Server 2012 in an Azure Virtual Machine” on Petri IT Knowledgebase.

Enable the BGInfo Extension

Once you have a server running in Azure with the VM agent installed, you need to enable any extensions that you want to add to the VM using PowerShell. For more information on how to use PowerShell to manage your Windows Azure subscription, see “How to Setup Windows Azure PowerShell Management.”

Sponsored Content

Read the Best Personal and Business Tech without Ads

Staying updated on what is happening in the technology sector is important to your career and your personal life but ads can make reading news, distracting. With Thurrott Premium, you can enjoy the best coverage in tech without the annoying ads.

  • Go to the Start screen in Windows 8, type powershell, and making sure that Windows PowerShell is selected in the search results, and press CTRL+SHIFT+ENTER to start the console with administrative privileges. Enter credentials or give consent if prompted.
  • In the PowerShell console, connect to your Azure subscription. For more information on how to get your Azure subscription name and storage account information, see “Use PowerShell to Create a New Virtual Machine in Windows Azure Running Server 2012 R2.” To connect to my Azure subscription, I’m going to run the following command: Set-AzureSubscription “Pay-As-You-Go” -CurrentStorageAccount portalvhdsxgwgzn2ml54p5 and press Enter. You should replace the subscription and storage account details as appropriate.
  • Now type Get-AzureVM -ServiceName ‘BGInfotest2’ -Name ‘BGInfotest2’ | Set-AzureVMBGInfoExtension -ReferenceName ‘BGInfo’ | Update-AzureVM and press Enter. Make sure that you replace BGInfotest2 with the cloud service name and name of the VM on which you want to enable the extension.
  • Once the command has completed, restart the VM from the Azure management portal.
The BGInfo extension for Azure on Windows Server 2012 R2
The BGInfo extension for Azure on Windows Server 2012 R2.

 

  • To disable the BGInfo extension, run the following PowerShell command, substituting the cloud service name and VM name as appropriate, and restart the VM from the Azure management portal: Get-AzureVM -ServiceName ‘BGInfotest2’ -Name ‘BGInfotest2’ | Set-AzureVMBGInfoExtension -Disable -ReferenceName ‘BGInfo’ | Update-AzureVM

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (0)

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.

Download this eBook!

External Sharing and Guest User Access in Microsoft 365 and Teams

his eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure. The eBook will also outline some of the major decision points across four general-purpose guest access policy scenarios for how an organization can set this up with standard licensing.

Download Now

Sponsored By