# AzureScaleInPolicy

Describes a scale-in policy for a virtual machine scale set.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**rules** | **List[str]** | Gets or sets the rules to be followed when scaling-in a virtual machine scale set. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Possible values are: &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; **Default** When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; **OldestVM** When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; **NewestVM** When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; | [optional] 
**force_deletion** | **bool** | Gets or sets this property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine scale set is being scaled-in.(Feature in Preview) | [optional] 

## Example

```python
from duplocloud_sdk.models.azure_scale_in_policy import AzureScaleInPolicy

# TODO update the JSON string below
json = "{}"
# create an instance of AzureScaleInPolicy from a JSON string
azure_scale_in_policy_instance = AzureScaleInPolicy.from_json(json)
# print the JSON string representation of the object
print(AzureScaleInPolicy.to_json())

# convert the object into a dict
azure_scale_in_policy_dict = azure_scale_in_policy_instance.to_dict()
# create an instance of AzureScaleInPolicy from a dict
azure_scale_in_policy_from_dict = AzureScaleInPolicy.from_dict(azure_scale_in_policy_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


