Skip to content

Instantly share code, notes, and snippets.

@cinek810
Created March 24, 2018 13:03
Show Gist options
  • Save cinek810/b006709be25df3b40110953786ba611a to your computer and use it in GitHub Desktop.
Save cinek810/b006709be25df3b40110953786ba611a to your computer and use it in GitHub Desktop.
def resize_vm(cmd, resource_group_name, vm_name, size, no_wait=False):
vm = get_vm(cmd, resource_group_name, vm_name)
vm.hardware_profile.vm_size = size # pylint: disable=no-member
return set_vm(cmd, vm, no_wait)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment