Skip to content

VMSS Extension version may not match compare to TypeHandlerVersion  #11961

Description

@rayifu

Background:
I wanted to create the same environment to verify the production environment and created it.
I found may the issue.
But Not in a hurry. Slowly OK.
It may OmsAgentForLinux issue. I don't know where to ask for an issue.

Describe the bug

  • The installing extension may not parse version.
    • I choose version 1.11 by az-cli, but VMSS was installed 1.12.15 by waagent.
      [JohnSmith01@000001 ~]$ rpm -aq |grep -i oms
      omsagent-1.12.15-0.x86_64
      omsconfig-1.1.1-927.x86_64
      auoms-2.0.1-19.x86_64
      [JohnSmith01@000001 ~]$ 
      ##----
      AutoUpgradeMinorVersion    Name              Publisher                             TypeHandlerVersion
      ##--------------------------  ----------------  ------------------------------------  --------------------
      True                       OmsAgentForLinux  Microsoft.EnterpriseCloud.Monitoring  1.11
      
  • I guess that it is depends to Azure internal feature or program.

To Reproduce

  1. Set vmss extention
    az vmss extension set \
        --resource-group $vmssRG \
        --vmss-name $vmssName \
        --name OmsAgentForLinux \
        --publisher Microsoft.EnterpriseCloud.Monitoring \
        --settings "{'workspaceId':'xxxx'}" \
        --protected-settings "{'workspaceKey':'xxxxx'}" \
        --version 1.11
  2. Upgrade instance
    az vmss update-instances --instance-ids "*" --name $vmssName --resource-group $vmssRG
  3. Check OmsAgentForLinux version on VMSS (with login)
    rpm -aq |grep -i oms

Expected behavior

  • I expect that OmsAgentForLinux version can choose by --version on command of az vmss extention set.
  • But if the Extension TypeHandlerVersion don't select for OmsAgentForLinux version, then would you please teach me info.
  • I guess the issue may affect to not only VMSS and but also VM.

Environment summary

  • My PC

    • azure-cli version: 2.0.79
    • Shell type: Bash
    • Excute on: Ubuntu 18.04.3 LTS on WSL
    • OS: Microsoft Windows 10
  • VMSS

    • OS: RHEL 7.6

Additional context
None.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions