azure.mgmt.devtestlabs.models module

class azure.mgmt.devtestlabs.models.WeekDetails(weekdays=None, time=None)[source]

Bases: msrest.serialization.Model

Properties of a weekly schedule.

Parameters:
  • weekdays (list of str) – The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).
  • time (str) – The time of the day the schedule will occur.
class azure.mgmt.devtestlabs.models.DayDetails(time=None)[source]

Bases: msrest.serialization.Model

Properties of a daily schedule.

Parameters:time (str) – The time of day the schedule will occur.
class azure.mgmt.devtestlabs.models.HourDetails(minute=None)[source]

Bases: msrest.serialization.Model

Properties of an hourly schedule.

Parameters:minute (int) – Minutes of the hour the schedule will run.
class azure.mgmt.devtestlabs.models.NotificationSettings(status=None, time_in_minutes=None, webhook_url=None)[source]

Bases: msrest.serialization.Model

Notification settings for a schedule.

Parameters:
  • status (str or NotificationStatus) – If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values include: ‘Disabled’, ‘Enabled’
  • time_in_minutes (int) – Time in minutes before event at which notification will be sent.
  • webhook_url (str) – The webhook URL to which the notification will be sent.
class azure.mgmt.devtestlabs.models.Schedule(location=None, tags=None, status=None, task_type=None, weekly_recurrence=None, daily_recurrence=None, hourly_recurrence=None, time_zone_id=None, notification_settings=None, target_resource_id=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A schedule.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • created_date (datetime) – The creation date of the schedule.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • status (str or EnableStatus) – The status of the schedule (i.e. Enabled, Disabled). Possible values include: ‘Enabled’, ‘Disabled’
  • task_type (str) – The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
  • weekly_recurrence (WeekDetails) – If the schedule will occur only some days of the week, specify the weekly recurrence.
  • daily_recurrence (DayDetails) – If the schedule will occur once each day of the week, specify the daily recurrence.
  • hourly_recurrence (HourDetails) – If the schedule will occur multiple times a day, specify the hourly recurrence.
  • time_zone_id (str) – The time zone ID (e.g. Pacific Standard time).
  • notification_settings (NotificationSettings) – Notification settings.
  • target_resource_id (str) – The resource ID to which the schedule belongs
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.ApplicableSchedule(location=None, tags=None, lab_vms_shutdown=None, lab_vms_startup=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • lab_vms_shutdown (Schedule) – The auto-shutdown schedule, if one has been set at the lab or lab resource level.
  • lab_vms_startup (Schedule) – The auto-startup schedule, if one has been set at the lab or lab resource level.
class azure.mgmt.devtestlabs.models.WeekDetailsFragment(weekdays=None, time=None)[source]

Bases: msrest.serialization.Model

Properties of a weekly schedule.

Parameters:
  • weekdays (list of str) – The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).
  • time (str) – The time of the day the schedule will occur.
class azure.mgmt.devtestlabs.models.DayDetailsFragment(time=None)[source]

Bases: msrest.serialization.Model

Properties of a daily schedule.

Parameters:time (str) – The time of day the schedule will occur.
class azure.mgmt.devtestlabs.models.HourDetailsFragment(minute=None)[source]

Bases: msrest.serialization.Model

Properties of an hourly schedule.

Parameters:minute (int) – Minutes of the hour the schedule will run.
class azure.mgmt.devtestlabs.models.NotificationSettingsFragment(status=None, time_in_minutes=None, webhook_url=None)[source]

Bases: msrest.serialization.Model

Notification settings for a schedule.

Parameters:
  • status (str or NotificationStatus) – If notifications are enabled for this schedule (i.e. Enabled, Disabled). Possible values include: ‘Disabled’, ‘Enabled’
  • time_in_minutes (int) – Time in minutes before event at which notification will be sent.
  • webhook_url (str) – The webhook URL to which the notification will be sent.
class azure.mgmt.devtestlabs.models.ScheduleFragment(location=None, tags=None, status=None, task_type=None, weekly_recurrence=None, daily_recurrence=None, hourly_recurrence=None, time_zone_id=None, notification_settings=None, target_resource_id=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A schedule.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • status (str or EnableStatus) – The status of the schedule (i.e. Enabled, Disabled). Possible values include: ‘Enabled’, ‘Disabled’
  • task_type (str) – The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
  • weekly_recurrence (WeekDetailsFragment) – If the schedule will occur only some days of the week, specify the weekly recurrence.
  • daily_recurrence (DayDetailsFragment) – If the schedule will occur once each day of the week, specify the daily recurrence.
  • hourly_recurrence (HourDetailsFragment) – If the schedule will occur multiple times a day, specify the hourly recurrence.
  • time_zone_id (str) – The time zone ID (e.g. Pacific Standard time).
  • notification_settings (NotificationSettingsFragment) – Notification settings.
  • target_resource_id (str) – The resource ID to which the schedule belongs
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.ApplicableScheduleFragment(location=None, tags=None, lab_vms_shutdown=None, lab_vms_startup=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

Schedules applicable to a virtual machine. The schedules may have been defined on a VM or on lab level.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • lab_vms_shutdown (ScheduleFragment) – The auto-shutdown schedule, if one has been set at the lab or lab resource level.
  • lab_vms_startup (ScheduleFragment) – The auto-startup schedule, if one has been set at the lab or lab resource level.
class azure.mgmt.devtestlabs.models.ArtifactParameterProperties(name=None, value=None)[source]

Bases: msrest.serialization.Model

Properties of an artifact parameter.

Parameters:
  • name (str) – The name of the artifact parameter.
  • value (str) – The value of the artifact parameter.
class azure.mgmt.devtestlabs.models.ArtifactInstallProperties(artifact_id=None, parameters=None, status=None, deployment_status_message=None, vm_extension_status_message=None, install_time=None)[source]

Bases: msrest.serialization.Model

Properties of an artifact.

Parameters:
  • artifact_id (str) – The artifact’s identifier.
  • parameters (list of ArtifactParameterProperties) – The parameters of the artifact.
  • status (str) – The status of the artifact.
  • deployment_status_message (str) – The status message from the deployment.
  • vm_extension_status_message (str) – The status message from the virtual machine extension.
  • install_time (datetime) – The time that the artifact starts to install on the virtual machine.
class azure.mgmt.devtestlabs.models.ApplyArtifactsRequest(artifacts=None)[source]

Bases: msrest.serialization.Model

Request body for applying artifacts to a virtual machine.

Parameters:artifacts (list of ArtifactInstallProperties) – The list of artifacts to apply.
class azure.mgmt.devtestlabs.models.ParametersValueFileInfo(file_name=None, parameters_value_info=None)[source]

Bases: msrest.serialization.Model

A file containing a set of parameter values for an ARM template.

Parameters:
  • file_name (str) – File name.
  • parameters_value_info (object) – Contents of the file.
class azure.mgmt.devtestlabs.models.ArmTemplate(location=None, tags=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

An Azure Resource Manager template.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • display_name (str) – The display name of the ARM template.
  • description (str) – The description of the ARM template.
  • publisher (str) – The publisher of the ARM template.
  • icon (str) – The URI to the icon of the ARM template.
  • contents (object) – The contents of the ARM template.
  • created_date (datetime) – The creation date of the armTemplate.
  • parameters_value_files_info (list of ParametersValueFileInfo) – File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
class azure.mgmt.devtestlabs.models.ArmTemplateInfo(template=None, parameters=None)[source]

Bases: msrest.serialization.Model

Information about a generated ARM template.

Parameters:
  • template (object) – The template’s contents.
  • parameters (object) – The parameters of the ARM template.
class azure.mgmt.devtestlabs.models.ArmTemplateParameterProperties(name=None, value=None)[source]

Bases: msrest.serialization.Model

Properties of an Azure Resource Manager template parameter.

Parameters:
  • name (str) – The name of the template parameter.
  • value (str) – The value of the template parameter.
class azure.mgmt.devtestlabs.models.Artifact(location=None, tags=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

An artifact.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • title (str) – The artifact’s title.
  • description (str) – The artifact’s description.
  • publisher (str) – The artifact’s publisher.
  • file_path (str) – The file path to the artifact.
  • icon (str) – The URI to the artifact icon.
  • target_os_type (str) – The artifact’s target OS.
  • parameters (object) – The artifact’s parameters.
  • created_date (datetime) – The artifact’s creation date.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
class azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusProperties(deployment_status=None, artifacts_applied=None, total_artifacts=None)[source]

Bases: msrest.serialization.Model

Properties of an artifact deployment.

Parameters:
  • deployment_status (str) – The deployment status of the artifact.
  • artifacts_applied (int) – The total count of the artifacts that were successfully applied.
  • total_artifacts (int) – The total count of the artifacts that were tentatively applied.
class azure.mgmt.devtestlabs.models.ArtifactDeploymentStatusPropertiesFragment(deployment_status=None, artifacts_applied=None, total_artifacts=None)[source]

Bases: msrest.serialization.Model

Properties of an artifact deployment.

Parameters:
  • deployment_status (str) – The deployment status of the artifact.
  • artifacts_applied (int) – The total count of the artifacts that were successfully applied.
  • total_artifacts (int) – The total count of the artifacts that were tentatively applied.
class azure.mgmt.devtestlabs.models.ArtifactParameterPropertiesFragment(name=None, value=None)[source]

Bases: msrest.serialization.Model

Properties of an artifact parameter.

Parameters:
  • name (str) – The name of the artifact parameter.
  • value (str) – The value of the artifact parameter.
class azure.mgmt.devtestlabs.models.ArtifactInstallPropertiesFragment(artifact_id=None, parameters=None, status=None, deployment_status_message=None, vm_extension_status_message=None, install_time=None)[source]

Bases: msrest.serialization.Model

Properties of an artifact.

Parameters:
  • artifact_id (str) – The artifact’s identifier.
  • parameters (list of ArtifactParameterPropertiesFragment) – The parameters of the artifact.
  • status (str) – The status of the artifact.
  • deployment_status_message (str) – The status message from the deployment.
  • vm_extension_status_message (str) – The status message from the virtual machine extension.
  • install_time (datetime) – The time that the artifact starts to install on the virtual machine.
class azure.mgmt.devtestlabs.models.ArtifactSource(location=None, tags=None, display_name=None, uri=None, source_type=None, folder_path=None, arm_template_folder_path=None, branch_ref=None, security_token=None, status=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

Properties of an artifact source.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • created_date (datetime) – The artifact source’s creation date.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • display_name (str) – The artifact source’s display name.
  • uri (str) – The artifact source’s URI.
  • source_type (str or SourceControlType) – The artifact source’s type. Possible values include: ‘VsoGit’, ‘GitHub’
  • folder_path (str) – The folder containing artifacts.
  • arm_template_folder_path (str) – The folder containing Azure Resource Manager templates.
  • branch_ref (str) – The artifact source’s branch reference.
  • security_token (str) – The security token to authenticate to the artifact source.
  • status (str or EnableStatus) – Indicates if the artifact source is enabled (values: Enabled, Disabled). Possible values include: ‘Enabled’, ‘Disabled’
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.ArtifactSourceFragment(location=None, tags=None, display_name=None, uri=None, source_type=None, folder_path=None, arm_template_folder_path=None, branch_ref=None, security_token=None, status=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

Properties of an artifact source.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • display_name (str) – The artifact source’s display name.
  • uri (str) – The artifact source’s URI.
  • source_type (str or SourceControlType) – The artifact source’s type. Possible values include: ‘VsoGit’, ‘GitHub’
  • folder_path (str) – The folder containing artifacts.
  • arm_template_folder_path (str) – The folder containing Azure Resource Manager templates.
  • branch_ref (str) – The artifact source’s branch reference.
  • security_token (str) – The security token to authenticate to the artifact source.
  • status (str or EnableStatus) – Indicates if the artifact source is enabled (values: Enabled, Disabled). Possible values include: ‘Enabled’, ‘Disabled’
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.AttachDiskProperties(leased_by_lab_vm_id=None)[source]

Bases: msrest.serialization.Model

Properties of the disk to attach.

Parameters:leased_by_lab_vm_id (str) – The resource ID of the Lab virtual machine to which the disk is attached.
class azure.mgmt.devtestlabs.models.AttachNewDataDiskOptions(disk_size_gi_b=None, disk_name=None, disk_type=None)[source]

Bases: msrest.serialization.Model

Properties to attach new disk to the Virtual Machine.

Parameters:
  • disk_size_gi_b (int) – Size of the disk to be attached in GibiBytes.
  • disk_name (str) – The name of the disk to be attached.
  • disk_type (str or StorageType) – The storage type for the disk (i.e. Standard, Premium). Possible values include: ‘Standard’, ‘Premium’
class azure.mgmt.devtestlabs.models.BulkCreationParameters(instance_count=None)[source]

Bases: msrest.serialization.Model

Parameters for creating multiple virtual machines as a single action.

Parameters:instance_count (int) – The number of virtual machine instances to create.
class azure.mgmt.devtestlabs.models.ComputeDataDisk(name=None, disk_uri=None, managed_disk_id=None, disk_size_gi_b=None)[source]

Bases: msrest.serialization.Model

A data disks attached to a virtual machine.

Parameters:
  • name (str) – Gets data disk name.
  • disk_uri (str) – When backed by a blob, the URI of underlying blob.
  • managed_disk_id (str) – When backed by managed disk, this is the ID of the compute disk resource.
  • disk_size_gi_b (int) – Gets data disk size in GiB.
class azure.mgmt.devtestlabs.models.ComputeDataDiskFragment(name=None, disk_uri=None, managed_disk_id=None, disk_size_gi_b=None)[source]

Bases: msrest.serialization.Model

A data disks attached to a virtual machine.

Parameters:
  • name (str) – Gets data disk name.
  • disk_uri (str) – When backed by a blob, the URI of underlying blob.
  • managed_disk_id (str) – When backed by managed disk, this is the ID of the compute disk resource.
  • disk_size_gi_b (int) – Gets data disk size in GiB.
class azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatus(code=None, display_status=None, message=None)[source]

Bases: msrest.serialization.Model

Status information about a virtual machine.

Parameters:
  • code (str) – Gets the status Code.
  • display_status (str) – Gets the short localizable label for the status.
  • message (str) – Gets the message associated with the status.
class azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatusFragment(code=None, display_status=None, message=None)[source]

Bases: msrest.serialization.Model

Status information about a virtual machine.

Parameters:
  • code (str) – Gets the status Code.
  • display_status (str) – Gets the short localizable label for the status.
  • message (str) – Gets the message associated with the status.
class azure.mgmt.devtestlabs.models.ComputeVmProperties(statuses=None, os_type=None, vm_size=None, network_interface_id=None, os_disk_id=None, data_disk_ids=None, data_disks=None)[source]

Bases: msrest.serialization.Model

Properties of a virtual machine returned by the Microsoft.Compute API.

Parameters:
  • statuses (list of ComputeVmInstanceViewStatus) – Gets the statuses of the virtual machine.
  • os_type (str) – Gets the OS type of the virtual machine.
  • vm_size (str) – Gets the size of the virtual machine.
  • network_interface_id (str) – Gets the network interface ID of the virtual machine.
  • os_disk_id (str) – Gets OS disk blob uri for the virtual machine.
  • data_disk_ids (list of str) – Gets data disks blob uri for the virtual machine.
  • data_disks (list of ComputeDataDisk) – Gets all data disks attached to the virtual machine.
class azure.mgmt.devtestlabs.models.ComputeVmPropertiesFragment(statuses=None, os_type=None, vm_size=None, network_interface_id=None, os_disk_id=None, data_disk_ids=None, data_disks=None)[source]

Bases: msrest.serialization.Model

Properties of a virtual machine returned by the Microsoft.Compute API.

Parameters:
  • statuses (list of ComputeVmInstanceViewStatusFragment) – Gets the statuses of the virtual machine.
  • os_type (str) – Gets the OS type of the virtual machine.
  • vm_size (str) – Gets the size of the virtual machine.
  • network_interface_id (str) – Gets the network interface ID of the virtual machine.
  • os_disk_id (str) – Gets OS disk blob uri for the virtual machine.
  • data_disk_ids (list of str) – Gets data disks blob uri for the virtual machine.
  • data_disks (list of ComputeDataDiskFragment) – Gets all data disks attached to the virtual machine.
class azure.mgmt.devtestlabs.models.PercentageCostThresholdProperties(threshold_value=None)[source]

Bases: msrest.serialization.Model

Properties of a percentage cost threshold.

Parameters:threshold_value (float) – The cost threshold value.
class azure.mgmt.devtestlabs.models.CostThresholdProperties(threshold_id=None, percentage_threshold=None, display_on_chart=None, send_notification_when_exceeded=None, notification_sent=None)[source]

Bases: msrest.serialization.Model

Properties of a cost threshold item.

Parameters:
  • threshold_id (str) – The ID of the cost threshold item.
  • percentage_threshold (PercentageCostThresholdProperties) – The value of the percentage cost threshold.
  • display_on_chart (str or CostThresholdStatus) – Indicates whether this threshold will be displayed on cost charts. Possible values include: ‘Enabled’, ‘Disabled’
  • send_notification_when_exceeded (str or CostThresholdStatus) – Indicates whether notifications will be sent when this threshold is exceeded. Possible values include: ‘Enabled’, ‘Disabled’
  • notification_sent (str) – Indicates the datetime when notifications were last sent for this threshold.
class azure.mgmt.devtestlabs.models.WindowsOsInfo(windows_os_state=None)[source]

Bases: msrest.serialization.Model

Information about a Windows OS.

Parameters:windows_os_state (str or WindowsOsState) – The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied). Possible values include: ‘NonSysprepped’, ‘SysprepRequested’, ‘SysprepApplied’
class azure.mgmt.devtestlabs.models.LinuxOsInfo(linux_os_state=None)[source]

Bases: msrest.serialization.Model

Information about a Linux OS.

Parameters:linux_os_state (str or LinuxOsState) – The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). Possible values include: ‘NonDeprovisioned’, ‘DeprovisionRequested’, ‘DeprovisionApplied’
class azure.mgmt.devtestlabs.models.CustomImagePropertiesFromVm(source_vm_id=None, windows_os_info=None, linux_os_info=None)[source]

Bases: msrest.serialization.Model

Properties for creating a custom image from a virtual machine.

Parameters:
  • source_vm_id (str) – The source vm identifier.
  • windows_os_info (WindowsOsInfo) – The Windows OS information of the VM.
  • linux_os_info (LinuxOsInfo) – The Linux OS information of the VM.
class azure.mgmt.devtestlabs.models.CustomImagePropertiesCustom(os_type, image_name=None, sys_prep=None)[source]

Bases: msrest.serialization.Model

Properties for creating a custom image from a VHD.

Parameters:
  • image_name (str) – The image name.
  • sys_prep (bool) – Indicates whether sysprep has been run on the VHD.
  • os_type (str or CustomImageOsType) – The OS type of the custom image (i.e. Windows, Linux). Possible values include: ‘Windows’, ‘Linux’, ‘None’
class azure.mgmt.devtestlabs.models.CustomImage(location=None, tags=None, vm=None, vhd=None, description=None, author=None, managed_image_id=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A custom image.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • creation_date (datetime) – The creation date of the custom image.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • vm (CustomImagePropertiesFromVm) – The virtual machine from which the image is to be created.
  • vhd (CustomImagePropertiesCustom) – The VHD from which the image is to be created.
  • description (str) – The description of the custom image.
  • author (str) – The author of the custom image.
  • managed_image_id (str) – The Managed Image Id backing the custom image.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.DataDiskProperties(attach_new_data_disk_options=None, existing_lab_disk_id=None, host_caching=None)[source]

Bases: msrest.serialization.Model

Request body for adding a new or existing data disk to a virtual machine.

Parameters:
  • attach_new_data_disk_options (AttachNewDataDiskOptions) – Specifies options to attach a new disk to the virtual machine.
  • existing_lab_disk_id (str) – Specifies the existing lab disk id to attach to virtual machine.
  • host_caching (str or HostCachingOptions) – Caching option for a data disk (i.e. None, ReadOnly, ReadWrite). Possible values include: ‘None’, ‘ReadOnly’, ‘ReadWrite’
class azure.mgmt.devtestlabs.models.DetachDataDiskProperties(existing_lab_disk_id=None)[source]

Bases: msrest.serialization.Model

Request body for detaching data disk from a virtual machine.

Parameters:existing_lab_disk_id (str) – Specifies the disk resource ID to detach from virtual machine.
class azure.mgmt.devtestlabs.models.DetachDiskProperties(leased_by_lab_vm_id=None)[source]

Bases: msrest.serialization.Model

Properties of the disk to detach.

Parameters:leased_by_lab_vm_id (str) – The resource ID of the Lab VM to which the disk is attached.
class azure.mgmt.devtestlabs.models.Disk(location=None, tags=None, disk_type=None, disk_size_gi_b=None, leased_by_lab_vm_id=None, disk_blob_name=None, disk_uri=None, host_caching=None, managed_disk_id=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A Disk.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • created_date (datetime) – The creation date of the disk.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • disk_type (str or StorageType) – The storage type for the disk (i.e. Standard, Premium). Possible values include: ‘Standard’, ‘Premium’
  • disk_size_gi_b (int) – The size of the disk in GibiBytes.
  • leased_by_lab_vm_id (str) – The resource ID of the VM to which this disk is leased.
  • disk_blob_name (str) – When backed by a blob, the name of the VHD blob without extension.
  • disk_uri (str) – When backed by a blob, the URI of underlying blob.
  • host_caching (str) – The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
  • managed_disk_id (str) – When backed by managed disk, this is the ID of the compute disk resource.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.EnvironmentDeploymentProperties(arm_template_id=None, parameters=None)[source]

Bases: msrest.serialization.Model

Properties of an environment deployment.

Parameters:
  • arm_template_id (str) – The Azure Resource Manager template’s identifier.
  • parameters (list of ArmTemplateParameterProperties) – The parameters of the Azure Resource Manager template.
class azure.mgmt.devtestlabs.models.DtlEnvironment(location=None, tags=None, deployment_properties=None, arm_template_display_name=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

An environment, which is essentially an ARM template deployment.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • resource_group_id (str) – The identifier of the resource group containing the environment’s resources.
  • created_by_user (str) – The creator of the environment.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • deployment_properties (EnvironmentDeploymentProperties) – The deployment properties of the environment.
  • arm_template_display_name (str) – The display name of the Azure Resource Manager template that produced the environment.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.EvaluatePoliciesProperties(fact_name=None, fact_data=None, value_offset=None)[source]

Bases: msrest.serialization.Model

Properties for evaluating a policy set.

Parameters:
  • fact_name (str) – The fact name.
  • fact_data (str) – The fact data.
  • value_offset (str) – The value offset.
class azure.mgmt.devtestlabs.models.EvaluatePoliciesRequest(policies=None)[source]

Bases: msrest.serialization.Model

Request body for evaluating a policy set.

Parameters:policies (list of EvaluatePoliciesProperties) – Policies to evaluate.
class azure.mgmt.devtestlabs.models.PolicyViolation(code=None, message=None)[source]

Bases: msrest.serialization.Model

Policy violation.

Parameters:
  • code (str) – The code of the policy violation.
  • message (str) – The message of the policy violation.
class azure.mgmt.devtestlabs.models.PolicySetResult(has_error=None, policy_violations=None)[source]

Bases: msrest.serialization.Model

Result of a policy set evaluation.

Parameters:
  • has_error (bool) – A value indicating whether this policy set evaluation has discovered violations.
  • policy_violations (list of PolicyViolation) – The list of policy violations.
class azure.mgmt.devtestlabs.models.EvaluatePoliciesResponse(results=None)[source]

Bases: msrest.serialization.Model

Response body for evaluating a policy set.

Parameters:results (list of PolicySetResult) – Results of evaluating a policy set.
class azure.mgmt.devtestlabs.models.Event(event_name=None)[source]

Bases: msrest.serialization.Model

An event to be notified for.

Parameters:event_name (str or NotificationChannelEventType) – The event type for which this notification is enabled (i.e. AutoShutdown, Cost). Possible values include: ‘AutoShutdown’, ‘Cost’
class azure.mgmt.devtestlabs.models.EventFragment(event_name=None)[source]

Bases: msrest.serialization.Model

An event to be notified for.

Parameters:event_name (str or NotificationChannelEventType) – The event type for which this notification is enabled (i.e. AutoShutdown, Cost). Possible values include: ‘AutoShutdown’, ‘Cost’
class azure.mgmt.devtestlabs.models.ExportResourceUsageParameters(blob_storage_absolute_sas_uri=None, usage_start_date=None)[source]

Bases: msrest.serialization.Model

The parameters of the export operation.

Parameters:
  • blob_storage_absolute_sas_uri (str) – The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.
  • usage_start_date (datetime) – The start time of the usage. If not provided, usage will be reported since the beginning of data collection.
class azure.mgmt.devtestlabs.models.ExternalSubnet(id=None, name=None)[source]

Bases: msrest.serialization.Model

Subnet information as returned by the Microsoft.Network API.

Parameters:
  • id (str) – Gets or sets the identifier.
  • name (str) – Gets or sets the name.
class azure.mgmt.devtestlabs.models.ExternalSubnetFragment(id=None, name=None)[source]

Bases: msrest.serialization.Model

Subnet information as returned by the Microsoft.Network API.

Parameters:
  • id (str) – Gets or sets the identifier.
  • name (str) – Gets or sets the name.
class azure.mgmt.devtestlabs.models.GalleryImageReference(offer=None, publisher=None, sku=None, os_type=None, version=None)[source]

Bases: msrest.serialization.Model

The reference information for an Azure Marketplace image.

Parameters:
  • offer (str) – The offer of the gallery image.
  • publisher (str) – The publisher of the gallery image.
  • sku (str) – The SKU of the gallery image.
  • os_type (str) – The OS type of the gallery image.
  • version (str) – The version of the gallery image.
class azure.mgmt.devtestlabs.models.InboundNatRule(transport_protocol=None, frontend_port=None, backend_port=None)[source]

Bases: msrest.serialization.Model

A rule for NAT - exposing a VM’s port (backendPort) on the public IP address using a load balancer.

Parameters:
  • transport_protocol (str or TransportProtocol) – The transport protocol for the endpoint. Possible values include: ‘Tcp’, ‘Udp’
  • frontend_port (int) – The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.
  • backend_port (int) – The port to which the external traffic will be redirected.
class azure.mgmt.devtestlabs.models.SharedPublicIpAddressConfiguration(inbound_nat_rules=None)[source]

Bases: msrest.serialization.Model

Properties of a virtual machine that determine how it is connected to a load balancer.

Parameters:inbound_nat_rules (list of InboundNatRule) – The incoming NAT rules
class azure.mgmt.devtestlabs.models.NetworkInterfaceProperties(virtual_network_id=None, subnet_id=None, public_ip_address_id=None, public_ip_address=None, private_ip_address=None, dns_name=None, rdp_authority=None, ssh_authority=None, shared_public_ip_address_configuration=None)[source]

Bases: msrest.serialization.Model

Properties of a network interface.

Parameters:
  • virtual_network_id (str) – The resource ID of the virtual network.
  • subnet_id (str) – The resource ID of the sub net.
  • public_ip_address_id (str) – The resource ID of the public IP address.
  • public_ip_address (str) – The public IP address.
  • private_ip_address (str) – The private IP address.
  • dns_name (str) – The DNS name.
  • rdp_authority (str) – The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).
  • ssh_authority (str) – The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.
  • shared_public_ip_address_configuration (SharedPublicIpAddressConfiguration) – The configuration for sharing a public IP address across multiple virtual machines.
class azure.mgmt.devtestlabs.models.LabVirtualMachineCreationParameter(bulk_creation_parameters=None, notes=None, owner_object_id=None, owner_user_principal_name=None, created_by_user_id=None, created_by_user=None, created_date=None, custom_image_id=None, os_type=None, size=None, user_name=None, password=None, ssh_key=None, is_authentication_with_ssh_key=None, fqdn=None, lab_subnet_name=None, lab_virtual_network_id=None, disallow_public_ip_address=None, artifacts=None, artifact_deployment_status=None, gallery_image_reference=None, compute_vm=None, network_interface=None, applicable_schedule=None, expiration_date=None, allow_claim=None, storage_type=None, virtual_machine_creation_source=None, environment_id=None, provisioning_state=None, unique_identifier=None, name=None, location=None, tags=None)[source]

Bases: msrest.serialization.Model

Properties for creating a virtual machine.

Parameters:
  • bulk_creation_parameters (BulkCreationParameters) – The number of virtual machine instances to create.
  • notes (str) – The notes of the virtual machine.
  • owner_object_id (str) – The object identifier of the owner of the virtual machine.
  • owner_user_principal_name (str) – The user principal name of the virtual machine owner.
  • created_by_user_id (str) – The object identifier of the creator of the virtual machine.
  • created_by_user (str) – The email address of creator of the virtual machine.
  • created_date (datetime) – The creation date of the virtual machine.
  • custom_image_id (str) – The custom image identifier of the virtual machine.
  • os_type (str) – The OS type of the virtual machine.
  • size (str) – The size of the virtual machine.
  • user_name (str) – The user name of the virtual machine.
  • password (str) – The password of the virtual machine administrator.
  • ssh_key (str) – The SSH key of the virtual machine administrator.
  • is_authentication_with_ssh_key (bool) – Indicates whether this virtual machine uses an SSH key for authentication.
  • fqdn (str) – The fully-qualified domain name of the virtual machine.
  • lab_subnet_name (str) – The lab subnet name of the virtual machine.
  • lab_virtual_network_id (str) – The lab virtual network identifier of the virtual machine.
  • disallow_public_ip_address (bool) – Indicates whether the virtual machine is to be created without a public IP address.
  • artifacts (list of ArtifactInstallProperties) – The artifacts to be installed on the virtual machine.
  • artifact_deployment_status (ArtifactDeploymentStatusProperties) – The artifact deployment status for the virtual machine.
  • gallery_image_reference (GalleryImageReference) – The Microsoft Azure Marketplace image reference of the virtual machine.
  • compute_vm (ComputeVmProperties) – The compute virtual machine properties.
  • network_interface (NetworkInterfaceProperties) – The network interface properties.
  • applicable_schedule (ApplicableSchedule) – The applicable schedule for the virtual machine.
  • expiration_date (datetime) – The expiration date for VM.
  • allow_claim (bool) – Indicates whether another user can take ownership of the virtual machine
  • storage_type (str) – Storage type to use for virtual machine (i.e. Standard, Premium).
  • virtual_machine_creation_source (str or VirtualMachineCreationSource) – Tells source of creation of lab virtual machine. Output property only. Possible values include: ‘FromCustomImage’, ‘FromGalleryImage’
  • environment_id (str) – The resource ID of the environment that contains this virtual machine, if any.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
  • name (str) – The name of the virtual machine or environment
  • location (str) – The location of the new virtual machine or environment
  • tags (dict) – The tags of the resource.
class azure.mgmt.devtestlabs.models.FormulaPropertiesFromVm(lab_vm_id=None)[source]

Bases: msrest.serialization.Model

Information about a VM from which a formula is to be created.

Parameters:lab_vm_id (str) – The identifier of the VM from which a formula is to be created.
class azure.mgmt.devtestlabs.models.Formula(location=None, tags=None, description=None, author=None, os_type=None, formula_content=None, vm=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A formula for creating a VM, specifying an image base and other parameters.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • creation_date (datetime) – The creation date of the formula.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • description (str) – The description of the formula.
  • author (str) – The author of the formula.
  • os_type (str) – The OS type of the formula.
  • formula_content (LabVirtualMachineCreationParameter) – The content of the formula.
  • vm (FormulaPropertiesFromVm) – Information about a VM from which a formula is to be created.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.GalleryImage(location=None, tags=None, author=None, description=None, image_reference=None, icon=None, enabled=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A gallery image.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • created_date (datetime) – The creation date of the gallery image.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • author (str) – The author of the gallery image.
  • description (str) – The description of the gallery image.
  • image_reference (GalleryImageReference) – The image reference of the gallery image.
  • icon (str) – The icon of the gallery image.
  • enabled (bool) – Indicates whether this gallery image is enabled.
class azure.mgmt.devtestlabs.models.GalleryImageReferenceFragment(offer=None, publisher=None, sku=None, os_type=None, version=None)[source]

Bases: msrest.serialization.Model

The reference information for an Azure Marketplace image.

Parameters:
  • offer (str) – The offer of the gallery image.
  • publisher (str) – The publisher of the gallery image.
  • sku (str) – The SKU of the gallery image.
  • os_type (str) – The OS type of the gallery image.
  • version (str) – The version of the gallery image.
class azure.mgmt.devtestlabs.models.ParameterInfo(name=None, value=None)[source]

Bases: msrest.serialization.Model

Information about an artifact’s parameter.

Parameters:
  • name (str) – The name of the artifact parameter.
  • value (str) – The value of the artifact parameter.
class azure.mgmt.devtestlabs.models.GenerateArmTemplateRequest(virtual_machine_name=None, parameters=None, location=None, file_upload_options=None)[source]

Bases: msrest.serialization.Model

Parameters for generating an ARM template for deploying artifacts.

Parameters:
  • virtual_machine_name (str) – The resource name of the virtual machine.
  • parameters (list of ParameterInfo) – The parameters of the ARM template.
  • location (str) – The location of the virtual machine.
  • file_upload_options (str or FileUploadOptions) – Options for uploading the files for the artifact. UploadFilesAndGenerateSasTokens is the default value. Possible values include: ‘UploadFilesAndGenerateSasTokens’, ‘None’
class azure.mgmt.devtestlabs.models.GenerateUploadUriParameter(blob_name=None)[source]

Bases: msrest.serialization.Model

Properties for generating an upload URI.

Parameters:blob_name (str) – The blob name of the upload URI.
class azure.mgmt.devtestlabs.models.GenerateUploadUriResponse(upload_uri=None)[source]

Bases: msrest.serialization.Model

Reponse body for generating an upload URI.

Parameters:upload_uri (str) – The upload URI for the VHD.
class azure.mgmt.devtestlabs.models.IdentityProperties(type=None, principal_id=None, tenant_id=None, client_secret_url=None)[source]

Bases: msrest.serialization.Model

IdentityProperties.

Parameters:
  • type (str) – Managed identity.
  • principal_id (str) – The principal id of resource identity.
  • tenant_id (str) – The tenant identifier of resource.
  • client_secret_url (str) – The client secret URL of the identity.
class azure.mgmt.devtestlabs.models.InboundNatRuleFragment(transport_protocol=None, frontend_port=None, backend_port=None)[source]

Bases: msrest.serialization.Model

A rule for NAT - exposing a VM’s port (backendPort) on the public IP address using a load balancer.

Parameters:
  • transport_protocol (str or TransportProtocol) – The transport protocol for the endpoint. Possible values include: ‘Tcp’, ‘Udp’
  • frontend_port (int) – The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.
  • backend_port (int) – The port to which the external traffic will be redirected.
class azure.mgmt.devtestlabs.models.Lab(location=None, tags=None, lab_storage_type=None, premium_data_disks=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A lab.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • default_storage_account (str) – The lab’s default storage account.
  • default_premium_storage_account (str) – The lab’s default premium storage account.
  • artifacts_storage_account (str) – The lab’s artifact storage account.
  • premium_data_disk_storage_account (str) – The lab’s premium data disk storage account.
  • vault_name (str) – The lab’s Key vault.
  • created_date (datetime) – The creation date of the lab.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • lab_storage_type (str or StorageType) – Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: ‘Standard’, ‘Premium’
  • premium_data_disks (str or PremiumDataDisk) – The setting to enable usage of premium data disks. When its value is ‘Enabled’, creation of standard or premium data disks is allowed. When its value is ‘Disabled’, only creation of standard data disks is allowed. Possible values include: ‘Disabled’, ‘Enabled’
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.TargetCostProperties(status=None, target=None, cost_thresholds=None, cycle_start_date_time=None, cycle_end_date_time=None, cycle_type=None)[source]

Bases: msrest.serialization.Model

Properties of a cost target.

Parameters:
  • status (str or TargetCostStatus) – Target cost status. Possible values include: ‘Enabled’, ‘Disabled’
  • target (int) – Lab target cost
  • cost_thresholds (list of CostThresholdProperties) – Cost thresholds.
  • cycle_start_date_time (datetime) – Reporting cycle start date.
  • cycle_end_date_time (datetime) – Reporting cycle end date.
  • cycle_type (str or ReportingCycleType) – Reporting cycle type. Possible values include: ‘CalendarMonth’, ‘Custom’
class azure.mgmt.devtestlabs.models.LabCostSummaryProperties(estimated_lab_cost=None)[source]

Bases: msrest.serialization.Model

The properties of the cost summary.

Parameters:estimated_lab_cost (float) – The cost component of the cost item.
class azure.mgmt.devtestlabs.models.LabCostDetailsProperties(date_property=None, cost=None, cost_type=None)[source]

Bases: msrest.serialization.Model

The properties of a lab cost item.

Parameters:
  • date_property (datetime) – The date of the cost item.
  • cost (float) – The cost component of the cost item.
  • cost_type (str or CostType) – The type of the cost. Possible values include: ‘Unavailable’, ‘Reported’, ‘Projected’
class azure.mgmt.devtestlabs.models.LabResourceCostProperties(resourcename=None, resource_uid=None, resource_cost=None, resource_type=None, resource_owner=None, resource_pricing_tier=None, resource_status=None, resource_id=None, external_resource_id=None)[source]

Bases: msrest.serialization.Model

The properties of a resource cost item.

Parameters:
  • resourcename (str) – The name of the resource.
  • resource_uid (str) – The unique identifier of the resource.
  • resource_cost (float) – The cost component of the resource cost item.
  • resource_type (str) – The logical resource type (ex. virtualmachine, storageaccount)
  • resource_owner (str) – The owner of the resource (ex. janedoe@microsoft.com)
  • resource_pricing_tier (str) – The category of the resource (ex. Premium_LRS, Standard_DS1)
  • resource_status (str) – The status of the resource (ex. Active)
  • resource_id (str) – The ID of the resource
  • external_resource_id (str) – The ID of the external resource
class azure.mgmt.devtestlabs.models.LabCost(location=None, tags=None, target_cost=None, currency_code=None, start_date_time=None, end_date_time=None, created_date=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A cost item.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • target_cost (TargetCostProperties) – The target cost properties
  • currency_code (str) – The currency code of the cost.
  • start_date_time (datetime) – The start time of the cost data.
  • end_date_time (datetime) – The end time of the cost data.
  • created_date (datetime) – The creation date of the cost.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.LabFragment(location=None, tags=None, lab_storage_type=None, premium_data_disks=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A lab.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • lab_storage_type (str or StorageType) – Type of storage used by the lab. It can be either Premium or Standard. Default is Premium. Possible values include: ‘Standard’, ‘Premium’
  • premium_data_disks (str or PremiumDataDisk) – The setting to enable usage of premium data disks. When its value is ‘Enabled’, creation of standard or premium data disks is allowed. When its value is ‘Disabled’, only creation of standard data disks is allowed. Possible values include: ‘Disabled’, ‘Enabled’
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.LabVhd(id=None)[source]

Bases: msrest.serialization.Model

Properties of a VHD in the lab.

Parameters:id (str) – The URI to the VHD.
class azure.mgmt.devtestlabs.models.LabVirtualMachine(location=None, tags=None, notes=None, owner_object_id=None, owner_user_principal_name=None, created_by_user_id=None, created_by_user=None, created_date=None, custom_image_id=None, os_type=None, size=None, user_name=None, password=None, ssh_key=None, is_authentication_with_ssh_key=None, fqdn=None, lab_subnet_name=None, lab_virtual_network_id=None, disallow_public_ip_address=None, artifacts=None, artifact_deployment_status=None, gallery_image_reference=None, compute_vm=None, network_interface=None, applicable_schedule=None, expiration_date=None, allow_claim=None, storage_type=None, virtual_machine_creation_source=None, environment_id=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A virtual machine.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • compute_id (str) – The resource identifier (Microsoft.Compute) of the virtual machine.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • notes (str) – The notes of the virtual machine.
  • owner_object_id (str) – The object identifier of the owner of the virtual machine.
  • owner_user_principal_name (str) – The user principal name of the virtual machine owner.
  • created_by_user_id (str) – The object identifier of the creator of the virtual machine.
  • created_by_user (str) – The email address of creator of the virtual machine.
  • created_date (datetime) – The creation date of the virtual machine.
  • custom_image_id (str) – The custom image identifier of the virtual machine.
  • os_type (str) – The OS type of the virtual machine.
  • size (str) – The size of the virtual machine.
  • user_name (str) – The user name of the virtual machine.
  • password (str) – The password of the virtual machine administrator.
  • ssh_key (str) – The SSH key of the virtual machine administrator.
  • is_authentication_with_ssh_key (bool) – Indicates whether this virtual machine uses an SSH key for authentication.
  • fqdn (str) – The fully-qualified domain name of the virtual machine.
  • lab_subnet_name (str) – The lab subnet name of the virtual machine.
  • lab_virtual_network_id (str) – The lab virtual network identifier of the virtual machine.
  • disallow_public_ip_address (bool) – Indicates whether the virtual machine is to be created without a public IP address.
  • artifacts (list of ArtifactInstallProperties) – The artifacts to be installed on the virtual machine.
  • artifact_deployment_status (ArtifactDeploymentStatusProperties) – The artifact deployment status for the virtual machine.
  • gallery_image_reference (GalleryImageReference) – The Microsoft Azure Marketplace image reference of the virtual machine.
  • compute_vm (ComputeVmProperties) – The compute virtual machine properties.
  • network_interface (NetworkInterfaceProperties) – The network interface properties.
  • applicable_schedule (ApplicableSchedule) – The applicable schedule for the virtual machine.
  • expiration_date (datetime) – The expiration date for VM.
  • allow_claim (bool) – Indicates whether another user can take ownership of the virtual machine
  • storage_type (str) – Storage type to use for virtual machine (i.e. Standard, Premium).
  • virtual_machine_creation_source (str or VirtualMachineCreationSource) – Tells source of creation of lab virtual machine. Output property only. Possible values include: ‘FromCustomImage’, ‘FromGalleryImage’
  • environment_id (str) – The resource ID of the environment that contains this virtual machine, if any.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.SharedPublicIpAddressConfigurationFragment(inbound_nat_rules=None)[source]

Bases: msrest.serialization.Model

Properties of a virtual machine that determine how it is connected to a load balancer.

Parameters:inbound_nat_rules (list of InboundNatRuleFragment) – The incoming NAT rules
class azure.mgmt.devtestlabs.models.NetworkInterfacePropertiesFragment(virtual_network_id=None, subnet_id=None, public_ip_address_id=None, public_ip_address=None, private_ip_address=None, dns_name=None, rdp_authority=None, ssh_authority=None, shared_public_ip_address_configuration=None)[source]

Bases: msrest.serialization.Model

Properties of a network interface.

Parameters:
  • virtual_network_id (str) – The resource ID of the virtual network.
  • subnet_id (str) – The resource ID of the sub net.
  • public_ip_address_id (str) – The resource ID of the public IP address.
  • public_ip_address (str) – The public IP address.
  • private_ip_address (str) – The private IP address.
  • dns_name (str) – The DNS name.
  • rdp_authority (str) – The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol).
  • ssh_authority (str) – The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH.
  • shared_public_ip_address_configuration (SharedPublicIpAddressConfigurationFragment) – The configuration for sharing a public IP address across multiple virtual machines.
class azure.mgmt.devtestlabs.models.LabVirtualMachineFragment(location=None, tags=None, notes=None, owner_object_id=None, owner_user_principal_name=None, created_by_user_id=None, created_by_user=None, created_date=None, custom_image_id=None, os_type=None, size=None, user_name=None, password=None, ssh_key=None, is_authentication_with_ssh_key=None, fqdn=None, lab_subnet_name=None, lab_virtual_network_id=None, disallow_public_ip_address=None, artifacts=None, artifact_deployment_status=None, gallery_image_reference=None, compute_vm=None, network_interface=None, applicable_schedule=None, expiration_date=None, allow_claim=None, storage_type=None, virtual_machine_creation_source=None, environment_id=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A virtual machine.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • notes (str) – The notes of the virtual machine.
  • owner_object_id (str) – The object identifier of the owner of the virtual machine.
  • owner_user_principal_name (str) – The user principal name of the virtual machine owner.
  • created_by_user_id (str) – The object identifier of the creator of the virtual machine.
  • created_by_user (str) – The email address of creator of the virtual machine.
  • created_date (datetime) – The creation date of the virtual machine.
  • custom_image_id (str) – The custom image identifier of the virtual machine.
  • os_type (str) – The OS type of the virtual machine.
  • size (str) – The size of the virtual machine.
  • user_name (str) – The user name of the virtual machine.
  • password (str) – The password of the virtual machine administrator.
  • ssh_key (str) – The SSH key of the virtual machine administrator.
  • is_authentication_with_ssh_key (bool) – Indicates whether this virtual machine uses an SSH key for authentication.
  • fqdn (str) – The fully-qualified domain name of the virtual machine.
  • lab_subnet_name (str) – The lab subnet name of the virtual machine.
  • lab_virtual_network_id (str) – The lab virtual network identifier of the virtual machine.
  • disallow_public_ip_address (bool) – Indicates whether the virtual machine is to be created without a public IP address.
  • artifacts (list of ArtifactInstallPropertiesFragment) – The artifacts to be installed on the virtual machine.
  • artifact_deployment_status (ArtifactDeploymentStatusPropertiesFragment) – The artifact deployment status for the virtual machine.
  • gallery_image_reference (GalleryImageReferenceFragment) – The Microsoft Azure Marketplace image reference of the virtual machine.
  • compute_vm (ComputeVmPropertiesFragment) – The compute virtual machine properties.
  • network_interface (NetworkInterfacePropertiesFragment) – The network interface properties.
  • applicable_schedule (ApplicableScheduleFragment) – The applicable schedule for the virtual machine.
  • expiration_date (datetime) – The expiration date for VM.
  • allow_claim (bool) – Indicates whether another user can take ownership of the virtual machine
  • storage_type (str) – Storage type to use for virtual machine (i.e. Standard, Premium).
  • virtual_machine_creation_source (str or VirtualMachineCreationSource) – Tells source of creation of lab virtual machine. Output property only. Possible values include: ‘FromCustomImage’, ‘FromGalleryImage’
  • environment_id (str) – The resource ID of the environment that contains this virtual machine, if any.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.NotificationChannel(location=None, tags=None, web_hook_url=None, description=None, events=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A notification.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • created_date (datetime) – The creation date of the notification channel.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • web_hook_url (str) – The webhook URL to send notifications to.
  • description (str) – Description of notification.
  • events (list of Event) – The list of event for which this notification is enabled.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.NotificationChannelFragment(location=None, tags=None, web_hook_url=None, description=None, events=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A notification.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • web_hook_url (str) – The webhook URL to send notifications to.
  • description (str) – Description of notification.
  • events (list of EventFragment) – The list of event for which this notification is enabled.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.NotifyParameters(event_name=None, json_payload=None)[source]

Bases: msrest.serialization.Model

Properties for generating a Notification.

Parameters:
  • event_name (str or NotificationChannelEventType) – The type of event (i.e. AutoShutdown, Cost). Possible values include: ‘AutoShutdown’, ‘Cost’
  • json_payload (str) – Properties for the notification in json format.
class azure.mgmt.devtestlabs.models.Policy(location=None, tags=None, description=None, status=None, fact_name=None, fact_data=None, threshold=None, evaluator_type=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A Policy.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • created_date (datetime) – The creation date of the policy.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • description (str) – The description of the policy.
  • status (str or PolicyStatus) – The status of the policy. Possible values include: ‘Enabled’, ‘Disabled’
  • fact_name (str or PolicyFactName) – The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: ‘UserOwnedLabVmCount’, ‘UserOwnedLabPremiumVmCount’, ‘LabVmCount’, ‘LabPremiumVmCount’, ‘LabVmSize’, ‘GalleryImage’, ‘UserOwnedLabVmCountInSubnet’, ‘LabTargetCost’
  • fact_data (str) – The fact data of the policy.
  • threshold (str) – The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
  • evaluator_type (str or PolicyEvaluatorType) – The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: ‘AllowedValuesPolicy’, ‘MaxValuePolicy’
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.PolicyFragment(location=None, tags=None, description=None, status=None, fact_name=None, fact_data=None, threshold=None, evaluator_type=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A Policy.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • description (str) – The description of the policy.
  • status (str or PolicyStatus) – The status of the policy. Possible values include: ‘Enabled’, ‘Disabled’
  • fact_name (str or PolicyFactName) – The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: ‘UserOwnedLabVmCount’, ‘UserOwnedLabPremiumVmCount’, ‘LabVmCount’, ‘LabPremiumVmCount’, ‘LabVmSize’, ‘GalleryImage’, ‘UserOwnedLabVmCountInSubnet’, ‘LabTargetCost’
  • fact_data (str) – The fact data of the policy.
  • threshold (str) – The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
  • evaluator_type (str or PolicyEvaluatorType) – The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: ‘AllowedValuesPolicy’, ‘MaxValuePolicy’
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.Port(transport_protocol=None, backend_port=None)[source]

Bases: msrest.serialization.Model

Properties of a network port.

Parameters:
  • transport_protocol (str or TransportProtocol) – Protocol type of the port. Possible values include: ‘Tcp’, ‘Udp’
  • backend_port (int) – Backend port of the target virtual machine.
class azure.mgmt.devtestlabs.models.PortFragment(transport_protocol=None, backend_port=None)[source]

Bases: msrest.serialization.Model

Properties of a network port.

Parameters:
  • transport_protocol (str or TransportProtocol) – Protocol type of the port. Possible values include: ‘Tcp’, ‘Udp’
  • backend_port (int) – Backend port of the target virtual machine.
class azure.mgmt.devtestlabs.models.Resource(location=None, tags=None)[source]

Bases: msrest.serialization.Model

An Azure resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
class azure.mgmt.devtestlabs.models.Secret(location=None, tags=None, value=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A secret.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • value (str) – The value of the secret for secret creation.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.ServiceRunner(location=None, tags=None, identity=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A container for a managed identity to execute DevTest lab services.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • identity (IdentityProperties) – The identity of the resource.
class azure.mgmt.devtestlabs.models.UserIdentity(principal_name=None, principal_id=None, tenant_id=None, object_id=None, app_id=None)[source]

Bases: msrest.serialization.Model

Identity attributes of a lab user.

Parameters:
  • principal_name (str) – Set to the principal name / UPN of the client JWT making the request.
  • principal_id (str) – Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.
  • tenant_id (str) – Set to the tenant ID of the client JWT making the request.
  • object_id (str) – Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.
  • app_id (str) – Set to the app Id of the client JWT making the request.
class azure.mgmt.devtestlabs.models.UserSecretStore(key_vault_uri=None, key_vault_id=None)[source]

Bases: msrest.serialization.Model

Properties of a user’s secret store.

Parameters:
  • key_vault_uri (str) – The URI of the user’s Key vault.
  • key_vault_id (str) – The ID of the user’s Key vault.
class azure.mgmt.devtestlabs.models.User(location=None, tags=None, identity=None, secret_store=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

Profile of a lab user.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • created_date (datetime) – The creation date of the user profile.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • identity (UserIdentity) – The identity of the user.
  • secret_store (UserSecretStore) – The secret store of the user.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.Subnet(resource_id=None, lab_subnet_name=None, allow_public_ip=None)[source]

Bases: msrest.serialization.Model

Subnet information.

Parameters:
  • resource_id (str) – The resource ID of the subnet.
  • lab_subnet_name (str) – The name of the subnet as seen in the lab.
  • allow_public_ip (str or UsagePermissionType) – The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible values include: ‘Default’, ‘Deny’, ‘Allow’
class azure.mgmt.devtestlabs.models.SubnetSharedPublicIpAddressConfiguration(allowed_ports=None)[source]

Bases: msrest.serialization.Model

Configuration for public IP address sharing.

Parameters:allowed_ports (list of Port) – Backend ports that virtual machines on this subnet are allowed to expose
class azure.mgmt.devtestlabs.models.SubnetOverride(resource_id=None, lab_subnet_name=None, use_in_vm_creation_permission=None, use_public_ip_address_permission=None, shared_public_ip_address_configuration=None, virtual_network_pool_name=None)[source]

Bases: msrest.serialization.Model

Property overrides on a subnet of a virtual network.

Parameters:
  • resource_id (str) – The resource ID of the subnet.
  • lab_subnet_name (str) – The name given to the subnet within the lab.
  • use_in_vm_creation_permission (str or UsagePermissionType) – Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). Possible values include: ‘Default’, ‘Deny’, ‘Allow’
  • use_public_ip_address_permission (str or UsagePermissionType) – Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny). Possible values include: ‘Default’, ‘Deny’, ‘Allow’
  • shared_public_ip_address_configuration (SubnetSharedPublicIpAddressConfiguration) – Properties that virtual machines on this subnet will share.
  • virtual_network_pool_name (str) – The virtual network pool associated with this subnet.
class azure.mgmt.devtestlabs.models.VirtualNetwork(location=None, tags=None, allowed_subnets=None, description=None, external_provider_resource_id=None, external_subnets=None, subnet_overrides=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A virtual network.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • created_date (datetime) – The creation date of the virtual network.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • allowed_subnets (list of Subnet) – The allowed subnets of the virtual network.
  • description (str) – The description of the virtual network.
  • external_provider_resource_id (str) – The Microsoft.Network resource identifier of the virtual network.
  • external_subnets (list of ExternalSubnet) – The external subnet properties.
  • subnet_overrides (list of SubnetOverride) – The subnet overrides of the virtual network.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.RetargetScheduleProperties(current_resource_id=None, target_resource_id=None)[source]

Bases: msrest.serialization.Model

Properties for retargeting a virtual machine schedule.

Parameters:
  • current_resource_id (str) – The resource Id of the virtual machine on which the schedule operates
  • target_resource_id (str) – The resource Id of the virtual machine that the schedule should be retargeted to
class azure.mgmt.devtestlabs.models.ShutdownNotificationContent(skip_url=None, delay_url60=None, delay_url120=None, vm_name=None, guid=None, owner=None, event_type=None, text=None, subscription_id=None, resource_group_name=None, lab_name=None)[source]

Bases: msrest.serialization.Model

The contents of a shutdown notification. Webhooks can use this type to deserialize the request body when they get notified of an imminent shutdown.

Parameters:
  • skip_url (str) – The URL to skip auto-shutdown.
  • delay_url60 (str) – The URL to delay shutdown by 60 minutes.
  • delay_url120 (str) – The URL to delay shutdown by 2 hours.
  • vm_name (str) – The virtual machine to be shut down.
  • guid (str) – The GUID for the virtual machine to be shut down.
  • owner (str) – The owner of the virtual machine.
  • event_type (str) – The event for which a notification will be sent.
  • text (str) – The text for the notification.
  • subscription_id (str) – The subscription ID for the schedule.
  • resource_group_name (str) – The resource group name for the schedule.
  • lab_name (str) – The lab for the schedule.
class azure.mgmt.devtestlabs.models.SubnetFragment(resource_id=None, lab_subnet_name=None, allow_public_ip=None)[source]

Bases: msrest.serialization.Model

Subnet information.

Parameters:
  • resource_id (str) – The resource ID of the subnet.
  • lab_subnet_name (str) – The name of the subnet as seen in the lab.
  • allow_public_ip (str or UsagePermissionType) – The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)). Possible values include: ‘Default’, ‘Deny’, ‘Allow’
class azure.mgmt.devtestlabs.models.SubnetSharedPublicIpAddressConfigurationFragment(allowed_ports=None)[source]

Bases: msrest.serialization.Model

Configuration for public IP address sharing.

Parameters:allowed_ports (list of PortFragment) – Backend ports that virtual machines on this subnet are allowed to expose
class azure.mgmt.devtestlabs.models.SubnetOverrideFragment(resource_id=None, lab_subnet_name=None, use_in_vm_creation_permission=None, use_public_ip_address_permission=None, shared_public_ip_address_configuration=None, virtual_network_pool_name=None)[source]

Bases: msrest.serialization.Model

Property overrides on a subnet of a virtual network.

Parameters:
  • resource_id (str) – The resource ID of the subnet.
  • lab_subnet_name (str) – The name given to the subnet within the lab.
  • use_in_vm_creation_permission (str or UsagePermissionType) – Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). Possible values include: ‘Default’, ‘Deny’, ‘Allow’
  • use_public_ip_address_permission (str or UsagePermissionType) – Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny). Possible values include: ‘Default’, ‘Deny’, ‘Allow’
  • shared_public_ip_address_configuration (SubnetSharedPublicIpAddressConfigurationFragment) – Properties that virtual machines on this subnet will share.
  • virtual_network_pool_name (str) – The virtual network pool associated with this subnet.
class azure.mgmt.devtestlabs.models.UserIdentityFragment(principal_name=None, principal_id=None, tenant_id=None, object_id=None, app_id=None)[source]

Bases: msrest.serialization.Model

Identity attributes of a lab user.

Parameters:
  • principal_name (str) – Set to the principal name / UPN of the client JWT making the request.
  • principal_id (str) – Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.
  • tenant_id (str) – Set to the tenant ID of the client JWT making the request.
  • object_id (str) – Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.
  • app_id (str) – Set to the app Id of the client JWT making the request.
class azure.mgmt.devtestlabs.models.UserSecretStoreFragment(key_vault_uri=None, key_vault_id=None)[source]

Bases: msrest.serialization.Model

Properties of a user’s secret store.

Parameters:
  • key_vault_uri (str) – The URI of the user’s Key vault.
  • key_vault_id (str) – The ID of the user’s Key vault.
class azure.mgmt.devtestlabs.models.UserFragment(location=None, tags=None, identity=None, secret_store=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

Profile of a lab user.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • identity (UserIdentityFragment) – The identity of the user.
  • secret_store (UserSecretStoreFragment) – The secret store of the user.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.VirtualNetworkFragment(location=None, tags=None, allowed_subnets=None, description=None, external_provider_resource_id=None, external_subnets=None, subnet_overrides=None, provisioning_state=None, unique_identifier=None)[source]

Bases: azure.mgmt.devtestlabs.models.resource.Resource

A virtual network.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The identifier of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource.
  • tags (dict) – The tags of the resource.
  • allowed_subnets (list of SubnetFragment) – The allowed subnets of the virtual network.
  • description (str) – The description of the virtual network.
  • external_provider_resource_id (str) – The Microsoft.Network resource identifier of the virtual network.
  • external_subnets (list of ExternalSubnetFragment) – The external subnet properties.
  • subnet_overrides (list of SubnetOverrideFragment) – The subnet overrides of the virtual network.
  • provisioning_state (str) – The provisioning status of the resource.
  • unique_identifier (str) – The unique immutable identifier of a resource (Guid).
class azure.mgmt.devtestlabs.models.LabPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Lab object

class azure.mgmt.devtestlabs.models.LabVhdPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of LabVhd object

class azure.mgmt.devtestlabs.models.SchedulePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Schedule object

class azure.mgmt.devtestlabs.models.ArtifactSourcePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of ArtifactSource object

class azure.mgmt.devtestlabs.models.ArmTemplatePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of ArmTemplate object

class azure.mgmt.devtestlabs.models.ArtifactPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Artifact object

class azure.mgmt.devtestlabs.models.CustomImagePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of CustomImage object

class azure.mgmt.devtestlabs.models.FormulaPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Formula object

class azure.mgmt.devtestlabs.models.GalleryImagePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of GalleryImage object

class azure.mgmt.devtestlabs.models.NotificationChannelPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of NotificationChannel object

class azure.mgmt.devtestlabs.models.PolicyPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Policy object

class azure.mgmt.devtestlabs.models.ServiceRunnerPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of ServiceRunner object

class azure.mgmt.devtestlabs.models.UserPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of User object

class azure.mgmt.devtestlabs.models.DiskPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Disk object

class azure.mgmt.devtestlabs.models.DtlEnvironmentPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of DtlEnvironment object

class azure.mgmt.devtestlabs.models.SecretPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Secret object

class azure.mgmt.devtestlabs.models.LabVirtualMachinePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of LabVirtualMachine object

class azure.mgmt.devtestlabs.models.VirtualNetworkPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of VirtualNetwork object

class azure.mgmt.devtestlabs.models.EnableStatus[source]

Bases: enum.Enum

disabled = 'Disabled'
enabled = 'Enabled'
class azure.mgmt.devtestlabs.models.NotificationStatus[source]

Bases: enum.Enum

disabled = 'Disabled'
enabled = 'Enabled'
class azure.mgmt.devtestlabs.models.SourceControlType[source]

Bases: enum.Enum

git_hub = 'GitHub'
vso_git = 'VsoGit'
class azure.mgmt.devtestlabs.models.StorageType[source]

Bases: enum.Enum

premium = 'Premium'
standard = 'Standard'
class azure.mgmt.devtestlabs.models.CostThresholdStatus[source]

Bases: enum.Enum

disabled = 'Disabled'
enabled = 'Enabled'
class azure.mgmt.devtestlabs.models.WindowsOsState[source]

Bases: enum.Enum

non_sysprepped = 'NonSysprepped'
sysprep_applied = 'SysprepApplied'
sysprep_requested = 'SysprepRequested'
class azure.mgmt.devtestlabs.models.LinuxOsState[source]

Bases: enum.Enum

deprovision_applied = 'DeprovisionApplied'
deprovision_requested = 'DeprovisionRequested'
non_deprovisioned = 'NonDeprovisioned'
class azure.mgmt.devtestlabs.models.CustomImageOsType[source]

Bases: enum.Enum

linux = 'Linux'
none = 'None'
windows = 'Windows'
class azure.mgmt.devtestlabs.models.HostCachingOptions[source]

Bases: enum.Enum

none = 'None'
read_only = 'ReadOnly'
read_write = 'ReadWrite'
class azure.mgmt.devtestlabs.models.NotificationChannelEventType[source]

Bases: enum.Enum

auto_shutdown = 'AutoShutdown'
cost = 'Cost'
class azure.mgmt.devtestlabs.models.TransportProtocol[source]

Bases: enum.Enum

tcp = 'Tcp'
udp = 'Udp'
class azure.mgmt.devtestlabs.models.VirtualMachineCreationSource[source]

Bases: enum.Enum

from_custom_image = 'FromCustomImage'
class azure.mgmt.devtestlabs.models.FileUploadOptions[source]

Bases: enum.Enum

none = 'None'
upload_files_and_generate_sas_tokens = 'UploadFilesAndGenerateSasTokens'
class azure.mgmt.devtestlabs.models.PremiumDataDisk[source]

Bases: enum.Enum

disabled = 'Disabled'
enabled = 'Enabled'
class azure.mgmt.devtestlabs.models.TargetCostStatus[source]

Bases: enum.Enum

disabled = 'Disabled'
enabled = 'Enabled'
class azure.mgmt.devtestlabs.models.ReportingCycleType[source]

Bases: enum.Enum

calendar_month = 'CalendarMonth'
custom = 'Custom'
class azure.mgmt.devtestlabs.models.CostType[source]

Bases: enum.Enum

projected = 'Projected'
reported = 'Reported'
unavailable = 'Unavailable'
class azure.mgmt.devtestlabs.models.PolicyStatus[source]

Bases: enum.Enum

disabled = 'Disabled'
enabled = 'Enabled'
class azure.mgmt.devtestlabs.models.PolicyFactName[source]

Bases: enum.Enum

gallery_image = 'GalleryImage'
lab_premium_vm_count = 'LabPremiumVmCount'
lab_target_cost = 'LabTargetCost'
lab_vm_count = 'LabVmCount'
lab_vm_size = 'LabVmSize'
user_owned_lab_premium_vm_count = 'UserOwnedLabPremiumVmCount'
user_owned_lab_vm_count = 'UserOwnedLabVmCount'
user_owned_lab_vm_count_in_subnet = 'UserOwnedLabVmCountInSubnet'
class azure.mgmt.devtestlabs.models.PolicyEvaluatorType[source]

Bases: enum.Enum

allowed_values_policy = 'AllowedValuesPolicy'
max_value_policy = 'MaxValuePolicy'
class azure.mgmt.devtestlabs.models.UsagePermissionType[source]

Bases: enum.Enum

allow = 'Allow'
default = 'Default'
deny = 'Deny'