Skip to content

Conversation

@qwordy
Copy link
Member

@qwordy qwordy commented Dec 11, 2020

Description

Resolve #16160

New parameter in vm/vmss extension set

--enable-auto-upgrade
Indicate the extension should be automatically upgraded by the platform if there is a newer version of the extension available

Change --no-auto-upgrade to --no-auto-upgrade-minor-version to avoid confusion.

Usage statistics in 30 days:
592 invocations, vm extension with --no-auto-upgrade
113 invocations, vmss extension with --no-auto-upgrade
665640 invocations, vm extension
26701 invocations, vmss extension

Testing Guide

az vm/vmss extension set --enable-auto-upgrade true/false

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan
Copy link
Collaborator

yonzhan commented Dec 11, 2020

Compute

help='Name of the extension.', id_part=None)
c.argument('force_update', action='store_true', help='force to update even if the extension configuration has not changed.')
c.argument('extension_instance_name', extension_instance_name_type)
c.argument('enable_automatic_upgrade', options_list=['--enable-automatic-upgrade', '-a'], action='store_true', help='Indicate the extension should be automatically upgraded by the platform if there is a newer version of the extension available.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to disable it after it's enabled?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vm extension does not support update. We can set it again.

@qwordy qwordy changed the title [Compute] vm extension set: New parameter --enable-automatic-upgrade [Compute] vm/vmss extension set: New parameter --enable-auto-upgrade Dec 16, 2020
@qwordy qwordy changed the title [Compute] vm/vmss extension set: New parameter --enable-auto-upgrade [Compute] BREAKING CHANGE: vm/vmss extension set: New parameter --enable-auto-upgrade Dec 16, 2020
Copy link
Member

@yungezz yungezz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you pls share rationale behind the breaking change

@qwordy
Copy link
Member Author

qwordy commented Dec 28, 2020

The parameter names are confusing. So I give it a new name. Given the usage statistics, do you think we can make a breaking change? I can revert it if you are worry about the impact to users. @yungezz

@qwordy qwordy added this to the S181 milestone Dec 30, 2020
@qwordy qwordy changed the title [Compute] BREAKING CHANGE: vm/vmss extension set: New parameter --enable-auto-upgrade [Compute] vm/vmss extension set: New parameter --enable-auto-upgrade Jan 4, 2021
@qwordy
Copy link
Member Author

qwordy commented Jan 11, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@qwordy qwordy merged commit e032bdf into Azure:dev Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Compute] Request to Add "enableAutomaticUpgrade" flag for VMExtensions in CLI

5 participants