LabVirtualMachineCreationParameter Class
Properties for creating a virtual machine.
Constructor
LabVirtualMachineCreationParameter(*, name: str | None = None, location: str | None = None, tags: dict[str, str] | None = None, bulk_creation_parameters: _models.BulkCreationParameters | None = None, notes: str | None = None, owner_object_id: str = 'dynamicValue', owner_user_principal_name: str | None = None, created_date: datetime | None = None, custom_image_id: str | None = None, size: str | None = None, user_name: str | None = None, password: str | None = None, ssh_key: str | None = None, is_authentication_with_ssh_key: bool | None = None, lab_subnet_name: str | None = None, lab_virtual_network_id: str | None = None, disallow_public_ip_address: bool = False, artifacts: list['_models.ArtifactInstallProperties'] | None = None, gallery_image_reference: _models.GalleryImageReference | None = None, plan_id: str | None = None, network_interface: _models.NetworkInterfaceProperties | None = None, expiration_date: datetime | None = None, allow_claim: bool = False, storage_type: str = 'labStorageType', environment_id: str | None = None, data_disk_parameters: list['_models.DataDiskProperties'] | None = None, schedule_parameters: list['_models.ScheduleCreationParameter'] | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
name
|
The name of the virtual machine or environment. Default value: None
|
|
location
|
The location of the new virtual machine or environment. Default value: None
|
|
tags
|
The tags of the resource. Default value: None
|
|
bulk_creation_parameters
|
The number of virtual machine instances to create. Default value: None
|
|
notes
|
The notes of the virtual machine. Default value: None
|
|
owner_object_id
|
The object identifier of the owner of the virtual machine. Default value: dynamicValue
|
|
owner_user_principal_name
|
The user principal name of the virtual machine owner. Default value: None
|
|
created_date
|
The creation date of the virtual machine. Default value: None
|
|
custom_image_id
|
The custom image identifier of the virtual machine. Default value: None
|
|
size
|
The size of the virtual machine. Default value: None
|
|
user_name
|
The user name of the virtual machine. Default value: None
|
|
password
|
The password of the virtual machine administrator. Default value: None
|
|
ssh_key
|
The SSH key of the virtual machine administrator. Default value: None
|
|
is_authentication_with_ssh_key
|
Indicates whether this virtual machine uses an SSH key for authentication. Default value: None
|
|
lab_subnet_name
|
The lab subnet name of the virtual machine. Default value: None
|
|
lab_virtual_network_id
|
The lab virtual network identifier of the virtual machine. Default value: None
|
|
disallow_public_ip_address
|
Indicates whether the virtual machine is to be created without a public IP address. Default value: False
|
|
artifacts
|
The artifacts to be installed on the virtual machine. Default value: None
|
|
gallery_image_reference
|
The Microsoft Azure Marketplace image reference of the virtual machine. Default value: None
|
|
plan_id
|
The id of the plan associated with the virtual machine image. Default value: None
|
|
network_interface
|
The network interface properties. Default value: None
|
|
expiration_date
|
The expiration date for VM. Default value: None
|
|
allow_claim
|
Indicates whether another user can take ownership of the virtual machine. Default value: False
|
|
storage_type
|
Storage type to use for virtual machine (i.e. Standard, Premium). Default value: labStorageType
|
|
environment_id
|
The resource ID of the environment that contains this virtual machine, if any. Default value: None
|
|
data_disk_parameters
|
New or existing data disks to attach to the virtual machine after creation. Default value: None
|
|
schedule_parameters
|
Virtual Machine schedules to be created. Default value: None
|
Variables
| Name | Description |
|---|---|
|
name
|
The name of the virtual machine or environment. |
|
location
|
The location of the new virtual machine or environment. |
|
tags
|
The tags of the resource. |
|
bulk_creation_parameters
|
The number of virtual machine instances to create. |
|
notes
|
The notes of the virtual machine. |
|
owner_object_id
|
The object identifier of the owner of the virtual machine. |
|
owner_user_principal_name
|
The user principal name of the virtual machine owner. |
|
created_date
|
The creation date of the virtual machine. |
|
custom_image_id
|
The custom image identifier of the virtual machine. |
|
size
|
The size of the virtual machine. |
|
user_name
|
The user name of the virtual machine. |
|
password
|
The password of the virtual machine administrator. |
|
ssh_key
|
The SSH key of the virtual machine administrator. |
|
is_authentication_with_ssh_key
|
Indicates whether this virtual machine uses an SSH key for authentication. |
|
lab_subnet_name
|
The lab subnet name of the virtual machine. |
|
lab_virtual_network_id
|
The lab virtual network identifier of the virtual machine. |
|
disallow_public_ip_address
|
Indicates whether the virtual machine is to be created without a public IP address. |
|
artifacts
|
The artifacts to be installed on the virtual machine. |
|
gallery_image_reference
|
The Microsoft Azure Marketplace image reference of the virtual machine. |
|
plan_id
|
The id of the plan associated with the virtual machine image. |
|
network_interface
|
The network interface properties. |
|
expiration_date
|
The expiration date for VM. |
|
allow_claim
|
Indicates whether another user can take ownership of the virtual machine. |
|
storage_type
|
Storage type to use for virtual machine (i.e. Standard, Premium). |
|
environment_id
|
The resource ID of the environment that contains this virtual machine, if any. |
|
data_disk_parameters
|
New or existing data disks to attach to the virtual machine after creation. |
|
schedule_parameters
|
Virtual Machine schedules to be created. |