diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py
index f7c6a44da03b..872324397f71 100644
--- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py
+++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py
@@ -4254,6 +4254,10 @@ class VirtualMachineExtension(Resource):
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
+ :param enable_automatic_upgrade: Indicates whether the extension should be
+ automatically upgraded by the platform if there is a newer version of the
+ extension available.
+ :type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
@@ -4287,6 +4291,7 @@ class VirtualMachineExtension(Resource):
'virtual_machine_extension_type': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
@@ -4300,6 +4305,7 @@ def __init__(self, **kwargs):
self.virtual_machine_extension_type = kwargs.get('virtual_machine_extension_type', None)
self.type_handler_version = kwargs.get('type_handler_version', None)
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
+ self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
self.provisioning_state = None
@@ -4472,6 +4478,10 @@ class VirtualMachineExtensionUpdate(UpdateResource):
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
+ :param enable_automatic_upgrade: Indicates whether the extension should be
+ automatically upgraded by the platform if there is a newer version of the
+ extension available.
+ :type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
@@ -4487,6 +4497,7 @@ class VirtualMachineExtensionUpdate(UpdateResource):
'type': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
}
@@ -4498,6 +4509,7 @@ def __init__(self, **kwargs):
self.type = kwargs.get('type', None)
self.type_handler_version = kwargs.get('type_handler_version', None)
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
+ self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
@@ -4737,6 +4749,9 @@ class VirtualMachineInstanceView(Model):
:param extensions: The extensions information.
:type extensions:
list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineExtensionInstanceView]
+ :ivar vm_health: The health status for the VM.
+ :vartype vm_health:
+ ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
You can easily view the output of your console log.
@@ -4754,6 +4769,7 @@ class VirtualMachineInstanceView(Model):
"""
_validation = {
+ 'vm_health': {'readonly': True},
'assigned_host': {'readonly': True},
}
@@ -4769,6 +4785,7 @@ class VirtualMachineInstanceView(Model):
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
'disks': {'key': 'disks', 'type': '[DiskInstanceView]'},
'extensions': {'key': 'extensions', 'type': '[VirtualMachineExtensionInstanceView]'},
+ 'vm_health': {'key': 'vmHealth', 'type': 'VirtualMachineHealthStatus'},
'boot_diagnostics': {'key': 'bootDiagnostics', 'type': 'BootDiagnosticsInstanceView'},
'assigned_host': {'key': 'assignedHost', 'type': 'str'},
'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'},
@@ -4787,6 +4804,7 @@ def __init__(self, **kwargs):
self.maintenance_redeploy_status = kwargs.get('maintenance_redeploy_status', None)
self.disks = kwargs.get('disks', None)
self.extensions = kwargs.get('extensions', None)
+ self.vm_health = None
self.boot_diagnostics = kwargs.get('boot_diagnostics', None)
self.assigned_host = None
self.statuses = kwargs.get('statuses', None)
@@ -5057,6 +5075,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly):
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
+ :param enable_automatic_upgrade: Indicates whether the extension should be
+ automatically upgraded by the platform if there is a newer version of the
+ extension available.
+ :type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
@@ -5086,6 +5108,7 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly):
'type1': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
@@ -5101,6 +5124,7 @@ def __init__(self, **kwargs):
self.type1 = kwargs.get('type1', None)
self.type_handler_version = kwargs.get('type_handler_version', None)
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
+ self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
self.provisioning_state = None
@@ -5161,6 +5185,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly):
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
+ :param enable_automatic_upgrade: Indicates whether the extension should be
+ automatically upgraded by the platform if there is a newer version of the
+ extension available.
+ :type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
@@ -5191,6 +5219,7 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly):
'type1': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
@@ -5206,6 +5235,7 @@ def __init__(self, **kwargs):
self.type1 = kwargs.get('type1', None)
self.type_handler_version = kwargs.get('type_handler_version', None)
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
+ self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
self.provisioning_state = None
diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py
index 4516e6d813e6..964d29cc9586 100644
--- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py
+++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py
@@ -4254,6 +4254,10 @@ class VirtualMachineExtension(Resource):
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
+ :param enable_automatic_upgrade: Indicates whether the extension should be
+ automatically upgraded by the platform if there is a newer version of the
+ extension available.
+ :type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
@@ -4287,19 +4291,21 @@ class VirtualMachineExtension(Resource):
'virtual_machine_extension_type': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'},
}
- def __init__(self, *, location: str, tags=None, force_update_tag: str=None, publisher: str=None, virtual_machine_extension_type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, instance_view=None, **kwargs) -> None:
+ def __init__(self, *, location: str, tags=None, force_update_tag: str=None, publisher: str=None, virtual_machine_extension_type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, enable_automatic_upgrade: bool=None, settings=None, protected_settings=None, instance_view=None, **kwargs) -> None:
super(VirtualMachineExtension, self).__init__(location=location, tags=tags, **kwargs)
self.force_update_tag = force_update_tag
self.publisher = publisher
self.virtual_machine_extension_type = virtual_machine_extension_type
self.type_handler_version = type_handler_version
self.auto_upgrade_minor_version = auto_upgrade_minor_version
+ self.enable_automatic_upgrade = enable_automatic_upgrade
self.settings = settings
self.protected_settings = protected_settings
self.provisioning_state = None
@@ -4472,6 +4478,10 @@ class VirtualMachineExtensionUpdate(UpdateResource):
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
+ :param enable_automatic_upgrade: Indicates whether the extension should be
+ automatically upgraded by the platform if there is a newer version of the
+ extension available.
+ :type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
@@ -4487,17 +4497,19 @@ class VirtualMachineExtensionUpdate(UpdateResource):
'type': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
}
- def __init__(self, *, tags=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, **kwargs) -> None:
+ def __init__(self, *, tags=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, enable_automatic_upgrade: bool=None, settings=None, protected_settings=None, **kwargs) -> None:
super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs)
self.force_update_tag = force_update_tag
self.publisher = publisher
self.type = type
self.type_handler_version = type_handler_version
self.auto_upgrade_minor_version = auto_upgrade_minor_version
+ self.enable_automatic_upgrade = enable_automatic_upgrade
self.settings = settings
self.protected_settings = protected_settings
@@ -4737,6 +4749,9 @@ class VirtualMachineInstanceView(Model):
:param extensions: The extensions information.
:type extensions:
list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineExtensionInstanceView]
+ :ivar vm_health: The health status for the VM.
+ :vartype vm_health:
+ ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
You can easily view the output of your console log.
@@ -4754,6 +4769,7 @@ class VirtualMachineInstanceView(Model):
"""
_validation = {
+ 'vm_health': {'readonly': True},
'assigned_host': {'readonly': True},
}
@@ -4769,6 +4785,7 @@ class VirtualMachineInstanceView(Model):
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
'disks': {'key': 'disks', 'type': '[DiskInstanceView]'},
'extensions': {'key': 'extensions', 'type': '[VirtualMachineExtensionInstanceView]'},
+ 'vm_health': {'key': 'vmHealth', 'type': 'VirtualMachineHealthStatus'},
'boot_diagnostics': {'key': 'bootDiagnostics', 'type': 'BootDiagnosticsInstanceView'},
'assigned_host': {'key': 'assignedHost', 'type': 'str'},
'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'},
@@ -4787,6 +4804,7 @@ def __init__(self, *, platform_update_domain: int=None, platform_fault_domain: i
self.maintenance_redeploy_status = maintenance_redeploy_status
self.disks = disks
self.extensions = extensions
+ self.vm_health = None
self.boot_diagnostics = boot_diagnostics
self.assigned_host = None
self.statuses = statuses
@@ -5057,6 +5075,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly):
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
+ :param enable_automatic_upgrade: Indicates whether the extension should be
+ automatically upgraded by the platform if there is a newer version of the
+ extension available.
+ :type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
@@ -5086,13 +5108,14 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly):
'type1': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'},
}
- def __init__(self, *, name: str=None, force_update_tag: str=None, publisher: str=None, type1: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None:
+ def __init__(self, *, name: str=None, force_update_tag: str=None, publisher: str=None, type1: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, enable_automatic_upgrade: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None:
super(VirtualMachineScaleSetExtension, self).__init__(**kwargs)
self.name = name
self.type = None
@@ -5101,6 +5124,7 @@ def __init__(self, *, name: str=None, force_update_tag: str=None, publisher: str
self.type1 = type1
self.type_handler_version = type_handler_version
self.auto_upgrade_minor_version = auto_upgrade_minor_version
+ self.enable_automatic_upgrade = enable_automatic_upgrade
self.settings = settings
self.protected_settings = protected_settings
self.provisioning_state = None
@@ -5161,6 +5185,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly):
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
+ :param enable_automatic_upgrade: Indicates whether the extension should be
+ automatically upgraded by the platform if there is a newer version of the
+ extension available.
+ :type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
@@ -5191,13 +5219,14 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly):
'type1': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'},
}
- def __init__(self, *, force_update_tag: str=None, publisher: str=None, type1: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None:
+ def __init__(self, *, force_update_tag: str=None, publisher: str=None, type1: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, enable_automatic_upgrade: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None:
super(VirtualMachineScaleSetExtensionUpdate, self).__init__(**kwargs)
self.name = None
self.type = None
@@ -5206,6 +5235,7 @@ def __init__(self, *, force_update_tag: str=None, publisher: str=None, type1: st
self.type1 = type1
self.type_handler_version = type_handler_version
self.auto_upgrade_minor_version = auto_upgrade_minor_version
+ self.enable_automatic_upgrade = enable_automatic_upgrade
self.settings = settings
self.protected_settings = protected_settings
self.provisioning_state = None
diff --git a/sdk/compute/azure-mgmt-compute/setup.py b/sdk/compute/azure-mgmt-compute/setup.py
index cfcaa1edbaea..9c66a4d27b46 100644
--- a/sdk/compute/azure-mgmt-compute/setup.py
+++ b/sdk/compute/azure-mgmt-compute/setup.py
@@ -36,7 +36,7 @@
pass
# Version extraction inspired from 'requests'
-with open(os.path.join(package_folder_path, 'version.py')
+with open(os.path.join(package_folder_path, 'version.py')
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',