VmSize Class

Virtual Machine Size.

Inheritance
azure.ai.ml.entities._mixins.RestTranslatableMixin
VmSize

Constructor

VmSize(name: str | None = None, family: str | None = None, v_cp_us: int | None = None, gpus: int | None = None, os_vhd_size_mb: int | None = None, max_resource_volume_mb: int | None = None, memory_gb: float | None = None, low_priority_capable: bool | None = None, premium_io: bool | None = None, supported_compute_types: List[str] | None = None)

Parameters

Name Description
name

The virtual machine size name.

default value: None
family

The virtual machine size family name.

default value: None
v_cp_us

The number of vCPUs supported by the virtual machine size.

default value: None
gpus

The number of GPUs supported by the virtual machine size.

default value: None
os_vhd_size_mb

The OS VHD disk size, in MB, allowed by the virtual machine size.

default value: None
max_resource_volume_mb

The resource volume size, in MB, allowed by the virtual machine size.

default value: None
memory_gb

The amount of memory, in GB, supported by the virtual machine size.

default value: None
low_priority_capable

Specifies if the virtual machine size supports low priority VMs.

default value: None
premium_io

Specifies if the virtual machine size supports premium IO.

default value: None
estimated_vm_prices
Required

The estimated price information for using a VM.

supported_compute_types

Specifies the compute types supported by the virtual machine size.

default value: None

Methods

dump

Dump the virtual machine size content into a file in yaml format.

dump

Dump the virtual machine size content into a file in yaml format.

dump(dest: str | PathLike | IO, **kwargs: Any) -> None

Parameters

Name Description
dest
Required
Union[<xref:PathLike>, str, IO[AnyStr]]

The destination to receive this virtual machine size's content. Must be either a path to a local file, or an already-open file stream. If dest is a file path, a new file will be created, and an exception is raised if the file exists. If dest is an open file, the file will be written to directly, and an exception will be raised if the file is not writable.