diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py
index 3b737d879dc9..0d77bba89721 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py
@@ -283,6 +283,7 @@
OperatingSystemStateTypes,
IPVersion,
VirtualMachinePriorityTypes,
+ VirtualMachineEvictionPolicyTypes,
VirtualMachineScaleSetSkuScaleType,
RollingUpgradeStatusCode,
RollingUpgradeActionType,
@@ -440,6 +441,7 @@
'OperatingSystemStateTypes',
'IPVersion',
'VirtualMachinePriorityTypes',
+ 'VirtualMachineEvictionPolicyTypes',
'VirtualMachineScaleSetSkuScaleType',
'RollingUpgradeStatusCode',
'RollingUpgradeActionType',
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/compute_management_client_enums.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/compute_management_client_enums.py
index 1346ccd35f76..75913ce7124a 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/compute_management_client_enums.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/compute_management_client_enums.py
@@ -278,6 +278,12 @@ class VirtualMachinePriorityTypes(str, Enum):
low = "Low"
+class VirtualMachineEvictionPolicyTypes(str, Enum):
+
+ deallocate = "Deallocate"
+ delete = "Delete"
+
+
class VirtualMachineScaleSetSkuScaleType(str, Enum):
automatic = "Automatic"
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_profile.py
index bdb4ae6c5d27..5dbe58d412eb 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_profile.py
@@ -50,6 +50,11 @@ class VirtualMachineScaleSetVMProfile(Model):
values include: 'Regular', 'Low'
:type priority: str or
~azure.mgmt.compute.v2017_12_01.models.VirtualMachinePriorityTypes
+ :param eviction_policy: Specifies the eviction policy for virtual machines
+ in the low priority scale set.
Minimum api-version:
+ 2017-10-30-preview. Possible values include: 'Deallocate', 'Delete'
+ :type eviction_policy: str or
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineEvictionPolicyTypes
"""
_attribute_map = {
@@ -60,6 +65,7 @@ class VirtualMachineScaleSetVMProfile(Model):
'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'},
'license_type': {'key': 'licenseType', 'type': 'str'},
'priority': {'key': 'priority', 'type': 'str'},
+ 'eviction_policy': {'key': 'evictionPolicy', 'type': 'str'},
}
def __init__(self, **kwargs):
@@ -71,3 +77,4 @@ def __init__(self, **kwargs):
self.extension_profile = kwargs.get('extension_profile', None)
self.license_type = kwargs.get('license_type', None)
self.priority = kwargs.get('priority', None)
+ self.eviction_policy = kwargs.get('eviction_policy', None)
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_profile_py3.py
index fcc00ea650e7..a582eef1db3d 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_profile_py3.py
@@ -50,6 +50,11 @@ class VirtualMachineScaleSetVMProfile(Model):
values include: 'Regular', 'Low'
:type priority: str or
~azure.mgmt.compute.v2017_12_01.models.VirtualMachinePriorityTypes
+ :param eviction_policy: Specifies the eviction policy for virtual machines
+ in the low priority scale set.
Minimum api-version:
+ 2017-10-30-preview. Possible values include: 'Deallocate', 'Delete'
+ :type eviction_policy: str or
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineEvictionPolicyTypes
"""
_attribute_map = {
@@ -60,9 +65,10 @@ class VirtualMachineScaleSetVMProfile(Model):
'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'},
'license_type': {'key': 'licenseType', 'type': 'str'},
'priority': {'key': 'priority', 'type': 'str'},
+ 'eviction_policy': {'key': 'evictionPolicy', 'type': 'str'},
}
- def __init__(self, *, os_profile=None, storage_profile=None, network_profile=None, diagnostics_profile=None, extension_profile=None, license_type: str=None, priority=None, **kwargs) -> None:
+ def __init__(self, *, os_profile=None, storage_profile=None, network_profile=None, diagnostics_profile=None, extension_profile=None, license_type: str=None, priority=None, eviction_policy=None, **kwargs) -> None:
super(VirtualMachineScaleSetVMProfile, self).__init__(**kwargs)
self.os_profile = os_profile
self.storage_profile = storage_profile
@@ -71,3 +77,4 @@ def __init__(self, *, os_profile=None, storage_profile=None, network_profile=Non
self.extension_profile = extension_profile
self.license_type = license_type
self.priority = priority
+ self.eviction_policy = eviction_policy