sticky
VM Agent and VM Extensions – Feedback, Issues, Questions

All replies

  • Is Microsoft Azure Powershell Commandlets included a part of the VM agent? Or an extension perhaps? I'm guessing that the Azure Service Runtime and Storage client .NET binaries are included.

    We find that our dev-ops/bootstrapping scripts would benefit if Azure Powershell commandlets were available. Typical use-case is downloading software components from the associated blob storage account.

    Tuesday, April 15, 2014 8:47 PM
  • I have used your last post to enable BGInfo on one of our existing VM without success.

    I have used the following steaps :

    * Install the msi

    * Set ProvisionGuestAgent

    $vm = get-azurevm -name $name -service $svc
    $vm.VM.ProvisionGuestAgent = $TRUE
    Update-AzureVM -name $name -service $svc -VM $vm.VM
    $vm = get-azurevm -name $name -service $svc
    $vm.VM.ProvisionGuestAgent

    (the last command displayed "True" as expected).

    * Set-AzureVMBGInfoExtension

    Get-AzureVM -ServiceName $svc -Name $name | Set-AzureVMBGInfoExtension | Update-AzureVM

    But if I check if the extension is enabled, by using Get-AzureVMBGInfoException, the commands displays a warning : "WARNING: The resource extension reference list is null or empty".

    And there is no BGInfo displayed on the VM upon login.

    Did I miss something ?

    Wednesday, April 16, 2014 9:40 AM
  • * Set-AzureVMBGInfoExtension

    Get-AzureVM -ServiceName $svc -Name $name | Set-AzureVMBGInfoExtension | Update-AzureVM

    I have also tried to run the commands line by line without success :

    $vm = Get-AzureVM -ServiceName $svc -Name $name
    Set-AzureVMBGInfoExtension -vm $vm.VM
    Get-AzureVMBGInfoExtension -vm $vm # Display BGInfo, seems OK
    Update-AzureVM -name $name -service $svc -vm $vm # OK, operation completed
    $vm = Get-AzureVM -ServiceName $svc -Name $name # get vm again to check is extension is enabled
    Get-AzureVMBGInfoExtension -vm $vm # WARNING: The resource extension reference list is null or empty.

    • Edited by Thomas B_ Wednesday, April 16, 2014 9:56 AM
    Wednesday, April 16, 2014 9:55 AM
  • Yes there is a custom script extension, take a look at the Set-AzureVMCustomScriptExtension cmdlet
    Wednesday, April 16, 2014 11:45 PM
  • Yes there is a custom script extension, take a look at the Set-AzureVMCustomScriptExtension cmdlet

    I don't see the point.

    When I set BGInfoExtension using Set-AzureVMBGInfoExtension, $vm.VM.ResourceExtensionReferences is set with the following options (note that these options disappear as soon as I update-azurevm) :

    ReferenceName                    : MyBGInfoExtension
    Publisher                        : Microsoft.Compute
    Name                             : BGInfo
    Version                          :
    ResourceExtensionParameterValues : {}
    State                            : Enable
    ExtensionData                    :

    Set-AzureVMCustomScriptExtension seems to allow to set extensions by hand, but I can't find what I should use when it prompt me for "ContainerName", etc.
    Thursday, April 17, 2014 8:31 AM
  • Azure PowerShell cmdlets can be downloaded from here : http://azure.microsoft.com/en-us/downloads/
    Sunday, April 20, 2014 7:02 PM
    Moderator
  • A couple of things :

    1. If you are logged into the VM while enabling BGinfo, you have to log off & log back in to get the desktop refreshed.

    2. If the extensions are added to VMs which are in an availability set, then the extensions don't get enabled. We are on working addressing this.

    Sunday, April 20, 2014 7:20 PM
    Moderator
  • Can you share an example for specifying extensions to be installed eg Chef/Puppet using "azure vm create*" ?
    Friday, May 16, 2014 9:27 PM
  • Do you have any advice for installing Azure Agent, where the installation process hangs on "Configuring Services"?   It worked fine on one Win2008-R2-SP1 system, but hangs on the second such system. Only known difference between the two is possibly difference in .NET Framework 4.0 being present/not present.

    Monday, May 26, 2014 1:57 PM
  • Have you addressed issue number 2 above yet?   I just today installed the Agent on an existing VM provisioned before the agent was available.   I set the proper item in the vm object and it does show that the agent is there and on the machine the agent processes are running.   But when I try an add the BGInfo extension it appears to add (i.e. no errors), but doesn't show on the ResourceExtensionStatusList of the vm object and the desktop background doesn't appear.   This VM is in an availability set.
    Saturday, May 31, 2014 5:44 PM
  • Powershell version 0.8.0 addresses the availability set issue.Azure PowerShell cmdlets can be downloaded from here : http://azure.microsoft.com/en-us/downloads/
    Wednesday, June 04, 2014 8:27 PM
    Moderator
  • try launching the msi from an elevated cmd prompt (instead of directly launching it). may be try it after rebooting the vm (which should clear any previously running instances)


    Wakkas

    Thursday, June 05, 2014 1:57 AM
  • I am currently provisioning several Azure VMs and I am also using CustomScriptExtensions to do modifications

    for some reason i get the following message 
    "Reached maximum number of retries to download plugin Microsoft.Compute.CustomScriptExtension"
    also the VM seems to be stuck in state "Running(Installing Extension)"

    I can connect to the VM via RDP 
    this reveals that the folder C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.0.3 is empty
    whereas the BGInfo Extension could be loaded correctly and is also working fine

    the same approach worked some days ago where i think the CustomScriptExtension was version 1.0.2 - can someone confirm this?

    what else could cause this issue?
    was there a recent release for 1.0.3 and maybe the issue be related to this?

    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

    Thursday, June 05, 2014 9:41 AM
  • also, he Remove-functions do not seem to work correctly

    Remove-AzureVMCustomScriptExtension
    Remove-AzureVMExtension -ExtensionName CustomScriptExtension -Publisher Microsoft.Compute

    the corresponding Get-fucntions still return the same results after running Remove-... and Update-AzureVM

    any feedback on this?
    how are they supposed to work?


    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

    Thursday, June 05, 2014 2:57 PM
  • Rebooting the VM should fix this. There was a platform issue which impacted the newer version. We've reverted to the older version until its fixed. Thanks for reporting.
    Friday, June 06, 2014 1:45 PM
    Moderator
  • If the goal is to uninstall the extension then it can be done by using the uninstall flag.

    Set-AzureVMCustomScriptExtension -Uninstall

    'Remove' removes the extension from the local VM object.

    Friday, June 06, 2014 1:47 PM
    Moderator
  • ok, so it was the -Uninstall flag that i was missing - thanks for clarification

    could you also elaborate what the "removes from the local object" actually means?
    after an Update-AzureVM i thought the local object is published to Azure? am I wrong here?

    Thanks,
    -gerhard


    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

    Tuesday, June 10, 2014 6:55 AM
  • I just tried the same situation today with the 0.8.3 versions of the powershell commands and I'm still not able to get any extension working.  I can confirm that the agent is running and the vm object has the correct information about the agent, but when I go to add the BGinfo extension, I get no error, but it does not get added to the Vm.
    Monday, June 23, 2014 8:48 PM
  • Where is there any information available on how to create a new VM Extension for Azure? Is there any public SDK or is it private for now?
    Wednesday, July 09, 2014 9:49 AM
  • I'm also interested in writing my own VM extensions but cannot find any information regarding development or the publishing process.

    Will Azure users be encouraged to develop their own VM extensions or is this information only provided to partner companies (e. g. Chef, PuppetLabs)?


    • Edited by mdvx1 Friday, July 18, 2014 9:58 PM
    Friday, July 18, 2014 9:57 PM
  • We've struggled with the same stuff, here are the one which can help you:

    http://msdn.microsoft.com/en-us/library/azure/dn647841.aspx

    Make sure that you the other resources section too ;-)

    By leveraging this stuff, we were able to deploy custom stuff via VM Agent technology to our VMs running in Azure.

    Thanks,

    Attila


    www.eyedea.hu

    Thursday, July 24, 2014 7:41 AM