Role Class

Describes a role on the cluster.

Inheritance
Role

Constructor

Role(*, name: Optional[str] = None, min_instance_count: Optional[int] = None, target_instance_count: Optional[int] = None, vm_group_name: Optional[str] = None, autoscale_configuration: Optional[azure.mgmt.hdinsight.models._models_py3.Autoscale] = None, hardware_profile: Optional[azure.mgmt.hdinsight.models._models_py3.HardwareProfile] = None, os_profile: Optional[azure.mgmt.hdinsight.models._models_py3.OsProfile] = None, virtual_network_profile: Optional[azure.mgmt.hdinsight.models._models_py3.VirtualNetworkProfile] = None, data_disks_groups: Optional[List[azure.mgmt.hdinsight.models._models_py3.DataDisksGroups]] = None, script_actions: Optional[List[azure.mgmt.hdinsight.models._models_py3.ScriptAction]] = None, encrypt_data_disks: Optional[bool] = False, **kwargs)

Parameters

name
str
Required

The name of the role.

min_instance_count
int
Required

The minimum instance count of the cluster.

target_instance_count
int
Required

The instance count of the cluster.

vm_group_name
str
Required

The name of the virtual machine group.

autoscale_configuration
Autoscale
Required

The autoscale configurations.

hardware_profile
HardwareProfile
Required

The hardware profile.

os_profile
OsProfile
Required

The operating system profile.

virtual_network_profile
VirtualNetworkProfile
Required

The virtual network profile.

data_disks_groups
list[DataDisksGroups]
Required

The data disks groups for the role.

script_actions
list[ScriptAction]
Required

The list of script actions on the role.

encrypt_data_disks
bool
Required

Indicates whether encrypt the data disks.