LabVirtualMachineCreationParameterFragment Class

Properties for creating a virtual machine.

Inheritance
LabVirtualMachineCreationParameterFragment

Constructor

LabVirtualMachineCreationParameterFragment(*, name: Optional[str] = None, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, bulk_creation_parameters: Optional[azure.mgmt.devtestlabs.models._models_py3.BulkCreationParametersFragment] = None, notes: Optional[str] = None, owner_object_id: Optional[str] = None, owner_user_principal_name: Optional[str] = None, created_by_user_id: Optional[str] = None, created_by_user: Optional[str] = None, created_date: Optional[datetime.datetime] = None, compute_id: Optional[str] = None, custom_image_id: Optional[str] = None, os_type: Optional[str] = None, size: Optional[str] = None, user_name: Optional[str] = None, password: Optional[str] = None, ssh_key: Optional[str] = None, is_authentication_with_ssh_key: Optional[bool] = None, fqdn: Optional[str] = None, lab_subnet_name: Optional[str] = None, lab_virtual_network_id: Optional[str] = None, disallow_public_ip_address: Optional[bool] = None, artifacts: Optional[List[azure.mgmt.devtestlabs.models._models_py3.ArtifactInstallPropertiesFragment]] = None, artifact_deployment_status: Optional[azure.mgmt.devtestlabs.models._models_py3.ArtifactDeploymentStatusPropertiesFragment] = None, gallery_image_reference: Optional[azure.mgmt.devtestlabs.models._models_py3.GalleryImageReferenceFragment] = None, plan_id: Optional[str] = None, network_interface: Optional[azure.mgmt.devtestlabs.models._models_py3.NetworkInterfacePropertiesFragment] = None, expiration_date: Optional[datetime.datetime] = None, allow_claim: Optional[bool] = None, storage_type: Optional[str] = None, virtual_machine_creation_source: Optional[Union[str, azure.mgmt.devtestlabs.models._dev_test_labs_client_enums.VirtualMachineCreationSource]] = None, environment_id: Optional[str] = None, data_disk_parameters: Optional[List[azure.mgmt.devtestlabs.models._models_py3.DataDiskPropertiesFragment]] = None, schedule_parameters: Optional[List[azure.mgmt.devtestlabs.models._models_py3.ScheduleCreationParameterFragment]] = None, last_known_power_state: Optional[str] = None, **kwargs)

Parameters

name
str
Required

The name of the virtual machine or environment.

location
str
Required

The location of the new virtual machine or environment.

tags
dict[str, str]
Required

A set of tags. The tags of the resource.

bulk_creation_parameters
BulkCreationParametersFragment
Required

The number of virtual machine instances to create.

notes
str
Required

The notes of the virtual machine.

owner_object_id
str
Required

The object identifier of the owner of the virtual machine.

owner_user_principal_name
str
Required

The user principal name of the virtual machine owner.

created_by_user_id
str
Required

The object identifier of the creator of the virtual machine.

created_by_user
str
Required

The email address of creator of the virtual machine.

created_date
datetime
Required

The creation date of the virtual machine.

compute_id
str
Required

The resource identifier (Microsoft.Compute) of the virtual machine.

custom_image_id
str
Required

The custom image identifier of the virtual machine.

os_type
str
Required

The OS type of the virtual machine.

size
str
Required

The size of the virtual machine.

user_name
str
Required

The user name of the virtual machine.

password
str
Required

The password of the virtual machine administrator.

ssh_key
str
Required

The SSH key of the virtual machine administrator.

is_authentication_with_ssh_key
bool
Required

Indicates whether this virtual machine uses an SSH key for authentication.

fqdn
str
Required

The fully-qualified domain name of the virtual machine.

lab_subnet_name
str
Required

The lab subnet name of the virtual machine.

lab_virtual_network_id
str
Required

The lab virtual network identifier of the virtual machine.

disallow_public_ip_address
bool
Required

Indicates whether the virtual machine is to be created without a public IP address.

artifacts
list[ArtifactInstallPropertiesFragment]
Required

The artifacts to be installed on the virtual machine.

artifact_deployment_status
ArtifactDeploymentStatusPropertiesFragment
Required

The artifact deployment status for the virtual machine.

gallery_image_reference
GalleryImageReferenceFragment
Required

The Microsoft Azure Marketplace image reference of the virtual machine.

plan_id
str
Required

The id of the plan associated with the virtual machine image.

network_interface
NetworkInterfacePropertiesFragment
Required

The network interface properties.

expiration_date
datetime
Required

The expiration date for VM.

allow_claim
bool
Required

Indicates whether another user can take ownership of the virtual machine.

storage_type
str
Required

Storage type to use for virtual machine (i.e. Standard, Premium).

virtual_machine_creation_source
str or VirtualMachineCreationSource
Required

Tells source of creation of lab virtual machine. Output property only. Possible values include: "FromCustomImage", "FromGalleryImage", "FromSharedGalleryImage".

environment_id
str
Required

The resource ID of the environment that contains this virtual machine, if any.

data_disk_parameters
list[DataDiskPropertiesFragment]
Required

New or existing data disks to attach to the virtual machine after creation.

schedule_parameters
list[ScheduleCreationParameterFragment]
Required

Virtual Machine schedules to be created.

last_known_power_state
str
Required

Last known compute power state captured in DTL.