azure.mgmt.compute.v2017_03_30.models module¶
- class azure.mgmt.compute.v2017_03_30.models.AccessLevel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
AccessLevel.
- NONE = 'None'¶
- READ = 'Read'¶
- class azure.mgmt.compute.v2017_03_30.models.AccessUri(**kwargs: Any)[source]¶
Bases:
Model
A disk access SAS uri.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
access_sas (str) – A SAS uri for accessing a disk.
- class azure.mgmt.compute.v2017_03_30.models.AdditionalUnattendContent(*, pass_name: Literal['OobeSystem'] | None = None, component_name: Literal['Microsoft-Windows-Shell-Setup'] | None = None, setting_name: str | _models.SettingNames | None = None, content: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.
- Variables:
pass_name (str) – The pass name. Currently, the only allowable value is OobeSystem. Default value is “OobeSystem”.
component_name (str) – The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Default value is “Microsoft-Windows-Shell-Setup”.
setting_name (str or SettingNames) – Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Known values are: “AutoLogon” and “FirstLogonCommands”.
content (str) – Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted.
- Keyword Arguments:
pass_name (str) – The pass name. Currently, the only allowable value is OobeSystem. Default value is “OobeSystem”.
component_name (str) – The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Default value is “Microsoft-Windows-Shell-Setup”.
setting_name (str or SettingNames) – Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Known values are: “AutoLogon” and “FirstLogonCommands”.
content (str) – Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted.
- class azure.mgmt.compute.v2017_03_30.models.ApiEntityReference(*, id: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The API entity reference.
- class azure.mgmt.compute.v2017_03_30.models.ApiError(*, details: List[_models.ApiErrorBase] | None = None, innererror: _models.InnerError | None = None, code: str | None = None, target: str | None = None, message: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Api error.
- Variables:
details (list[ApiErrorBase]) – The Api error details.
innererror (InnerError) – The Api inner error.
code (str) – The error code.
target (str) – The target of the particular error.
message (str) – The error message.
- Keyword Arguments:
details (list[ApiErrorBase]) – The Api error details.
innererror (InnerError) – The Api inner error.
code (str) – The error code.
target (str) – The target of the particular error.
message (str) – The error message.
- class azure.mgmt.compute.v2017_03_30.models.ApiErrorBase(*, code: str | None = None, target: str | None = None, message: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Api error base.
- class azure.mgmt.compute.v2017_03_30.models.AvailabilitySet(*, location: str, tags: Dict[str, str] | None = None, sku: _models.Sku | None = None, platform_update_domain_count: int | None = None, platform_fault_domain_count: int | None = None, virtual_machines: List[_models.SubResource] | None = None, **kwargs: Any)[source]¶
Bases:
Resource
Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Manage the availability of virtual machines.
<br>
<br>
For more information on Azure planned maintenance, see Planned maintenance for virtual machines in Azure<br>
<br>
Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
sku (Sku) – Sku of the availability set.
platform_update_domain_count (int) – Update Domain count.
platform_fault_domain_count (int) – Fault Domain count.
virtual_machines (list[SubResource]) – A list of references to all virtual machines in the availability set.
statuses (list[InstanceViewStatus]) – The resource status information.
- Keyword Arguments:
location (str) – Resource location. Required.
sku (Sku) – Sku of the availability set.
platform_update_domain_count (int) – Update Domain count.
platform_fault_domain_count (int) – Fault Domain count.
virtual_machines (list[SubResource]) – A list of references to all virtual machines in the availability set.
- class azure.mgmt.compute.v2017_03_30.models.AvailabilitySetListResult(*, value: List[_models.AvailabilitySet], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Availability Set operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[AvailabilitySet]) – The list of availability sets. Required.
next_link (str) – The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets.
- Keyword Arguments:
value (list[AvailabilitySet]) – The list of availability sets. Required.
next_link (str) – The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets.
- class azure.mgmt.compute.v2017_03_30.models.BootDiagnostics(*, enabled: bool | None = None, storage_uri: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
<br>
<br>
You can easily view the output of your console log.<br>
<br>
Azure also enables you to see a screenshot of the VM from the hypervisor.- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.BootDiagnosticsInstanceView(**kwargs: Any)[source]¶
Bases:
Model
The instance view of a virtual machine boot diagnostics.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.compute.v2017_03_30.models.CachingTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage.- NONE = 'None'¶
- READ_ONLY = 'ReadOnly'¶
- READ_WRITE = 'ReadWrite'¶
- class azure.mgmt.compute.v2017_03_30.models.ComputeLongRunningOperationProperties(*, output: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Compute-specific operation properties, including output.
- Variables:
output (JSON) – Operation output data (raw JSON).
- Keyword Arguments:
output (JSON) – Operation output data (raw JSON).
- class azure.mgmt.compute.v2017_03_30.models.CreationData(*, create_option: str | _models.DiskCreateOption, storage_account_id: str | None = None, image_reference: _models.ImageDiskReference | None = None, source_uri: str | None = None, source_resource_id: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Data used when creating a disk.
All required parameters must be populated in order to send to server.
- Variables:
create_option (str or DiskCreateOption) – This enumerates the possible sources of a disk’s creation. Required. Known values are: “Empty”, “Attach”, “FromImage”, “Import”, “Copy”, and “Import”.
storage_account_id (str) – If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription.
image_reference (ImageDiskReference) – Disk source information.
source_uri (str) – If createOption is Import, this is the URI of a blob to be imported into a managed disk.
source_resource_id (str) – If createOption is Copy, this is the ARM id of the source snapshot or disk.
- Keyword Arguments:
create_option (str or DiskCreateOption) – This enumerates the possible sources of a disk’s creation. Required. Known values are: “Empty”, “Attach”, “FromImage”, “Import”, “Copy”, and “Import”.
storage_account_id (str) – If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription.
image_reference (ImageDiskReference) – Disk source information.
source_uri (str) – If createOption is Import, this is the URI of a blob to be imported into a managed disk.
source_resource_id (str) – If createOption is Copy, this is the ARM id of the source snapshot or disk.
- class azure.mgmt.compute.v2017_03_30.models.DataDisk(*, lun: int, create_option: str | _models.DiskCreateOptionTypes, name: str | None = None, vhd: _models.VirtualHardDisk | None = None, image: _models.VirtualHardDisk | None = None, caching: str | _models.CachingTypes | None = None, disk_size_gb: int | None = None, managed_disk: _models.ManagedDiskParameters | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a data disk.
All required parameters must be populated in order to send to server.
- Variables:
lun (int) – Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required.
name (str) – The disk name.
vhd (VirtualHardDisk) – The virtual hard disk.
image (VirtualHardDisk) – The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.create_option (str or DiskCreateOptionTypes) – Specifies how the virtual machine should be created.
<br>
<br>
Possible values are:<br>
<br>
Attach u2013 This value is used when you are using a specialized disk to create the virtual machine.<br>
<br>
FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: “FromImage”, “Empty”, and “Attach”.disk_size_gb (int) – Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.managed_disk (ManagedDiskParameters) – The managed disk parameters.
- Keyword Arguments:
lun (int) – Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required.
name (str) – The disk name.
vhd (VirtualHardDisk) – The virtual hard disk.
image (VirtualHardDisk) – The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.create_option (str or DiskCreateOptionTypes) – Specifies how the virtual machine should be created.
<br>
<br>
Possible values are:<br>
<br>
Attach u2013 This value is used when you are using a specialized disk to create the virtual machine.<br>
<br>
FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: “FromImage”, “Empty”, and “Attach”.disk_size_gb (int) – Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.managed_disk (ManagedDiskParameters) – The managed disk parameters.
- class azure.mgmt.compute.v2017_03_30.models.DataDiskImage(**kwargs: Any)[source]¶
Bases:
Model
Contains the data disk images information.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
lun (int) – Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
- class azure.mgmt.compute.v2017_03_30.models.DiagnosticsProfile(*, boot_diagnostics: _models.BootDiagnostics | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies the boot diagnostic settings state.
<br>
:code:`<br>`Minimum api-version: 2015-06-15.- Variables:
boot_diagnostics (BootDiagnostics) – Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
<br>
<br>
You can easily view the output of your console log.<br>
<br>
Azure also enables you to see a screenshot of the VM from the hypervisor.- Keyword Arguments:
boot_diagnostics (BootDiagnostics) – Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
<br>
<br>
You can easily view the output of your console log.<br>
<br>
Azure also enables you to see a screenshot of the VM from the hypervisor.
- class azure.mgmt.compute.v2017_03_30.models.Disk(*, location: str, tags: Dict[str, str] | None = None, sku: _models.DiskSku | None = None, zones: List[str] | None = None, os_type: str | _models.OperatingSystemTypes | None = None, creation_data: _models.CreationData | None = None, disk_size_gb: int | None = None, encryption_settings: _models.EncryptionSettings | None = None, **kwargs: Any)[source]¶
Bases:
Resource
Disk resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
managed_by (str) – A relative URI containing the ID of the VM that has the disk attached.
sku (DiskSku) – The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
time_created (datetime) – The time when the disk was created.
os_type (str or OperatingSystemTypes) – The Operating System type. Known values are: “Windows” and “Linux”.
creation_data (CreationData) – Disk source information. CreationData information cannot be changed after the disk has been created.
disk_size_gb (int) – If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
encryption_settings (EncryptionSettings) – Encryption settings for disk or snapshot.
provisioning_state (str) – The disk provisioning state.
- Keyword Arguments:
location (str) – Resource location. Required.
sku (DiskSku) – The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
os_type (str or OperatingSystemTypes) – The Operating System type. Known values are: “Windows” and “Linux”.
creation_data (CreationData) – Disk source information. CreationData information cannot be changed after the disk has been created.
disk_size_gb (int) – If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
encryption_settings (EncryptionSettings) – Encryption settings for disk or snapshot.
- class azure.mgmt.compute.v2017_03_30.models.DiskCreateOption(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
This enumerates the possible sources of a disk’s creation.
- ATTACH = 'Attach'¶
- COPY = 'Copy'¶
- EMPTY = 'Empty'¶
- FROM_IMAGE = 'FromImage'¶
- IMPORT = 'Import'¶
- IMPORT_ENUM = 'Import'¶
- class azure.mgmt.compute.v2017_03_30.models.DiskCreateOptionTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Specifies how the virtual machine should be created.
<br>
<br>
Possible values are:<br>
<br>
Attach u2013 This value is used when you are using a specialized disk to create the virtual machine.<br>
<br>
FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described.- ATTACH = 'Attach'¶
- EMPTY = 'Empty'¶
- FROM_IMAGE = 'FromImage'¶
- class azure.mgmt.compute.v2017_03_30.models.DiskEncryptionSettings(*, disk_encryption_key: _models.KeyVaultSecretReference | None = None, key_encryption_key: _models.KeyVaultKeyReference | None = None, enabled: bool | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a Encryption Settings for a Disk.
- Variables:
disk_encryption_key (KeyVaultSecretReference) – Specifies the location of the disk encryption key, which is a Key Vault Secret.
key_encryption_key (KeyVaultKeyReference) – Specifies the location of the key encryption key in Key Vault.
enabled (bool) – Specifies whether disk encryption should be enabled on the virtual machine.
- Keyword Arguments:
disk_encryption_key (KeyVaultSecretReference) – Specifies the location of the disk encryption key, which is a Key Vault Secret.
key_encryption_key (KeyVaultKeyReference) – Specifies the location of the key encryption key in Key Vault.
enabled (bool) – Specifies whether disk encryption should be enabled on the virtual machine.
- class azure.mgmt.compute.v2017_03_30.models.DiskInstanceView(*, name: str | None = None, encryption_settings: List[_models.DiskEncryptionSettings] | None = None, statuses: List[_models.InstanceViewStatus] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The instance view of the disk.
- Variables:
name (str) – The disk name.
encryption_settings (list[DiskEncryptionSettings]) – Specifies the encryption settings for the OS Disk.
<br>
<br>
Minimum api-version: 2015-06-15.statuses (list[InstanceViewStatus]) – The resource status information.
- Keyword Arguments:
name (str) – The disk name.
encryption_settings (list[DiskEncryptionSettings]) – Specifies the encryption settings for the OS Disk.
<br>
<br>
Minimum api-version: 2015-06-15.statuses (list[InstanceViewStatus]) – The resource status information.
- class azure.mgmt.compute.v2017_03_30.models.DiskList(*, value: List[_models.Disk], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Disks operation response.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.DiskSku(*, name: str | _models.StorageAccountTypes | None = None, **kwargs: Any)[source]¶
Bases:
Model
The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
name (str or StorageAccountTypes) – The sku name. Known values are: “Standard_LRS” and “Premium_LRS”.
tier (str) – The sku tier.
- Keyword Arguments:
name (str or StorageAccountTypes) – The sku name. Known values are: “Standard_LRS” and “Premium_LRS”.
- class azure.mgmt.compute.v2017_03_30.models.DiskUpdate(*, tags: Dict[str, str] | None = None, sku: _models.DiskSku | None = None, os_type: str | _models.OperatingSystemTypes | None = None, disk_size_gb: int | None = None, encryption_settings: _models.EncryptionSettings | None = None, **kwargs: Any)[source]¶
Bases:
ResourceUpdate
Disk update resource.
- Variables:
sku (DiskSku) – The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
os_type (str or OperatingSystemTypes) – the Operating System type. Known values are: “Windows” and “Linux”.
disk_size_gb (int) – If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
encryption_settings (EncryptionSettings) – Encryption settings for disk or snapshot.
- Keyword Arguments:
sku (DiskSku) – The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
os_type (str or OperatingSystemTypes) – the Operating System type. Known values are: “Windows” and “Linux”.
disk_size_gb (int) – If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
encryption_settings (EncryptionSettings) – Encryption settings for disk or snapshot.
- class azure.mgmt.compute.v2017_03_30.models.EncryptionSettings(*, enabled: bool | None = None, disk_encryption_key: _models.KeyVaultAndSecretReference | None = None, key_encryption_key: _models.KeyVaultAndKeyReference | None = None, **kwargs: Any)[source]¶
Bases:
Model
Encryption settings for disk or snapshot.
- Variables:
enabled (bool) – Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
disk_encryption_key (KeyVaultAndSecretReference) – Key Vault Secret Url and vault id of the disk encryption key.
key_encryption_key (KeyVaultAndKeyReference) – Key Vault Key Url and vault id of the key encryption key.
- Keyword Arguments:
enabled (bool) – Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
disk_encryption_key (KeyVaultAndSecretReference) – Key Vault Secret Url and vault id of the disk encryption key.
key_encryption_key (KeyVaultAndKeyReference) – Key Vault Key Url and vault id of the key encryption key.
- class azure.mgmt.compute.v2017_03_30.models.GrantAccessData(*, access: str | _models.AccessLevel, duration_in_seconds: int, **kwargs: Any)[source]¶
Bases:
Model
Data used for requesting a SAS.
All required parameters must be populated in order to send to server.
- Variables:
access (str or AccessLevel) – Required. Known values are: “None” and “Read”.
duration_in_seconds (int) – Time duration in seconds until the SAS access expires. Required.
- Keyword Arguments:
access (str or AccessLevel) – Required. Known values are: “None” and “Read”.
duration_in_seconds (int) – Time duration in seconds until the SAS access expires. Required.
- class azure.mgmt.compute.v2017_03_30.models.HardwareProfile(*, vm_size: str | _models.VirtualMachineSizeTypes | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies the hardware settings for the virtual machine.
- Variables:
vm_size (str or VirtualMachineSizeTypes) – Specifies the size of the virtual machine. For more information about virtual machine sizes, see Sizes for virtual machines. # pylint: disable=line-too-long
<br>
<br>
The available VM sizes depend on region and availability set. For a list of available sizes use these APIs:<br>
<br>
List all available virtual machine sizes in an availability set<br>
<br>
List all available virtual machine sizes in a region<br>
<br>
List all available virtual machine sizes for resizing. Known values are: “Basic_A0”, “Basic_A1”, “Basic_A2”, “Basic_A3”, “Basic_A4”, “Standard_A0”, “Standard_A1”, “Standard_A2”, “Standard_A3”, “Standard_A4”, “Standard_A5”, “Standard_A6”, “Standard_A7”, “Standard_A8”, “Standard_A9”, “Standard_A10”, “Standard_A11”, “Standard_A1_v2”, “Standard_A2_v2”, “Standard_A4_v2”, “Standard_A8_v2”, “Standard_A2m_v2”, “Standard_A4m_v2”, “Standard_A8m_v2”, “Standard_D1”, “Standard_D2”, “Standard_D3”, “Standard_D4”, “Standard_D11”, “Standard_D12”, “Standard_D13”, “Standard_D14”, “Standard_D1_v2”, “Standard_D2_v2”, “Standard_D3_v2”, “Standard_D4_v2”, “Standard_D5_v2”, “Standard_D11_v2”, “Standard_D12_v2”, “Standard_D13_v2”, “Standard_D14_v2”, “Standard_D15_v2”, “Standard_DS1”, “Standard_DS2”, “Standard_DS3”, “Standard_DS4”, “Standard_DS11”, “Standard_DS12”, “Standard_DS13”, “Standard_DS14”, “Standard_DS1_v2”, “Standard_DS2_v2”, “Standard_DS3_v2”, “Standard_DS4_v2”, “Standard_DS5_v2”, “Standard_DS11_v2”, “Standard_DS12_v2”, “Standard_DS13_v2”, “Standard_DS14_v2”, “Standard_DS15_v2”, “Standard_F1”, “Standard_F2”, “Standard_F4”, “Standard_F8”, “Standard_F16”, “Standard_F1s”, “Standard_F2s”, “Standard_F4s”, “Standard_F8s”, “Standard_F16s”, “Standard_G1”, “Standard_G2”, “Standard_G3”, “Standard_G4”, “Standard_G5”, “Standard_GS1”, “Standard_GS2”, “Standard_GS3”, “Standard_GS4”, “Standard_GS5”, “Standard_H8”, “Standard_H16”, “Standard_H8m”, “Standard_H16m”, “Standard_H16r”, “Standard_H16mr”, “Standard_L4s”, “Standard_L8s”, “Standard_L16s”, “Standard_L32s”, “Standard_NC6”, “Standard_NC12”, “Standard_NC24”, “Standard_NC24r”, “Standard_NV6”, “Standard_NV12”, and “Standard_NV24”.- Keyword Arguments:
vm_size (str or VirtualMachineSizeTypes) –
Specifies the size of the virtual machine. For more information about virtual machine sizes, see Sizes for virtual machines. # pylint: disable=line-too-long
<br>
<br>
The available VM sizes depend on region and availability set. For a list of available sizes use these APIs:<br>
<br>
List all available virtual machine sizes in an availability set<br>
<br>
List all available virtual machine sizes in a region<br>
<br>
List all available virtual machine sizes for resizing. Known values are: “Basic_A0”, “Basic_A1”, “Basic_A2”, “Basic_A3”, “Basic_A4”, “Standard_A0”, “Standard_A1”, “Standard_A2”, “Standard_A3”, “Standard_A4”, “Standard_A5”, “Standard_A6”, “Standard_A7”, “Standard_A8”, “Standard_A9”, “Standard_A10”, “Standard_A11”, “Standard_A1_v2”, “Standard_A2_v2”, “Standard_A4_v2”, “Standard_A8_v2”, “Standard_A2m_v2”, “Standard_A4m_v2”, “Standard_A8m_v2”, “Standard_D1”, “Standard_D2”, “Standard_D3”, “Standard_D4”, “Standard_D11”, “Standard_D12”, “Standard_D13”, “Standard_D14”, “Standard_D1_v2”, “Standard_D2_v2”, “Standard_D3_v2”, “Standard_D4_v2”, “Standard_D5_v2”, “Standard_D11_v2”, “Standard_D12_v2”, “Standard_D13_v2”, “Standard_D14_v2”, “Standard_D15_v2”, “Standard_DS1”, “Standard_DS2”, “Standard_DS3”, “Standard_DS4”, “Standard_DS11”, “Standard_DS12”, “Standard_DS13”, “Standard_DS14”, “Standard_DS1_v2”, “Standard_DS2_v2”, “Standard_DS3_v2”, “Standard_DS4_v2”, “Standard_DS5_v2”, “Standard_DS11_v2”, “Standard_DS12_v2”, “Standard_DS13_v2”, “Standard_DS14_v2”, “Standard_DS15_v2”, “Standard_F1”, “Standard_F2”, “Standard_F4”, “Standard_F8”, “Standard_F16”, “Standard_F1s”, “Standard_F2s”, “Standard_F4s”, “Standard_F8s”, “Standard_F16s”, “Standard_G1”, “Standard_G2”, “Standard_G3”, “Standard_G4”, “Standard_G5”, “Standard_GS1”, “Standard_GS2”, “Standard_GS3”, “Standard_GS4”, “Standard_GS5”, “Standard_H8”, “Standard_H16”, “Standard_H8m”, “Standard_H16m”, “Standard_H16r”, “Standard_H16mr”, “Standard_L4s”, “Standard_L8s”, “Standard_L16s”, “Standard_L32s”, “Standard_NC6”, “Standard_NC12”, “Standard_NC24”, “Standard_NC24r”, “Standard_NV6”, “Standard_NV12”, and “Standard_NV24”.
- class azure.mgmt.compute.v2017_03_30.models.IPVersion(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ‘IPv4’ and ‘IPv6’.
- I_PV4 = 'IPv4'¶
- I_PV6 = 'IPv6'¶
- class azure.mgmt.compute.v2017_03_30.models.Image(*, location: str, tags: Dict[str, str] | None = None, source_virtual_machine: _models.SubResource | None = None, storage_profile: _models.ImageStorageProfile | None = None, **kwargs: Any)[source]¶
Bases:
Resource
The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
source_virtual_machine (SubResource) – The source virtual machine from which Image is created.
storage_profile (ImageStorageProfile) – Specifies the storage settings for the virtual machine disks.
provisioning_state (str) – The provisioning state.
- Keyword Arguments:
location (str) – Resource location. Required.
source_virtual_machine (SubResource) – The source virtual machine from which Image is created.
storage_profile (ImageStorageProfile) – Specifies the storage settings for the virtual machine disks.
- class azure.mgmt.compute.v2017_03_30.models.ImageDataDisk(*, lun: int, snapshot: _models.SubResource | None = None, managed_disk: _models.SubResource | None = None, blob_uri: str | None = None, caching: str | _models.CachingTypes | None = None, disk_size_gb: int | None = None, storage_account_type: str | _models.StorageAccountTypes | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a data disk.
All required parameters must be populated in order to send to server.
- Variables:
lun (int) – Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required.
snapshot (SubResource) – The snapshot.
managed_disk (SubResource) – The managedDisk.
blob_uri (str) – The Virtual Hard Disk.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.disk_size_gb (int) – Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.storage_account_type (str or StorageAccountTypes) – Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: “Standard_LRS” and “Premium_LRS”.
- Keyword Arguments:
lun (int) – Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required.
snapshot (SubResource) – The snapshot.
managed_disk (SubResource) – The managedDisk.
blob_uri (str) – The Virtual Hard Disk.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.disk_size_gb (int) – Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.storage_account_type (str or StorageAccountTypes) – Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: “Standard_LRS” and “Premium_LRS”.
- class azure.mgmt.compute.v2017_03_30.models.ImageDiskReference(*, id: str, lun: int | None = None, **kwargs: Any)[source]¶
Bases:
Model
The source image used for creating the disk.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.ImageListResult(*, value: List[_models.Image], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Image operation response.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.ImageOSDisk(*, os_type: str | _models.OperatingSystemTypes, os_state: str | _models.OperatingSystemStateTypes, snapshot: _models.SubResource | None = None, managed_disk: _models.SubResource | None = None, blob_uri: str | None = None, caching: str | _models.CachingTypes | None = None, disk_size_gb: int | None = None, storage_account_type: str | _models.StorageAccountTypes | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes an Operating System disk.
All required parameters must be populated in order to send to server.
- Variables:
os_type (str or OperatingSystemTypes) – This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.
<br>
<br>
Possible values are:<br>
<br>
Windows<br>
<br>
Linux. Required. Known values are: “Windows” and “Linux”.os_state (str or OperatingSystemStateTypes) – The OS State. Required. Known values are: “Generalized” and “Specialized”.
snapshot (SubResource) – The snapshot.
managed_disk (SubResource) – The managedDisk.
blob_uri (str) – The Virtual Hard Disk.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.disk_size_gb (int) – Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.storage_account_type (str or StorageAccountTypes) – Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: “Standard_LRS” and “Premium_LRS”.
- Keyword Arguments:
os_type (str or OperatingSystemTypes) – This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.
<br>
<br>
Possible values are:<br>
<br>
Windows<br>
<br>
Linux. Required. Known values are: “Windows” and “Linux”.os_state (str or OperatingSystemStateTypes) – The OS State. Required. Known values are: “Generalized” and “Specialized”.
snapshot (SubResource) – The snapshot.
managed_disk (SubResource) – The managedDisk.
blob_uri (str) – The Virtual Hard Disk.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.disk_size_gb (int) – Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.storage_account_type (str or StorageAccountTypes) – Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: “Standard_LRS” and “Premium_LRS”.
- class azure.mgmt.compute.v2017_03_30.models.ImageReference(*, id: str | None = None, publisher: str | None = None, offer: str | None = None, sku: str | None = None, version: str | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set.
- Variables:
id (str) – Resource Id.
publisher (str) – The image publisher.
offer (str) – Specifies the offer of the platform image or marketplace image used to create the virtual machine.
sku (str) – The image SKU.
version (str) – Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or ‘latest’. Major, Minor, and Build are decimal numbers. Specify ‘latest’ to use the latest version of an image available at deploy time. Even if you use ‘latest’, the VM image will not automatically update after deploy time even if a new version becomes available.
- Keyword Arguments:
id (str) – Resource Id.
publisher (str) – The image publisher.
offer (str) – Specifies the offer of the platform image or marketplace image used to create the virtual machine.
sku (str) – The image SKU.
version (str) – Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or ‘latest’. Major, Minor, and Build are decimal numbers. Specify ‘latest’ to use the latest version of an image available at deploy time. Even if you use ‘latest’, the VM image will not automatically update after deploy time even if a new version becomes available.
- class azure.mgmt.compute.v2017_03_30.models.ImageStorageProfile(*, os_disk: _models.ImageOSDisk, data_disks: List[_models.ImageDataDisk] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a storage profile.
All required parameters must be populated in order to send to server.
- Variables:
os_disk (ImageOSDisk) – Specifies information about the operating system disk used by the virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-long Required.data_disks (list[ImageDataDisk]) –
Specifies the parameters that are used to add a data disk to a virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-long
- Keyword Arguments:
os_disk (ImageOSDisk) –
Specifies information about the operating system disk used by the virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-long Required.data_disks (list[ImageDataDisk]) –
Specifies the parameters that are used to add a data disk to a virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-long
- class azure.mgmt.compute.v2017_03_30.models.InnerError(*, exceptiontype: str | None = None, errordetail: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Inner error details.
- class azure.mgmt.compute.v2017_03_30.models.InstanceViewStatus(*, code: str | None = None, level: str | _models.StatusLevelTypes | None = None, display_status: str | None = None, message: str | None = None, time: datetime | None = None, **kwargs: Any)[source]¶
Bases:
Model
Instance view status.
- Variables:
code (str) – The status code.
level (str or StatusLevelTypes) – The level code. Known values are: “Info”, “Warning”, and “Error”.
display_status (str) – The short localizable label for the status.
message (str) – The detailed status message, including for alerts and error messages.
time (datetime) – The time of the status.
- Keyword Arguments:
code (str) – The status code.
level (str or StatusLevelTypes) – The level code. Known values are: “Info”, “Warning”, and “Error”.
display_status (str) – The short localizable label for the status.
message (str) – The detailed status message, including for alerts and error messages.
time (datetime) – The time of the status.
- class azure.mgmt.compute.v2017_03_30.models.KeyVaultAndKeyReference(*, source_vault: _models.SourceVault, key_url: str, **kwargs: Any)[source]¶
Bases:
Model
Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey.
All required parameters must be populated in order to send to server.
- Variables:
source_vault (SourceVault) – Resource id of the KeyVault containing the key or secret. Required.
key_url (str) – Url pointing to a key or secret in KeyVault. Required.
- Keyword Arguments:
source_vault (SourceVault) – Resource id of the KeyVault containing the key or secret. Required.
key_url (str) – Url pointing to a key or secret in KeyVault. Required.
- class azure.mgmt.compute.v2017_03_30.models.KeyVaultAndSecretReference(*, source_vault: _models.SourceVault, secret_url: str, **kwargs: Any)[source]¶
Bases:
Model
Key Vault Secret Url and vault id of the encryption key.
All required parameters must be populated in order to send to server.
- Variables:
source_vault (SourceVault) – Resource id of the KeyVault containing the key or secret. Required.
secret_url (str) – Url pointing to a key or secret in KeyVault. Required.
- Keyword Arguments:
source_vault (SourceVault) – Resource id of the KeyVault containing the key or secret. Required.
secret_url (str) – Url pointing to a key or secret in KeyVault. Required.
- class azure.mgmt.compute.v2017_03_30.models.KeyVaultKeyReference(*, key_url: str, source_vault: _models.SubResource, **kwargs: Any)[source]¶
Bases:
Model
Describes a reference to Key Vault Key.
All required parameters must be populated in order to send to server.
- Variables:
key_url (str) – The URL referencing a key encryption key in Key Vault. Required.
source_vault (SubResource) – The relative URL of the Key Vault containing the key. Required.
- Keyword Arguments:
key_url (str) – The URL referencing a key encryption key in Key Vault. Required.
source_vault (SubResource) – The relative URL of the Key Vault containing the key. Required.
- class azure.mgmt.compute.v2017_03_30.models.KeyVaultSecretReference(*, secret_url: str, source_vault: _models.SubResource, **kwargs: Any)[source]¶
Bases:
Model
Describes a reference to Key Vault Secret.
All required parameters must be populated in order to send to server.
- Variables:
secret_url (str) – The URL referencing a secret in a Key Vault. Required.
source_vault (SubResource) – The relative URL of the Key Vault containing the secret. Required.
- Keyword Arguments:
secret_url (str) – The URL referencing a secret in a Key Vault. Required.
source_vault (SubResource) – The relative URL of the Key Vault containing the secret. Required.
- class azure.mgmt.compute.v2017_03_30.models.LinuxConfiguration(*, disable_password_authentication: bool | None = None, ssh: _models.SshConfiguration | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies the Linux operating system settings on the virtual machine.
<br>
:code:`<br>`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions <https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json>`_<br>
<br>
For running non-endorsed distributions, see Information for Non-Endorsed Distributions.- Variables:
disable_password_authentication (bool) – Specifies whether password authentication should be disabled.
ssh (SshConfiguration) – Specifies the ssh key configuration for a Linux OS.
- Keyword Arguments:
disable_password_authentication (bool) – Specifies whether password authentication should be disabled.
ssh (SshConfiguration) – Specifies the ssh key configuration for a Linux OS.
- class azure.mgmt.compute.v2017_03_30.models.ListUsagesResult(*, value: List[_models.Usage], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Usages operation response.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.MaintenanceOperationResultCodeTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
The Last Maintenance Operation Result Code.
- MAINTENANCE_ABORTED = 'MaintenanceAborted'¶
- MAINTENANCE_COMPLETED = 'MaintenanceCompleted'¶
- NONE = 'None'¶
- RETRY_LATER = 'RetryLater'¶
- class azure.mgmt.compute.v2017_03_30.models.MaintenanceRedeployStatus(*, is_customer_initiated_maintenance_allowed: bool | None = None, pre_maintenance_window_start_time: datetime | None = None, pre_maintenance_window_end_time: datetime | None = None, maintenance_window_start_time: datetime | None = None, maintenance_window_end_time: datetime | None = None, last_operation_result_code: str | _models.MaintenanceOperationResultCodeTypes | None = None, last_operation_message: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Maintenance Operation Status.
- Variables:
is_customer_initiated_maintenance_allowed (bool) – True, if customer is allowed to perform Maintenance.
pre_maintenance_window_start_time (datetime) – Start Time for the Pre Maintenance Window.
pre_maintenance_window_end_time (datetime) – End Time for the Pre Maintenance Window.
maintenance_window_start_time (datetime) – Start Time for the Maintenance Window.
maintenance_window_end_time (datetime) – End Time for the Maintenance Window.
last_operation_result_code (str or MaintenanceOperationResultCodeTypes) – The Last Maintenance Operation Result Code. Known values are: “None”, “RetryLater”, “MaintenanceAborted”, and “MaintenanceCompleted”.
last_operation_message (str) – Message returned for the last Maintenance Operation.
- Keyword Arguments:
is_customer_initiated_maintenance_allowed (bool) – True, if customer is allowed to perform Maintenance.
pre_maintenance_window_start_time (datetime) – Start Time for the Pre Maintenance Window.
pre_maintenance_window_end_time (datetime) – End Time for the Pre Maintenance Window.
maintenance_window_start_time (datetime) – Start Time for the Maintenance Window.
maintenance_window_end_time (datetime) – End Time for the Maintenance Window.
last_operation_result_code (str or MaintenanceOperationResultCodeTypes) – The Last Maintenance Operation Result Code. Known values are: “None”, “RetryLater”, “MaintenanceAborted”, and “MaintenanceCompleted”.
last_operation_message (str) – Message returned for the last Maintenance Operation.
- class azure.mgmt.compute.v2017_03_30.models.ManagedDiskParameters(*, id: str | None = None, storage_account_type: str | _models.StorageAccountTypes | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
The parameters of a managed disk.
- Variables:
id (str) – Resource Id.
storage_account_type (str or StorageAccountTypes) – Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: “Standard_LRS” and “Premium_LRS”.
- Keyword Arguments:
id (str) – Resource Id.
storage_account_type (str or StorageAccountTypes) – Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS. Known values are: “Standard_LRS” and “Premium_LRS”.
- class azure.mgmt.compute.v2017_03_30.models.NetworkInterfaceReference(*, id: str | None = None, primary: bool | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
Describes a network interface reference.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.NetworkProfile(*, network_interfaces: List[_models.NetworkInterfaceReference] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies the network interfaces of the virtual machine.
- Variables:
network_interfaces (list[NetworkInterfaceReference]) – Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
- Keyword Arguments:
network_interfaces (list[NetworkInterfaceReference]) – Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
- class azure.mgmt.compute.v2017_03_30.models.OSDisk(*, create_option: str | _models.DiskCreateOptionTypes, os_type: str | _models.OperatingSystemTypes | None = None, encryption_settings: _models.DiskEncryptionSettings | None = None, name: str | None = None, vhd: _models.VirtualHardDisk | None = None, image: _models.VirtualHardDisk | None = None, caching: str | _models.CachingTypes | None = None, disk_size_gb: int | None = None, managed_disk: _models.ManagedDiskParameters | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies information about the operating system disk used by the virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines.All required parameters must be populated in order to send to server.
- Variables:
os_type (str or OperatingSystemTypes) – This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
<br>
<br>
Possible values are:<br>
<br>
Windows<br>
<br>
Linux. Known values are: “Windows” and “Linux”.encryption_settings (DiskEncryptionSettings) – Specifies the encryption settings for the OS Disk.
<br>
<br>
Minimum api-version: 2015-06-15.name (str) – The disk name.
vhd (VirtualHardDisk) – The virtual hard disk.
image (VirtualHardDisk) – The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.create_option (str or DiskCreateOptionTypes) – Specifies how the virtual machine should be created.
<br>
<br>
Possible values are:<br>
<br>
Attach u2013 This value is used when you are using a specialized disk to create the virtual machine.<br>
<br>
FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: “FromImage”, “Empty”, and “Attach”.disk_size_gb (int) – Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.managed_disk (ManagedDiskParameters) – The managed disk parameters.
- Keyword Arguments:
os_type (str or OperatingSystemTypes) – This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
<br>
<br>
Possible values are:<br>
<br>
Windows<br>
<br>
Linux. Known values are: “Windows” and “Linux”.encryption_settings (DiskEncryptionSettings) – Specifies the encryption settings for the OS Disk.
<br>
<br>
Minimum api-version: 2015-06-15.name (str) – The disk name.
vhd (VirtualHardDisk) – The virtual hard disk.
image (VirtualHardDisk) – The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.create_option (str or DiskCreateOptionTypes) – Specifies how the virtual machine should be created.
<br>
<br>
Possible values are:<br>
<br>
Attach u2013 This value is used when you are using a specialized disk to create the virtual machine.<br>
<br>
FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: “FromImage”, “Empty”, and “Attach”.disk_size_gb (int) – Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.managed_disk (ManagedDiskParameters) – The managed disk parameters.
- class azure.mgmt.compute.v2017_03_30.models.OSDiskImage(*, operating_system: str | _models.OperatingSystemTypes, **kwargs: Any)[source]¶
Bases:
Model
Contains the os disk image information.
All required parameters must be populated in order to send to server.
- Variables:
operating_system (str or OperatingSystemTypes) – The operating system of the osDiskImage. Required. Known values are: “Windows” and “Linux”.
- Keyword Arguments:
operating_system (str or OperatingSystemTypes) – The operating system of the osDiskImage. Required. Known values are: “Windows” and “Linux”.
- class azure.mgmt.compute.v2017_03_30.models.OSProfile(*, computer_name: str | None = None, admin_username: str | None = None, admin_password: str | None = None, custom_data: str | None = None, windows_configuration: _models.WindowsConfiguration | None = None, linux_configuration: _models.LinuxConfiguration | None = None, secrets: List[_models.VaultSecretGroup] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies the operating system settings for the virtual machine.
- Variables:
computer_name (str) – Specifies the host OS name of the virtual machine.
<br>
<br>
This name cannot be updated after the VM is created.<br>
<br>
Max-length (Windows): 15 characters<br>
<br>
Max-length (Linux): 64 characters.<br>
<br>
For naming conventions and restrictions see Azure infrastructure services implementation guidelines. # pylint: disable=line-too-longadmin_username (str) – Specifies the name of the administrator account.
<br>
<br>
Windows-only restriction: Cannot end in “.”<br>
<br>
Disallowed values: “administrator”, “admin”, “user”, “user1”, “test”, “user2”, “test1”, “user3”, “admin1”, “1”, “123”, “a”, “actuser”, “adm”, “admin2”, “aspnet”, “backup”, “console”, “david”, “guest”, “john”, “owner”, “root”, “server”, “sql”, “support”, “support_388945a0”, “sys”, “test2”, “test3”, “user4”, “user5”.<br>
<br>
Minimum-length (Linux): 1 character<br>
<br>
Max-length (Linux): 64 characters<br>
<br>
Max-length (Windows): 20 characters<br>
<br>
<li>
For root access to the Linux VM, see Using root privileges on Linux virtual machines in Azure # pylint: disable=line-too-long<br>
<li>
For a list of built-in system users on Linux that should not be used in this field, see Selecting User Names for Linux on Azure. # pylint: disable=line-too-longadmin_password (str) – Specifies the password of the administrator account.
<br>
<br>
Minimum-length (Windows): 8 characters<br>
<br>
Minimum-length (Linux): 6 characters<br>
<br>
Max-length (Windows): 123 characters<br>
<br>
Max-length (Linux): 72 characters<br>
<br>
Complexity requirements: 3 out of 4 conditions below need to be fulfilled<br>
Has lower characters<br>`Has upper characters :code:`<br>
Has a digit<br>
Has a special character (Regex match [W_])<br>
<br>
Disallowed values: “abc@123”, “P@$$w0rd”, “P@ssw0rd”, “P@ssword123”, “Pa$$word”, “pass@word1”, “Password!”, “Password1”, “Password22”, “iloveyou!”<br>
<br>
For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM # pylint: disable=line-too-long<br>
<br>
For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension. # pylint: disable=line-too-longcustom_data (str) – Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.
<br>
<br>
For using cloud-init for your VM, see Using cloud-init to customize a Linux VM during creation. # pylint: disable=line-too-longwindows_configuration (WindowsConfiguration) – Specifies Windows operating system settings on the virtual machine.
linux_configuration (LinuxConfiguration) –
Specifies the Linux operating system settings on the virtual machine.
<br>
:code:`<br>`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions <https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json>`_ # pylint: disable=line-too-long<br>
<br>
For running non-endorsed distributions, see Information for Non-Endorsed Distributions. # pylint: disable=line-too-longsecrets (list[VaultSecretGroup]) – Specifies set of certificates that should be installed onto the virtual machine.
- Keyword Arguments:
computer_name (str) –
Specifies the host OS name of the virtual machine.
<br>
<br>
This name cannot be updated after the VM is created.<br>
<br>
Max-length (Windows): 15 characters<br>
<br>
Max-length (Linux): 64 characters.<br>
<br>
For naming conventions and restrictions see Azure infrastructure services implementation guidelines. # pylint: disable=line-too-longadmin_username (str) –
Specifies the name of the administrator account.
<br>
<br>
Windows-only restriction: Cannot end in “.”<br>
<br>
Disallowed values: “administrator”, “admin”, “user”, “user1”, “test”, “user2”, “test1”, “user3”, “admin1”, “1”, “123”, “a”, “actuser”, “adm”, “admin2”, “aspnet”, “backup”, “console”, “david”, “guest”, “john”, “owner”, “root”, “server”, “sql”, “support”, “support_388945a0”, “sys”, “test2”, “test3”, “user4”, “user5”.<br>
<br>
Minimum-length (Linux): 1 character<br>
<br>
Max-length (Linux): 64 characters<br>
<br>
Max-length (Windows): 20 characters<br>
<br>
<li>
For root access to the Linux VM, see Using root privileges on Linux virtual machines in Azure # pylint: disable=line-too-long<br>
<li>
For a list of built-in system users on Linux that should not be used in this field, see Selecting User Names for Linux on Azure. # pylint: disable=line-too-longadmin_password (str) –
Specifies the password of the administrator account.
<br>
<br>
Minimum-length (Windows): 8 characters<br>
<br>
Minimum-length (Linux): 6 characters<br>
<br>
Max-length (Windows): 123 characters<br>
<br>
Max-length (Linux): 72 characters<br>
<br>
Complexity requirements: 3 out of 4 conditions below need to be fulfilled<br>
Has lower characters<br>`Has upper characters :code:`<br>
Has a digit<br>
Has a special character (Regex match [W_])<br>
<br>
Disallowed values: “abc@123”, “P@$$w0rd”, “P@ssw0rd”, “P@ssword123”, “Pa$$word”, “pass@word1”, “Password!”, “Password1”, “Password22”, “iloveyou!”<br>
<br>
For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM # pylint: disable=line-too-long<br>
<br>
For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension. # pylint: disable=line-too-longcustom_data (str) –
Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.
<br>
<br>
For using cloud-init for your VM, see Using cloud-init to customize a Linux VM during creation. # pylint: disable=line-too-longwindows_configuration (WindowsConfiguration) – Specifies Windows operating system settings on the virtual machine.
linux_configuration (LinuxConfiguration) –
Specifies the Linux operating system settings on the virtual machine.
<br>
:code:`<br>`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions <https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json>`_ # pylint: disable=line-too-long<br>
<br>
For running non-endorsed distributions, see Information for Non-Endorsed Distributions. # pylint: disable=line-too-longsecrets (list[VaultSecretGroup]) – Specifies set of certificates that should be installed onto the virtual machine.
- class azure.mgmt.compute.v2017_03_30.models.OperatingSystemStateTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
The OS State.
- GENERALIZED = 'Generalized'¶
- SPECIALIZED = 'Specialized'¶
- class azure.mgmt.compute.v2017_03_30.models.OperatingSystemTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
The operating system of the osDiskImage.
- LINUX = 'Linux'¶
- WINDOWS = 'Windows'¶
- class azure.mgmt.compute.v2017_03_30.models.OperationStatusResponse(**kwargs: Any)[source]¶
Bases:
Model
Operation status response.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.compute.v2017_03_30.models.Plan(*, name: str | None = None, publisher: str | None = None, product: str | None = None, promotion_code: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.ProtocolTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Specifies the protocol of listener.
<br>
<br>
Possible values are:<br>
http<br>
<br>
https.- HTTP = 'Http'¶
- HTTPS = 'Https'¶
- class azure.mgmt.compute.v2017_03_30.models.PurchasePlan(*, publisher: str, name: str, product: str, **kwargs: Any)[source]¶
Bases:
Model
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.Resource(*, location: str, tags: Dict[str, str] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The Resource model definition.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- class azure.mgmt.compute.v2017_03_30.models.ResourceSku(**kwargs: Any)[source]¶
Bases:
Model
Describes an available Compute SKU.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
resource_type (str) – The type of resource the SKU applies to.
name (str) – The name of SKU.
tier (str) – Specifies the tier of virtual machines in a scale set.
<br />
<br />
Possible Values:<br />
<br />
Standard<br />
<br />
Basic.size (str) – The Size of the SKU.
family (str) – The Family of this particular SKU.
kind (str) – The Kind of resources that are supported in this SKU.
capacity (ResourceSkuCapacity) – Specifies the number of virtual machines in the scale set.
locations (list[str]) – The set of locations that the SKU is available.
api_versions (list[str]) – The api versions that support this SKU.
costs (list[ResourceSkuCosts]) – Metadata for retrieving price info.
capabilities (list[ResourceSkuCapabilities]) – A name value pair to describe the capability.
restrictions (list[ResourceSkuRestrictions]) – The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
- class azure.mgmt.compute.v2017_03_30.models.ResourceSkuCapabilities(**kwargs: Any)[source]¶
Bases:
Model
Describes The SKU capabilities object.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.compute.v2017_03_30.models.ResourceSkuCapacity(**kwargs: Any)[source]¶
Bases:
Model
Describes scaling information of a SKU.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
minimum (int) – The minimum capacity.
maximum (int) – The maximum capacity that can be set.
default (int) – The default capacity.
scale_type (str or ResourceSkuCapacityScaleType) – The scale type applicable to the sku. Known values are: “Automatic”, “Manual”, and “None”.
- class azure.mgmt.compute.v2017_03_30.models.ResourceSkuCapacityScaleType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
The scale type applicable to the sku.
- AUTOMATIC = 'Automatic'¶
- MANUAL = 'Manual'¶
- NONE = 'None'¶
- class azure.mgmt.compute.v2017_03_30.models.ResourceSkuCosts(**kwargs: Any)[source]¶
Bases:
Model
Describes metadata for retrieving price info.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.compute.v2017_03_30.models.ResourceSkuRestrictions(**kwargs: Any)[source]¶
Bases:
Model
Describes scaling information of a SKU.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
type (str) – The type of restrictions. Default value is “Location”.
values (list[str]) – The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
reason_code (str or ResourceSkuRestrictionsReasonCode) – The reason for restriction. Known values are: “QuotaId” and “NotAvailableForSubscription”.
- class azure.mgmt.compute.v2017_03_30.models.ResourceSkuRestrictionsReasonCode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
The reason for restriction.
- NOT_AVAILABLE_FOR_SUBSCRIPTION = 'NotAvailableForSubscription'¶
- QUOTA_ID = 'QuotaId'¶
- class azure.mgmt.compute.v2017_03_30.models.ResourceSkusResult(*, value: List[_models.ResourceSku], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The Compute List Skus operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[ResourceSku]) – The list of skus available for the subscription. Required.
next_link (str) – The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next page of VMSS Skus.
- Keyword Arguments:
value (list[ResourceSku]) – The list of skus available for the subscription. Required.
next_link (str) – The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next page of VMSS Skus.
- class azure.mgmt.compute.v2017_03_30.models.ResourceUpdate(*, tags: Dict[str, str] | None = None, sku: _models.DiskSku | None = None, **kwargs: Any)[source]¶
Bases:
Model
The Resource model definition.
- class azure.mgmt.compute.v2017_03_30.models.RollingUpgradeActionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
The last action performed on the rolling upgrade.
- CANCEL = 'Cancel'¶
- START = 'Start'¶
- class azure.mgmt.compute.v2017_03_30.models.RollingUpgradePolicy(*, max_batch_instance_percent: int | None = None, max_unhealthy_instance_percent: int | None = None, max_unhealthy_upgraded_instance_percent: int | None = None, pause_time_between_batches: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The configuration parameters used while performing a rolling upgrade.
- Variables:
max_batch_instance_percent (int) – The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
max_unhealthy_instance_percent (int) – The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.
max_unhealthy_upgraded_instance_percent (int) – The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.
pause_time_between_batches (str) – The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).
- Keyword Arguments:
max_batch_instance_percent (int) – The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
max_unhealthy_instance_percent (int) – The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.
max_unhealthy_upgraded_instance_percent (int) – The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.
pause_time_between_batches (str) – The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).
- class azure.mgmt.compute.v2017_03_30.models.RollingUpgradeProgressInfo(**kwargs: Any)[source]¶
Bases:
Model
Information about the number of virtual machine instances in each upgrade state.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
successful_instance_count (int) – The number of instances that have been successfully upgraded.
failed_instance_count (int) – The number of instances that have failed to be upgraded successfully.
in_progress_instance_count (int) – The number of instances that are currently being upgraded.
pending_instance_count (int) – The number of instances that have not yet begun to be upgraded.
- class azure.mgmt.compute.v2017_03_30.models.RollingUpgradeRunningStatus(**kwargs: Any)[source]¶
Bases:
Model
Information about the current running state of the overall upgrade.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
code (str or RollingUpgradeStatusCode) – Code indicating the current status of the upgrade. Known values are: “RollingForward”, “Cancelled”, “Completed”, and “Faulted”.
start_time (datetime) – Start time of the upgrade.
last_action (str or RollingUpgradeActionType) – The last action performed on the rolling upgrade. Known values are: “Start” and “Cancel”.
last_action_time (datetime) – Last action time of the upgrade.
- class azure.mgmt.compute.v2017_03_30.models.RollingUpgradeStatusCode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Code indicating the current status of the upgrade.
- CANCELLED = 'Cancelled'¶
- COMPLETED = 'Completed'¶
- FAULTED = 'Faulted'¶
- ROLLING_FORWARD = 'RollingForward'¶
- class azure.mgmt.compute.v2017_03_30.models.RollingUpgradeStatusInfo(*, location: str, tags: Dict[str, str] | None = None, **kwargs: Any)[source]¶
Bases:
Resource
The status of the latest virtual machine scale set rolling upgrade.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
policy (RollingUpgradePolicy) – The rolling upgrade policies applied for this upgrade.
running_status (RollingUpgradeRunningStatus) – Information about the current running state of the overall upgrade.
progress (RollingUpgradeProgressInfo) – Information about the number of virtual machine instances in each upgrade state.
error (ApiError) – Error details for this upgrade, if there are any.
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.RunCommandDocument(*, schema: str, id: str, os_type: str | _models.OperatingSystemTypes, label: str, description: str, script: List[str], parameters: List[_models.RunCommandParameterDefinition] | None = None, **kwargs: Any)[source]¶
Bases:
RunCommandDocumentBase
Describes the properties of a Run Command.
All required parameters must be populated in order to send to server.
- Variables:
schema (str) – The VM run command schema. Required.
id (str) – The VM run command id. Required.
os_type (str or OperatingSystemTypes) – The Operating System type. Required. Known values are: “Windows” and “Linux”.
label (str) – The VM run command label. Required.
description (str) – The VM run command description. Required.
parameters (list[RunCommandParameterDefinition]) – The parameters used by the script.
- Keyword Arguments:
schema (str) – The VM run command schema. Required.
id (str) – The VM run command id. Required.
os_type (str or OperatingSystemTypes) – The Operating System type. Required. Known values are: “Windows” and “Linux”.
label (str) – The VM run command label. Required.
description (str) – The VM run command description. Required.
parameters (list[RunCommandParameterDefinition]) – The parameters used by the script.
- class azure.mgmt.compute.v2017_03_30.models.RunCommandDocumentBase(*, schema: str, id: str, os_type: str | _models.OperatingSystemTypes, label: str, description: str, **kwargs: Any)[source]¶
Bases:
Model
Describes the properties of a Run Command metadata.
All required parameters must be populated in order to send to server.
- Variables:
schema (str) – The VM run command schema. Required.
id (str) – The VM run command id. Required.
os_type (str or OperatingSystemTypes) – The Operating System type. Required. Known values are: “Windows” and “Linux”.
label (str) – The VM run command label. Required.
description (str) – The VM run command description. Required.
- Keyword Arguments:
schema (str) – The VM run command schema. Required.
id (str) – The VM run command id. Required.
os_type (str or OperatingSystemTypes) – The Operating System type. Required. Known values are: “Windows” and “Linux”.
label (str) – The VM run command label. Required.
description (str) – The VM run command description. Required.
- class azure.mgmt.compute.v2017_03_30.models.RunCommandInput(*, command_id: str, script: List[str] | None = None, parameters: List[_models.RunCommandInputParameter] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Capture Virtual Machine parameters.
All required parameters must be populated in order to send to server.
- Variables:
command_id (str) – The run command id. Required.
script (list[str]) – Optional. The script to be executed. When this value is given, the given script will override the default script of the command.
parameters (list[RunCommandInputParameter]) – The run command parameters.
- Keyword Arguments:
command_id (str) – The run command id. Required.
script (list[str]) – Optional. The script to be executed. When this value is given, the given script will override the default script of the command.
parameters (list[RunCommandInputParameter]) – The run command parameters.
- class azure.mgmt.compute.v2017_03_30.models.RunCommandInputParameter(*, name: str, value: str, **kwargs: Any)[source]¶
Bases:
Model
Describes the properties of a run command parameter.
All required parameters must be populated in order to send to server.
- class azure.mgmt.compute.v2017_03_30.models.RunCommandListResult(*, value: List[_models.RunCommandDocumentBase], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Virtual Machine operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[RunCommandDocumentBase]) – The list of virtual machine run commands. Required.
next_link (str) – The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands.
- Keyword Arguments:
value (list[RunCommandDocumentBase]) – The list of virtual machine run commands. Required.
next_link (str) – The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands.
- class azure.mgmt.compute.v2017_03_30.models.RunCommandParameterDefinition(*, name: str, type: str, default_value: str | None = None, required: bool = False, **kwargs: Any)[source]¶
Bases:
Model
Describes the properties of a run command parameter.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.RunCommandResult(*, output: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]¶
Bases:
OperationStatusResponse
Run command operation response.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
- Keyword Arguments:
output (JSON) – Operation output data (raw JSON).
- class azure.mgmt.compute.v2017_03_30.models.SettingNames(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.
- AUTO_LOGON = 'AutoLogon'¶
- FIRST_LOGON_COMMANDS = 'FirstLogonCommands'¶
- class azure.mgmt.compute.v2017_03_30.models.Sku(*, name: str | None = None, tier: str | None = None, capacity: int | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set sku.
- Variables:
name (str) – The sku name.
tier (str) – Specifies the tier of virtual machines in a scale set.
<br />
<br />
Possible Values:<br />
<br />
Standard<br />
<br />
Basic.capacity (int) – Specifies the number of virtual machines in the scale set. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.
- Keyword Arguments:
name (str) – The sku name.
tier (str) – Specifies the tier of virtual machines in a scale set.
<br />
<br />
Possible Values:<br />
<br />
Standard<br />
<br />
Basic.capacity (int) – Specifies the number of virtual machines in the scale set. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.
- class azure.mgmt.compute.v2017_03_30.models.Snapshot(*, location: str, tags: Dict[str, str] | None = None, sku: _models.DiskSku | None = None, os_type: str | _models.OperatingSystemTypes | None = None, creation_data: _models.CreationData | None = None, disk_size_gb: int | None = None, encryption_settings: _models.EncryptionSettings | None = None, **kwargs: Any)[source]¶
Bases:
Resource
Snapshot resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
managed_by (str) – Unused. Always Null.
sku (DiskSku) – The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
time_created (datetime) – The time when the disk was created.
os_type (str or OperatingSystemTypes) – The Operating System type. Known values are: “Windows” and “Linux”.
creation_data (CreationData) – Disk source information. CreationData information cannot be changed after the disk has been created.
disk_size_gb (int) – If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
encryption_settings (EncryptionSettings) – Encryption settings for disk or snapshot.
provisioning_state (str) – The disk provisioning state.
- Keyword Arguments:
location (str) – Resource location. Required.
sku (DiskSku) – The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
os_type (str or OperatingSystemTypes) – The Operating System type. Known values are: “Windows” and “Linux”.
creation_data (CreationData) – Disk source information. CreationData information cannot be changed after the disk has been created.
disk_size_gb (int) – If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
encryption_settings (EncryptionSettings) – Encryption settings for disk or snapshot.
- class azure.mgmt.compute.v2017_03_30.models.SnapshotList(*, value: List[_models.Snapshot], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Snapshots operation response.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.SnapshotUpdate(*, tags: Dict[str, str] | None = None, sku: _models.DiskSku | None = None, os_type: str | _models.OperatingSystemTypes | None = None, disk_size_gb: int | None = None, encryption_settings: _models.EncryptionSettings | None = None, **kwargs: Any)[source]¶
Bases:
ResourceUpdate
Snapshot update resource.
- Variables:
sku (DiskSku) – The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
os_type (str or OperatingSystemTypes) – the Operating System type. Known values are: “Windows” and “Linux”.
disk_size_gb (int) – If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
encryption_settings (EncryptionSettings) – Encryption settings for disk or snapshot.
- Keyword Arguments:
sku (DiskSku) – The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
os_type (str or OperatingSystemTypes) – the Operating System type. Known values are: “Windows” and “Linux”.
disk_size_gb (int) – If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk’s size.
encryption_settings (EncryptionSettings) – Encryption settings for disk or snapshot.
- class azure.mgmt.compute.v2017_03_30.models.SourceVault(*, id: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}.
- class azure.mgmt.compute.v2017_03_30.models.SshConfiguration(*, public_keys: List[_models.SshPublicKey] | None = None, **kwargs: Any)[source]¶
Bases:
Model
SSH configuration for Linux based VMs running on Azure.
- Variables:
public_keys (list[SshPublicKey]) – The list of SSH public keys used to authenticate with linux based VMs.
- Keyword Arguments:
public_keys (list[SshPublicKey]) – The list of SSH public keys used to authenticate with linux based VMs.
- class azure.mgmt.compute.v2017_03_30.models.SshPublicKey(*, path: str | None = None, key_data: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.
- Variables:
path (str) – Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys.
key_data (str) – SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.
<br>
<br>
For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure. # pylint: disable=line-too-long
- Keyword Arguments:
path (str) – Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys.
key_data (str) –
SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.
<br>
<br>
For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure. # pylint: disable=line-too-long
- class azure.mgmt.compute.v2017_03_30.models.StatusLevelTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
The level code.
- ERROR = 'Error'¶
- INFO = 'Info'¶
- WARNING = 'Warning'¶
- class azure.mgmt.compute.v2017_03_30.models.StorageAccountTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS.
- PREMIUM_LRS = 'Premium_LRS'¶
- STANDARD_LRS = 'Standard_LRS'¶
- class azure.mgmt.compute.v2017_03_30.models.StorageProfile(*, image_reference: _models.ImageReference | None = None, os_disk: _models.OSDisk | None = None, data_disks: List[_models.DataDisk] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies the storage settings for the virtual machine disks.
- Variables:
image_reference (ImageReference) – Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
os_disk (OSDisk) –
Specifies information about the operating system disk used by the virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-longSpecifies the parameters that are used to add a data disk to a virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-long
- Keyword Arguments:
image_reference (ImageReference) – Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
os_disk (OSDisk) –
Specifies information about the operating system disk used by the virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-longSpecifies the parameters that are used to add a data disk to a virtual machine.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-long
- class azure.mgmt.compute.v2017_03_30.models.SubResource(*, id: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
SubResource.
- class azure.mgmt.compute.v2017_03_30.models.SubResourceReadOnly(**kwargs: Any)[source]¶
Bases:
Model
SubResourceReadOnly.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
id (str) – Resource Id.
- class azure.mgmt.compute.v2017_03_30.models.UpdateResource(*, tags: Dict[str, str] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The Update Resource model definition.
- class azure.mgmt.compute.v2017_03_30.models.UpgradeMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Specifies the mode of an upgrade to virtual machines in the scale set.
<br />
<br />
Possible values are:<br />
<br />
Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br />
<br />
Automatic - All virtual machines in the scale set are automatically updated at the same time.- AUTOMATIC = 'Automatic'¶
- MANUAL = 'Manual'¶
- ROLLING = 'Rolling'¶
- class azure.mgmt.compute.v2017_03_30.models.UpgradePolicy(*, mode: str | _models.UpgradeMode | None = None, rolling_upgrade_policy: _models.RollingUpgradePolicy | None = None, automatic_os_upgrade: bool | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes an upgrade policy - automatic, manual, or rolling.
- Variables:
mode (str or UpgradeMode) – Specifies the mode of an upgrade to virtual machines in the scale set.
<br />
<br />
Possible values are:<br />
<br />
Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br />
<br />
Automatic - All virtual machines in the scale set are automatically updated at the same time. Known values are: “Automatic”, “Manual”, and “Rolling”.rolling_upgrade_policy (RollingUpgradePolicy) – The configuration parameters used while performing a rolling upgrade.
automatic_os_upgrade (bool) – Whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available.
- Keyword Arguments:
mode (str or UpgradeMode) – Specifies the mode of an upgrade to virtual machines in the scale set.
<br />
<br />
Possible values are:<br />
<br />
Manual - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br />
<br />
Automatic - All virtual machines in the scale set are automatically updated at the same time. Known values are: “Automatic”, “Manual”, and “Rolling”.rolling_upgrade_policy (RollingUpgradePolicy) – The configuration parameters used while performing a rolling upgrade.
automatic_os_upgrade (bool) – Whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available.
- class azure.mgmt.compute.v2017_03_30.models.Usage(*, current_value: int, limit: int, name: _models.UsageName, **kwargs: Any)[source]¶
Bases:
Model
Describes Compute Resource Usage.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- unit = 'Count'¶
- class azure.mgmt.compute.v2017_03_30.models.UsageName(*, value: str | None = None, localized_value: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The Usage Names.
- class azure.mgmt.compute.v2017_03_30.models.VaultCertificate(*, certificate_url: str | None = None, certificate_store: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.
- Variables:
certificate_url (str) – This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see Add a key or secret to the key vault. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:
<br>
<br>
{<br>
“data”:”<Base64-encoded-certificate>
”,<br>
“dataType”:”pfx”,<br>
“password”:”<pfx-file-password>
”<br>
}.certificate_store (str) – For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.
<br>
:code:`<br>`For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted.
- Keyword Arguments:
certificate_url (str) –
This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see Add a key or secret to the key vault. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:
<br>
<br>
{<br>
“data”:”<Base64-encoded-certificate>
”,<br>
“dataType”:”pfx”,<br>
“password”:”<pfx-file-password>
”<br>
}.certificate_store (str) – For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.
<br>
:code:`<br>`For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted.
- class azure.mgmt.compute.v2017_03_30.models.VaultSecretGroup(*, source_vault: _models.SubResource | None = None, vault_certificates: List[_models.VaultCertificate] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a set of certificates which are all in the same Key Vault.
- Variables:
source_vault (SubResource) – The relative URL of the Key Vault containing all of the certificates in VaultCertificates.
vault_certificates (list[VaultCertificate]) – The list of key vault references in SourceVault which contain certificates.
- Keyword Arguments:
source_vault (SubResource) – The relative URL of the Key Vault containing all of the certificates in VaultCertificates.
vault_certificates (list[VaultCertificate]) – The list of key vault references in SourceVault which contain certificates.
- class azure.mgmt.compute.v2017_03_30.models.VirtualHardDisk(*, uri: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes the uri of a disk.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachine(*, location: str, tags: Dict[str, str] | None = None, plan: _models.Plan | None = None, identity: _models.VirtualMachineIdentity | None = None, zones: List[str] | None = None, hardware_profile: _models.HardwareProfile | None = None, storage_profile: _models.StorageProfile | None = None, os_profile: _models.OSProfile | None = None, network_profile: _models.NetworkProfile | None = None, diagnostics_profile: _models.DiagnosticsProfile | None = None, availability_set: _models.SubResource | None = None, license_type: str | None = None, **kwargs: Any)[source]¶
Bases:
Resource
Describes a Virtual Machine.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
plan (Plan) – Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
resources (list[VirtualMachineExtension]) – The virtual machine child extension resources.
identity (VirtualMachineIdentity) – The identity of the virtual machine, if configured.
hardware_profile (HardwareProfile) – Specifies the hardware settings for the virtual machine.
storage_profile (StorageProfile) – Specifies the storage settings for the virtual machine disks.
os_profile (OSProfile) – Specifies the operating system settings for the virtual machine.
network_profile (NetworkProfile) – Specifies the network interfaces of the virtual machine.
diagnostics_profile (DiagnosticsProfile) – Specifies the boot diagnostic settings state.
<br>
:code:`<br>`Minimum api-version: 2015-06-15.availability_set (SubResource) –
Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Manage the availability of virtual machines. # pylint: disable=line-too-long
<br>
<br>
For more information on Azure planned maintenance, see Planned maintenance for virtual machines in Azure # pylint: disable=line-too-long<br>
<br>
Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.provisioning_state (str) – The provisioning state, which only appears in the response.
instance_view (VirtualMachineInstanceView) – The virtual machine instance view.
license_type (str) – Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.
<br>
<br>
Possible values are:<br>
<br>
Windows_Client<br>
<br>
Windows_Server<br>
<br>
If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.<br>
<br>
For more information, see Azure Hybrid Use Benefit for Windows Server # pylint: disable=line-too-long<br>
<br>
Minimum api-version: 2015-06-15.vm_id (str) – Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands.
- Keyword Arguments:
location (str) – Resource location. Required.
plan (Plan) – Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
identity (VirtualMachineIdentity) – The identity of the virtual machine, if configured.
hardware_profile (HardwareProfile) – Specifies the hardware settings for the virtual machine.
storage_profile (StorageProfile) – Specifies the storage settings for the virtual machine disks.
os_profile (OSProfile) – Specifies the operating system settings for the virtual machine.
network_profile (NetworkProfile) – Specifies the network interfaces of the virtual machine.
diagnostics_profile (DiagnosticsProfile) – Specifies the boot diagnostic settings state.
<br>
:code:`<br>`Minimum api-version: 2015-06-15.availability_set (SubResource) –
Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Manage the availability of virtual machines. # pylint: disable=line-too-long
<br>
<br>
For more information on Azure planned maintenance, see Planned maintenance for virtual machines in Azure # pylint: disable=line-too-long<br>
<br>
Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.license_type (str) –
Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.
<br>
<br>
Possible values are:<br>
<br>
Windows_Client<br>
<br>
Windows_Server<br>
<br>
If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.<br>
<br>
For more information, see Azure Hybrid Use Benefit for Windows Server # pylint: disable=line-too-long<br>
<br>
Minimum api-version: 2015-06-15.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineAgentInstanceView(*, vm_agent_version: str | None = None, extension_handlers: List[_models.VirtualMachineExtensionHandlerInstanceView] | None = None, statuses: List[_models.InstanceViewStatus] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The instance view of the VM Agent running on the virtual machine.
- Variables:
vm_agent_version (str) – The VM Agent full version.
extension_handlers (list[VirtualMachineExtensionHandlerInstanceView]) – The virtual machine extension handler instance view.
statuses (list[InstanceViewStatus]) – The resource status information.
- Keyword Arguments:
vm_agent_version (str) – The VM Agent full version.
extension_handlers (list[VirtualMachineExtensionHandlerInstanceView]) – The virtual machine extension handler instance view.
statuses (list[InstanceViewStatus]) – The resource status information.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineCaptureParameters(*, vhd_prefix: str, destination_container_name: str, overwrite_vhds: bool, **kwargs: Any)[source]¶
Bases:
Model
Capture Virtual Machine parameters.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineCaptureResult(*, id: str | None = None, output: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
Resource Id.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtension(*, location: str, tags: Dict[str, str] | None = None, force_update_tag: str | None = None, publisher: str | None = None, type_properties_type: str | None = None, type_handler_version: str | None = None, auto_upgrade_minor_version: bool | None = None, settings: MutableMapping[str, Any] | None = None, protected_settings: MutableMapping[str, Any] | None = None, instance_view: _models.VirtualMachineExtensionInstanceView | None = None, **kwargs: Any)[source]¶
Bases:
Resource
Describes a Virtual Machine Extension.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
force_update_tag (str) – How the extension handler should be forced to update even if the extension configuration has not changed.
publisher (str) – The name of the extension handler publisher.
type_properties_type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
auto_upgrade_minor_version (bool) – Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
settings (JSON) – Json formatted public settings for the extension.
protected_settings (JSON) – The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
provisioning_state (str) – The provisioning state, which only appears in the response.
instance_view (VirtualMachineExtensionInstanceView) – The virtual machine extension instance view.
- Keyword Arguments:
location (str) – Resource location. Required.
force_update_tag (str) – How the extension handler should be forced to update even if the extension configuration has not changed.
publisher (str) – The name of the extension handler publisher.
type_properties_type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
auto_upgrade_minor_version (bool) – Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
settings (JSON) – Json formatted public settings for the extension.
protected_settings (JSON) – The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
instance_view (VirtualMachineExtensionInstanceView) – The virtual machine extension instance view.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionHandlerInstanceView(*, type: str | None = None, type_handler_version: str | None = None, status: _models.InstanceViewStatus | None = None, **kwargs: Any)[source]¶
Bases:
Model
The instance view of a virtual machine extension handler.
- Variables:
type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
status (InstanceViewStatus) – The extension handler status.
- Keyword Arguments:
type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
status (InstanceViewStatus) – The extension handler status.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionImage(*, location: str, tags: Dict[str, str] | None = None, operating_system: str | None = None, compute_role: str | None = None, handler_schema: str | None = None, vm_scale_set_enabled: bool | None = None, supports_multiple_extensions: bool | None = None, **kwargs: Any)[source]¶
Bases:
Resource
Describes a Virtual Machine Extension Image.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
operating_system (str) – The operating system this extension supports.
compute_role (str) – The type of role (IaaS or PaaS) this extension supports.
handler_schema (str) – The schema defined by publisher, where extension consumers should provide settings in a matching schema.
vm_scale_set_enabled (bool) – Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS.
supports_multiple_extensions (bool) – Whether the handler can support multiple extensions.
- Keyword Arguments:
location (str) – Resource location. Required.
operating_system (str) – The operating system this extension supports.
compute_role (str) – The type of role (IaaS or PaaS) this extension supports.
handler_schema (str) – The schema defined by publisher, where extension consumers should provide settings in a matching schema.
vm_scale_set_enabled (bool) – Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS.
supports_multiple_extensions (bool) – Whether the handler can support multiple extensions.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionInstanceView(*, name: str | None = None, type: str | None = None, type_handler_version: str | None = None, substatuses: List[_models.InstanceViewStatus] | None = None, statuses: List[_models.InstanceViewStatus] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The instance view of a virtual machine extension.
- Variables:
name (str) – The virtual machine extension name.
type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
substatuses (list[InstanceViewStatus]) – The resource status information.
statuses (list[InstanceViewStatus]) – The resource status information.
- Keyword Arguments:
name (str) – The virtual machine extension name.
type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
substatuses (list[InstanceViewStatus]) – The resource status information.
statuses (list[InstanceViewStatus]) – The resource status information.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionUpdate(*, tags: Dict[str, str] | None = None, force_update_tag: str | None = None, publisher: str | None = None, type: str | None = None, type_handler_version: str | None = None, auto_upgrade_minor_version: bool | None = None, settings: MutableMapping[str, Any] | None = None, protected_settings: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]¶
Bases:
UpdateResource
Describes a Virtual Machine Extension.
- Variables:
force_update_tag (str) – How the extension handler should be forced to update even if the extension configuration has not changed.
publisher (str) – The name of the extension handler publisher.
type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
auto_upgrade_minor_version (bool) – Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
settings (JSON) – Json formatted public settings for the extension.
protected_settings (JSON) – The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- Keyword Arguments:
force_update_tag (str) – How the extension handler should be forced to update even if the extension configuration has not changed.
publisher (str) – The name of the extension handler publisher.
type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
auto_upgrade_minor_version (bool) – Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
settings (JSON) – Json formatted public settings for the extension.
protected_settings (JSON) – The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionsListResult(*, value: List[_models.VirtualMachineExtension] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Extension operation response.
- Variables:
value (list[VirtualMachineExtension]) – The list of extensions.
- Keyword Arguments:
value (list[VirtualMachineExtension]) – The list of extensions.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineHealthStatus(**kwargs: Any)[source]¶
Bases:
Model
The health status of the VM.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
status (InstanceViewStatus) – The health status information for the VM.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineIdentity(*, type: Literal['SystemAssigned'] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Identity for the virtual machine.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
principal_id (str) – The principal id of virtual machine identity.
tenant_id (str) – The tenant id associated with the virtual machine.
type (str) – The type of identity used for the virtual machine. Currently, the only supported type is ‘SystemAssigned’, which implicitly creates an identity. Default value is “SystemAssigned”.
- Keyword Arguments:
type (str) – The type of identity used for the virtual machine. Currently, the only supported type is ‘SystemAssigned’, which implicitly creates an identity. Default value is “SystemAssigned”.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineImage(*, name: str, location: str, id: str | None = None, tags: Dict[str, str] | None = None, plan: _models.PurchasePlan | None = None, os_disk_image: _models.OSDiskImage | None = None, data_disk_images: List[_models.DataDiskImage] | None = None, **kwargs: Any)[source]¶
Bases:
VirtualMachineImageResource
Describes a Virtual Machine Image.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – The name of the resource. Required.
location (str) – The supported Azure location of the resource. Required.
tags (dict[str, str]) – Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources.
plan (PurchasePlan) – Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
os_disk_image (OSDiskImage) – Contains the os disk image information.
data_disk_images (list[DataDiskImage])
- Keyword Arguments:
id (str) – Resource Id.
name (str) – The name of the resource. Required.
location (str) – The supported Azure location of the resource. Required.
Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources.
plan (PurchasePlan) – Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
os_disk_image (OSDiskImage) – Contains the os disk image information.
data_disk_images (list[DataDiskImage])
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineImageResource(*, name: str, location: str, id: str | None = None, tags: Dict[str, str] | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
Virtual machine image resource information.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – The name of the resource. Required.
location (str) – The supported Azure location of the resource. Required.
Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources.
- Keyword Arguments:
id (str) – Resource Id.
name (str) – The name of the resource. Required.
location (str) – The supported Azure location of the resource. Required.
Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineInstanceView(*, platform_update_domain: int | None = None, platform_fault_domain: int | None = None, rdp_thumb_print: str | None = None, vm_agent: _models.VirtualMachineAgentInstanceView | None = None, maintenance_redeploy_status: _models.MaintenanceRedeployStatus | None = None, disks: List[_models.DiskInstanceView] | None = None, extensions: List[_models.VirtualMachineExtensionInstanceView] | None = None, boot_diagnostics: _models.BootDiagnosticsInstanceView | None = None, statuses: List[_models.InstanceViewStatus] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The instance view of a virtual machine.
- Variables:
platform_update_domain (int) – Specifies the update domain of the virtual machine.
platform_fault_domain (int) – Specifies the fault domain of the virtual machine.
rdp_thumb_print (str) – The Remote desktop certificate thumbprint.
vm_agent (VirtualMachineAgentInstanceView) – The VM Agent running on the virtual machine.
maintenance_redeploy_status (MaintenanceRedeployStatus) – The Maintenance Operation status on the virtual machine.
disks (list[DiskInstanceView]) – The virtual machine disk information.
extensions (list[VirtualMachineExtensionInstanceView]) – The extensions information.
boot_diagnostics (BootDiagnosticsInstanceView) – Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
<br>
<br>
You can easily view the output of your console log.<br>
<br>
Azure also enables you to see a screenshot of the VM from the hypervisor.statuses (list[InstanceViewStatus]) – The resource status information.
- Keyword Arguments:
platform_update_domain (int) – Specifies the update domain of the virtual machine.
platform_fault_domain (int) – Specifies the fault domain of the virtual machine.
rdp_thumb_print (str) – The Remote desktop certificate thumbprint.
vm_agent (VirtualMachineAgentInstanceView) – The VM Agent running on the virtual machine.
maintenance_redeploy_status (MaintenanceRedeployStatus) – The Maintenance Operation status on the virtual machine.
disks (list[DiskInstanceView]) – The virtual machine disk information.
extensions (list[VirtualMachineExtensionInstanceView]) – The extensions information.
boot_diagnostics (BootDiagnosticsInstanceView) – Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
<br>
<br>
You can easily view the output of your console log.<br>
<br>
Azure also enables you to see a screenshot of the VM from the hypervisor.statuses (list[InstanceViewStatus]) – The resource status information.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineListResult(*, value: List[_models.VirtualMachine], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Virtual Machine operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[VirtualMachine]) – The list of virtual machines. Required.
next_link (str) – The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines.
- Keyword Arguments:
value (list[VirtualMachine]) – The list of virtual machines. Required.
next_link (str) – The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSet(*, location: str, tags: Dict[str, str] | None = None, sku: _models.Sku | None = None, plan: _models.Plan | None = None, identity: _models.VirtualMachineScaleSetIdentity | None = None, zones: List[str] | None = None, upgrade_policy: _models.UpgradePolicy | None = None, virtual_machine_profile: _models.VirtualMachineScaleSetVMProfile | None = None, overprovision: bool | None = None, single_placement_group: bool | None = None, **kwargs: Any)[source]¶
Bases:
Resource
Describes a Virtual Machine Scale Set.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
sku (Sku) – The virtual machine scale set sku.
plan (Plan) – Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
identity (VirtualMachineScaleSetIdentity) – The identity of the virtual machine scale set, if configured.
zones (list[str]) – The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set.
upgrade_policy (UpgradePolicy) – The upgrade policy.
virtual_machine_profile (VirtualMachineScaleSetVMProfile) – The virtual machine profile.
provisioning_state (str) – The provisioning state, which only appears in the response.
overprovision (bool) – Specifies whether the Virtual Machine Scale Set should be overprovisioned.
unique_id (str) – Specifies the ID which uniquely identifies a Virtual Machine Scale Set.
single_placement_group (bool) – When true this limits the scale set to a single placement group, of max size 100 virtual machines.
- Keyword Arguments:
location (str) – Resource location. Required.
sku (Sku) – The virtual machine scale set sku.
plan (Plan) – Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
identity (VirtualMachineScaleSetIdentity) – The identity of the virtual machine scale set, if configured.
zones (list[str]) – The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set.
upgrade_policy (UpgradePolicy) – The upgrade policy.
virtual_machine_profile (VirtualMachineScaleSetVMProfile) – The virtual machine profile.
overprovision (bool) – Specifies whether the Virtual Machine Scale Set should be overprovisioned.
single_placement_group (bool) – When true this limits the scale set to a single placement group, of max size 100 virtual machines.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetDataDisk(*, lun: int, create_option: str | _models.DiskCreateOptionTypes, name: str | None = None, caching: str | _models.CachingTypes | None = None, disk_size_gb: int | None = None, managed_disk: _models.VirtualMachineScaleSetManagedDiskParameters | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set data disk.
All required parameters must be populated in order to send to server.
- Variables:
name (str) – The disk name.
lun (int) – Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.create_option (str or DiskCreateOptionTypes) – The create option. Required. Known values are: “FromImage”, “Empty”, and “Attach”.
disk_size_gb (int) – Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.managed_disk (VirtualMachineScaleSetManagedDiskParameters) – The managed disk parameters.
- Keyword Arguments:
name (str) – The disk name.
lun (int) – Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.create_option (str or DiskCreateOptionTypes) – The create option. Required. Known values are: “FromImage”, “Empty”, and “Attach”.
disk_size_gb (int) – Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
<br>
<br>
This value cannot be larger than 1023 GB.managed_disk (VirtualMachineScaleSetManagedDiskParameters) – The managed disk parameters.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetExtension(*, name: str | None = None, force_update_tag: str | None = None, publisher: str | None = None, type: str | None = None, type_handler_version: str | None = None, auto_upgrade_minor_version: bool | None = None, settings: MutableMapping[str, Any] | None = None, protected_settings: MutableMapping[str, Any] | None = None, **kwargs: Any)[source]¶
Bases:
SubResourceReadOnly
Describes a Virtual Machine Scale Set Extension.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
id (str) – Resource Id.
name (str) – The name of the extension.
force_update_tag (str) – If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
publisher (str) – The name of the extension handler publisher.
type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
auto_upgrade_minor_version (bool) – Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
settings (JSON) – Json formatted public settings for the extension.
protected_settings (JSON) – The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
provisioning_state (str) – The provisioning state, which only appears in the response.
- Keyword Arguments:
name (str) – The name of the extension.
force_update_tag (str) – If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.
publisher (str) – The name of the extension handler publisher.
type (str) – Specifies the type of the extension; an example is “CustomScriptExtension”.
type_handler_version (str) – Specifies the version of the script handler.
auto_upgrade_minor_version (bool) – Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
settings (JSON) – Json formatted public settings for the extension.
protected_settings (JSON) – The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetExtensionListResult(*, value: List[_models.VirtualMachineScaleSetExtension], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List VM scale set extension operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[VirtualMachineScaleSetExtension]) – The list of VM scale set extensions. Required.
next_link (str) – The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale set extensions.
- Keyword Arguments:
value (list[VirtualMachineScaleSetExtension]) – The list of VM scale set extensions. Required.
next_link (str) – The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale set extensions.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetExtensionProfile(*, extensions: List[_models.VirtualMachineScaleSetExtension] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set extension profile.
- Variables:
extensions (list[VirtualMachineScaleSetExtension]) – The virtual machine scale set child extension resources.
- Keyword Arguments:
extensions (list[VirtualMachineScaleSetExtension]) – The virtual machine scale set child extension resources.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetIPConfiguration(*, name: str, id: str | None = None, subnet: _models.ApiEntityReference | None = None, primary: bool | None = None, public_ip_address_configuration: _models.VirtualMachineScaleSetPublicIPAddressConfiguration | None = None, private_ip_address_version: str | _models.IPVersion | None = None, application_gateway_backend_address_pools: List[_models.SubResource] | None = None, load_balancer_backend_address_pools: List[_models.SubResource] | None = None, load_balancer_inbound_nat_pools: List[_models.SubResource] | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
Describes a virtual machine scale set network profile’s IP configuration.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – The IP configuration name. Required.
subnet (ApiEntityReference) – Specifies the identifier of the subnet.
primary (bool) – Specifies the primary network interface in case the virtual machine has more than 1 network interface.
public_ip_address_configuration (VirtualMachineScaleSetPublicIPAddressConfiguration) – The publicIPAddressConfiguration.
private_ip_address_version (str or IPVersion) – Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ‘IPv4’ and ‘IPv6’. Known values are: “IPv4” and “IPv6”.
application_gateway_backend_address_pools (list[SubResource]) – Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
load_balancer_backend_address_pools (list[SubResource]) – Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
load_balancer_inbound_nat_pools (list[SubResource]) – Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
- Keyword Arguments:
id (str) – Resource Id.
name (str) – The IP configuration name. Required.
subnet (ApiEntityReference) – Specifies the identifier of the subnet.
primary (bool) – Specifies the primary network interface in case the virtual machine has more than 1 network interface.
public_ip_address_configuration (VirtualMachineScaleSetPublicIPAddressConfiguration) – The publicIPAddressConfiguration.
private_ip_address_version (str or IPVersion) – Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ‘IPv4’ and ‘IPv6’. Known values are: “IPv4” and “IPv6”.
application_gateway_backend_address_pools (list[SubResource]) – Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
load_balancer_backend_address_pools (list[SubResource]) – Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
load_balancer_inbound_nat_pools (list[SubResource]) – Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetIdentity(*, type: Literal['SystemAssigned'] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Identity for the virtual machine scale set.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
principal_id (str) – The principal id of virtual machine scale set identity.
tenant_id (str) – The tenant id associated with the virtual machine scale set.
type (str) – The type of identity used for the virtual machine scale set. Currently, the only supported type is ‘SystemAssigned’, which implicitly creates an identity. Default value is “SystemAssigned”.
- Keyword Arguments:
type (str) – The type of identity used for the virtual machine scale set. Currently, the only supported type is ‘SystemAssigned’, which implicitly creates an identity. Default value is “SystemAssigned”.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetInstanceView(*, statuses: List[_models.InstanceViewStatus] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The instance view of a virtual machine scale set.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
virtual_machine (VirtualMachineScaleSetInstanceViewStatusesSummary) – The instance view status summary for the virtual machine scale set.
extensions (list[VirtualMachineScaleSetVMExtensionsSummary]) – The extensions information.
statuses (list[InstanceViewStatus]) – The resource status information.
- Keyword Arguments:
statuses (list[InstanceViewStatus]) – The resource status information.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetInstanceViewStatusesSummary(**kwargs: Any)[source]¶
Bases:
Model
Instance view statuses summary for virtual machines of a virtual machine scale set.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
statuses_summary (list[VirtualMachineStatusCodeCount]) – The extensions information.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetListResult(*, value: List[_models.VirtualMachineScaleSet], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Virtual Machine operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[VirtualMachineScaleSet]) – The list of virtual machine scale sets. Required.
next_link (str) – The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS.
- Keyword Arguments:
value (list[VirtualMachineScaleSet]) – The list of virtual machine scale sets. Required.
next_link (str) – The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetListSkusResult(*, value: List[_models.VirtualMachineScaleSetSku], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The Virtual Machine Scale Set List Skus operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[VirtualMachineScaleSetSku]) – The list of skus available for the virtual machine scale set. Required.
next_link (str) – The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS Skus.
- Keyword Arguments:
value (list[VirtualMachineScaleSetSku]) – The list of skus available for the virtual machine scale set. Required.
next_link (str) – The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS Skus.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetListWithLinkResult(*, value: List[_models.VirtualMachineScaleSet], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Virtual Machine operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[VirtualMachineScaleSet]) – The list of virtual machine scale sets. Required.
next_link (str) – The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets.
- Keyword Arguments:
value (list[VirtualMachineScaleSet]) – The list of virtual machine scale sets. Required.
next_link (str) – The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetManagedDiskParameters(*, storage_account_type: str | _models.StorageAccountTypes | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes the parameters of a ScaleSet managed disk.
- Variables:
storage_account_type (str or StorageAccountTypes) – Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. Possible values are: Standard_LRS or Premium_LRS. Known values are: “Standard_LRS” and “Premium_LRS”.
- Keyword Arguments:
storage_account_type (str or StorageAccountTypes) – Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. Possible values are: Standard_LRS or Premium_LRS. Known values are: “Standard_LRS” and “Premium_LRS”.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetNetworkConfiguration(*, name: str, id: str | None = None, primary: bool | None = None, enable_accelerated_networking: bool | None = None, network_security_group: _models.SubResource | None = None, dns_settings: _models.VirtualMachineScaleSetNetworkConfigurationDnsSettings | None = None, ip_configurations: List[_models.VirtualMachineScaleSetIPConfiguration] | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
Describes a virtual machine scale set network profile’s network configurations.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – The network configuration name. Required.
primary (bool) – Specifies the primary network interface in case the virtual machine has more than 1 network interface.
enable_accelerated_networking (bool) – Specifies whether the network interface is accelerated networking-enabled.
network_security_group (SubResource) – The network security group.
dns_settings (VirtualMachineScaleSetNetworkConfigurationDnsSettings) – The dns settings to be applied on the network interfaces.
ip_configurations (list[VirtualMachineScaleSetIPConfiguration]) – Specifies the IP configurations of the network interface.
- Keyword Arguments:
id (str) – Resource Id.
name (str) – The network configuration name. Required.
primary (bool) – Specifies the primary network interface in case the virtual machine has more than 1 network interface.
enable_accelerated_networking (bool) – Specifies whether the network interface is accelerated networking-enabled.
network_security_group (SubResource) – The network security group.
dns_settings (VirtualMachineScaleSetNetworkConfigurationDnsSettings) – The dns settings to be applied on the network interfaces.
ip_configurations (list[VirtualMachineScaleSetIPConfiguration]) – Specifies the IP configurations of the network interface.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings(*, dns_servers: List[str] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machines scale sets network configuration’s DNS settings.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetNetworkProfile(*, health_probe: _models.ApiEntityReference | None = None, network_interface_configurations: List[_models.VirtualMachineScaleSetNetworkConfiguration] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set network profile.
- Variables:
health_probe (ApiEntityReference) – A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: ‘/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}’. # pylint: disable=line-too-long
network_interface_configurations (list[VirtualMachineScaleSetNetworkConfiguration]) – The list of network configurations.
- Keyword Arguments:
health_probe (ApiEntityReference) – A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: ‘/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}’. # pylint: disable=line-too-long
network_interface_configurations (list[VirtualMachineScaleSetNetworkConfiguration]) – The list of network configurations.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetOSDisk(*, create_option: str | _models.DiskCreateOptionTypes, name: str | None = None, caching: str | _models.CachingTypes | None = None, os_type: str | _models.OperatingSystemTypes | None = None, image: _models.VirtualHardDisk | None = None, vhd_containers: List[str] | None = None, managed_disk: _models.VirtualMachineScaleSetManagedDiskParameters | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set operating system disk.
All required parameters must be populated in order to send to server.
- Variables:
name (str) – The disk name.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.create_option (str or DiskCreateOptionTypes) – Specifies how the virtual machines in the scale set should be created.
<br>
<br>
The only allowed value is: FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: “FromImage”, “Empty”, and “Attach”.os_type (str or OperatingSystemTypes) – This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
<br>
<br>
Possible values are:<br>
<br>
Windows<br>
<br>
Linux. Known values are: “Windows” and “Linux”.image (VirtualHardDisk) – Specifies information about the unmanaged user image to base the scale set on.
vhd_containers (list[str]) – Specifies the container urls that are used to store operating system disks for the scale set.
managed_disk (VirtualMachineScaleSetManagedDiskParameters) – The managed disk parameters.
- Keyword Arguments:
name (str) – The disk name.
caching (str or CachingTypes) – Specifies the caching requirements.
<br>
<br>
Possible values are:<br>
<br>
None<br>
<br>
ReadOnly<br>
<br>
ReadWrite<br>
<br>
Default: None for Standard storage. ReadOnly for Premium storage. Known values are: “None”, “ReadOnly”, and “ReadWrite”.create_option (str or DiskCreateOptionTypes) – Specifies how the virtual machines in the scale set should be created.
<br>
<br>
The only allowed value is: FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: “FromImage”, “Empty”, and “Attach”.os_type (str or OperatingSystemTypes) – This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
<br>
<br>
Possible values are:<br>
<br>
Windows<br>
<br>
Linux. Known values are: “Windows” and “Linux”.image (VirtualHardDisk) – Specifies information about the unmanaged user image to base the scale set on.
vhd_containers (list[str]) – Specifies the container urls that are used to store operating system disks for the scale set.
managed_disk (VirtualMachineScaleSetManagedDiskParameters) – The managed disk parameters.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetOSProfile(*, computer_name_prefix: str | None = None, admin_username: str | None = None, admin_password: str | None = None, custom_data: str | None = None, windows_configuration: _models.WindowsConfiguration | None = None, linux_configuration: _models.LinuxConfiguration | None = None, secrets: List[_models.VaultSecretGroup] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set OS profile.
- Variables:
computer_name_prefix (str) – Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long.
admin_username (str) –
Specifies the name of the administrator account.
<br>
<br>
Windows-only restriction: Cannot end in “.”<br>
<br>
Disallowed values: “administrator”, “admin”, “user”, “user1”, “test”, “user2”, “test1”, “user3”, “admin1”, “1”, “123”, “a”, “actuser”, “adm”, “admin2”, “aspnet”, “backup”, “console”, “david”, “guest”, “john”, “owner”, “root”, “server”, “sql”, “support”, “support_388945a0”, “sys”, “test2”, “test3”, “user4”, “user5”.<br>
<br>
Minimum-length (Linux): 1 character<br>
<br>
Max-length (Linux): 64 characters<br>
<br>
Max-length (Windows): 20 characters<br>
<br>
<li>
For root access to the Linux VM, see Using root privileges on Linux virtual machines in Azure # pylint: disable=line-too-long<br>
<li>
For a list of built-in system users on Linux that should not be used in this field, see Selecting User Names for Linux on Azure. # pylint: disable=line-too-longadmin_password (str) –
Specifies the password of the administrator account.
<br>
<br>
Minimum-length (Windows): 8 characters<br>
<br>
Minimum-length (Linux): 6 characters<br>
<br>
Max-length (Windows): 123 characters<br>
<br>
Max-length (Linux): 72 characters<br>
<br>
Complexity requirements: 3 out of 4 conditions below need to be fulfilled<br>
Has lower characters<br>`Has upper characters :code:`<br>
Has a digit<br>
Has a special character (Regex match [W_])<br>
<br>
Disallowed values: “abc@123”, “P@$$w0rd”, “P@ssw0rd”, “P@ssword123”, “Pa$$word”, “pass@word1”, “Password!”, “Password1”, “Password22”, “iloveyou!”<br>
<br>
For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM # pylint: disable=line-too-long<br>
<br>
For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension. # pylint: disable=line-too-longcustom_data (str) –
Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.
<br>
<br>
For using cloud-init for your VM, see Using cloud-init to customize a Linux VM during creation. # pylint: disable=line-too-longwindows_configuration (WindowsConfiguration) – Specifies Windows operating system settings on the virtual machine.
linux_configuration (LinuxConfiguration) –
Specifies the Linux operating system settings on the virtual machine.
<br>
:code:`<br>`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions <https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json>`_ # pylint: disable=line-too-long<br>
<br>
For running non-endorsed distributions, see Information for Non-Endorsed Distributions. # pylint: disable=line-too-longsecrets (list[VaultSecretGroup]) – Specifies set of certificates that should be installed onto the virtual machines in the scale set.
- Keyword Arguments:
computer_name_prefix (str) – Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long.
admin_username (str) –
Specifies the name of the administrator account.
<br>
<br>
Windows-only restriction: Cannot end in “.”<br>
<br>
Disallowed values: “administrator”, “admin”, “user”, “user1”, “test”, “user2”, “test1”, “user3”, “admin1”, “1”, “123”, “a”, “actuser”, “adm”, “admin2”, “aspnet”, “backup”, “console”, “david”, “guest”, “john”, “owner”, “root”, “server”, “sql”, “support”, “support_388945a0”, “sys”, “test2”, “test3”, “user4”, “user5”.<br>
<br>
Minimum-length (Linux): 1 character<br>
<br>
Max-length (Linux): 64 characters<br>
<br>
Max-length (Windows): 20 characters<br>
<br>
<li>
For root access to the Linux VM, see Using root privileges on Linux virtual machines in Azure # pylint: disable=line-too-long<br>
<li>
For a list of built-in system users on Linux that should not be used in this field, see Selecting User Names for Linux on Azure. # pylint: disable=line-too-longadmin_password (str) –
Specifies the password of the administrator account.
<br>
<br>
Minimum-length (Windows): 8 characters<br>
<br>
Minimum-length (Linux): 6 characters<br>
<br>
Max-length (Windows): 123 characters<br>
<br>
Max-length (Linux): 72 characters<br>
<br>
Complexity requirements: 3 out of 4 conditions below need to be fulfilled<br>
Has lower characters<br>`Has upper characters :code:`<br>
Has a digit<br>
Has a special character (Regex match [W_])<br>
<br>
Disallowed values: “abc@123”, “P@$$w0rd”, “P@ssw0rd”, “P@ssword123”, “Pa$$word”, “pass@word1”, “Password!”, “Password1”, “Password22”, “iloveyou!”<br>
<br>
For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM # pylint: disable=line-too-long<br>
<br>
For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension. # pylint: disable=line-too-longcustom_data (str) –
Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.
<br>
<br>
For using cloud-init for your VM, see Using cloud-init to customize a Linux VM during creation. # pylint: disable=line-too-longwindows_configuration (WindowsConfiguration) – Specifies Windows operating system settings on the virtual machine.
linux_configuration (LinuxConfiguration) –
Specifies the Linux operating system settings on the virtual machine.
<br>
:code:`<br>`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions <https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json>`_ # pylint: disable=line-too-long<br>
<br>
For running non-endorsed distributions, see Information for Non-Endorsed Distributions. # pylint: disable=line-too-longsecrets (list[VaultSecretGroup]) – Specifies set of certificates that should be installed onto the virtual machines in the scale set.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetPublicIPAddressConfiguration(*, name: str, idle_timeout_in_minutes: int | None = None, dns_settings: _models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machines scale set IP Configuration’s PublicIPAddress configuration.
All required parameters must be populated in order to send to server.
- Variables:
name (str) – The publicIP address configuration name. Required.
idle_timeout_in_minutes (int) – The idle timeout of the public IP address.
dns_settings (VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings) – The dns settings to be applied on the publicIP addresses .
- Keyword Arguments:
name (str) – The publicIP address configuration name. Required.
idle_timeout_in_minutes (int) – The idle timeout of the public IP address.
dns_settings (VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings) – The dns settings to be applied on the publicIP addresses .
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(*, domain_name_label: str, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machines scale sets network configuration’s DNS settings.
All required parameters must be populated in order to send to server.
- Variables:
domain_name_label (str) – The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. Required.
- Keyword Arguments:
domain_name_label (str) – The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created. Required.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetSku(**kwargs: Any)[source]¶
Bases:
Model
Describes an available virtual machine scale set sku.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
resource_type (str) – The type of resource the sku applies to.
sku (Sku) – The Sku.
capacity (VirtualMachineScaleSetSkuCapacity) – Specifies the number of virtual machines in the scale set.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetSkuCapacity(**kwargs: Any)[source]¶
Bases:
Model
Describes scaling information of a sku.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
minimum (int) – The minimum capacity.
maximum (int) – The maximum capacity that can be set.
default_capacity (int) – The default capacity.
scale_type (str or VirtualMachineScaleSetSkuScaleType) – The scale type applicable to the sku. Known values are: “Automatic” and “None”.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetSkuScaleType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
The scale type applicable to the sku.
- AUTOMATIC = 'Automatic'¶
- NONE = 'None'¶
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetStorageProfile(*, image_reference: _models.ImageReference | None = None, os_disk: _models.VirtualMachineScaleSetOSDisk | None = None, data_disks: List[_models.VirtualMachineScaleSetDataDisk] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set storage profile.
- Variables:
image_reference (ImageReference) – Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
os_disk (VirtualMachineScaleSetOSDisk) –
Specifies information about the operating system disk used by the virtual machines in the scale set.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-longdata_disks (list[VirtualMachineScaleSetDataDisk]) –
Specifies the parameters that are used to add data disks to the virtual machines in the scale set.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-long
- Keyword Arguments:
image_reference (ImageReference) – Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
os_disk (VirtualMachineScaleSetOSDisk) –
Specifies information about the operating system disk used by the virtual machines in the scale set.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-longdata_disks (list[VirtualMachineScaleSetDataDisk]) –
Specifies the parameters that are used to add data disks to the virtual machines in the scale set.
<br>
<br>
For more information about disks, see About disks and VHDs for Azure virtual machines. # pylint: disable=line-too-long
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdate(*, tags: Dict[str, str] | None = None, sku: _models.Sku | None = None, plan: _models.Plan | None = None, identity: _models.VirtualMachineScaleSetIdentity | None = None, upgrade_policy: _models.UpgradePolicy | None = None, virtual_machine_profile: _models.VirtualMachineScaleSetUpdateVMProfile | None = None, overprovision: bool | None = None, single_placement_group: bool | None = None, **kwargs: Any)[source]¶
Bases:
UpdateResource
Describes a Virtual Machine Scale Set.
- Variables:
sku (Sku) – The virtual machine scale set sku.
plan (Plan) – The purchase plan when deploying a virtual machine scale set from VM Marketplace images.
identity (VirtualMachineScaleSetIdentity) – The identity of the virtual machine scale set, if configured.
upgrade_policy (UpgradePolicy) – The upgrade policy.
virtual_machine_profile (VirtualMachineScaleSetUpdateVMProfile) – The virtual machine profile.
overprovision (bool) – Specifies whether the Virtual Machine Scale Set should be overprovisioned.
single_placement_group (bool) – When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.
- Keyword Arguments:
sku (Sku) – The virtual machine scale set sku.
plan (Plan) – The purchase plan when deploying a virtual machine scale set from VM Marketplace images.
identity (VirtualMachineScaleSetIdentity) – The identity of the virtual machine scale set, if configured.
upgrade_policy (UpgradePolicy) – The upgrade policy.
virtual_machine_profile (VirtualMachineScaleSetUpdateVMProfile) – The virtual machine profile.
overprovision (bool) – Specifies whether the Virtual Machine Scale Set should be overprovisioned.
single_placement_group (bool) – When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdateIPConfiguration(*, id: str | None = None, name: str | None = None, subnet: _models.ApiEntityReference | None = None, primary: bool | None = None, public_ip_address_configuration: _models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration | None = None, private_ip_address_version: str | _models.IPVersion | None = None, application_gateway_backend_address_pools: List[_models.SubResource] | None = None, load_balancer_backend_address_pools: List[_models.SubResource] | None = None, load_balancer_inbound_nat_pools: List[_models.SubResource] | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
Describes a virtual machine scale set network profile’s IP configuration.
- Variables:
id (str) – Resource Id.
name (str) – The IP configuration name.
subnet (ApiEntityReference) – The subnet.
primary (bool) – Specifies the primary IP Configuration in case the network interface has more than one IP Configuration.
public_ip_address_configuration (VirtualMachineScaleSetUpdatePublicIPAddressConfiguration) – The publicIPAddressConfiguration.
private_ip_address_version (str or IPVersion) – Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ‘IPv4’ and ‘IPv6’. Known values are: “IPv4” and “IPv6”.
application_gateway_backend_address_pools (list[SubResource]) – The application gateway backend address pools.
load_balancer_backend_address_pools (list[SubResource]) – The load balancer backend address pools.
load_balancer_inbound_nat_pools (list[SubResource]) – The load balancer inbound nat pools.
- Keyword Arguments:
id (str) – Resource Id.
name (str) – The IP configuration name.
subnet (ApiEntityReference) – The subnet.
primary (bool) – Specifies the primary IP Configuration in case the network interface has more than one IP Configuration.
public_ip_address_configuration (VirtualMachineScaleSetUpdatePublicIPAddressConfiguration) – The publicIPAddressConfiguration.
private_ip_address_version (str or IPVersion) – Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ‘IPv4’ and ‘IPv6’. Known values are: “IPv4” and “IPv6”.
application_gateway_backend_address_pools (list[SubResource]) – The application gateway backend address pools.
load_balancer_backend_address_pools (list[SubResource]) – The load balancer backend address pools.
load_balancer_inbound_nat_pools (list[SubResource]) – The load balancer inbound nat pools.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdateNetworkConfiguration(*, id: str | None = None, name: str | None = None, primary: bool | None = None, enable_accelerated_networking: bool | None = None, network_security_group: _models.SubResource | None = None, dns_settings: _models.VirtualMachineScaleSetNetworkConfigurationDnsSettings | None = None, ip_configurations: List[_models.VirtualMachineScaleSetUpdateIPConfiguration] | None = None, **kwargs: Any)[source]¶
Bases:
SubResource
Describes a virtual machine scale set network profile’s network configurations.
- Variables:
id (str) – Resource Id.
name (str) – The network configuration name.
primary (bool) – Whether this is a primary NIC on a virtual machine.
enable_accelerated_networking (bool) – Specifies whether the network interface is accelerated networking-enabled.
network_security_group (SubResource) – The network security group.
dns_settings (VirtualMachineScaleSetNetworkConfigurationDnsSettings) – The dns settings to be applied on the network interfaces.
ip_configurations (list[VirtualMachineScaleSetUpdateIPConfiguration]) – The virtual machine scale set IP Configuration.
- Keyword Arguments:
id (str) – Resource Id.
name (str) – The network configuration name.
primary (bool) – Whether this is a primary NIC on a virtual machine.
enable_accelerated_networking (bool) – Specifies whether the network interface is accelerated networking-enabled.
network_security_group (SubResource) – The network security group.
dns_settings (VirtualMachineScaleSetNetworkConfigurationDnsSettings) – The dns settings to be applied on the network interfaces.
ip_configurations (list[VirtualMachineScaleSetUpdateIPConfiguration]) – The virtual machine scale set IP Configuration.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdateNetworkProfile(*, network_interface_configurations: List[_models.VirtualMachineScaleSetUpdateNetworkConfiguration] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set network profile.
- Variables:
network_interface_configurations (list[VirtualMachineScaleSetUpdateNetworkConfiguration]) – The list of network configurations.
- Keyword Arguments:
network_interface_configurations (list[VirtualMachineScaleSetUpdateNetworkConfiguration]) – The list of network configurations.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdateOSDisk(*, caching: str | _models.CachingTypes | None = None, image: _models.VirtualHardDisk | None = None, vhd_containers: List[str] | None = None, managed_disk: _models.VirtualMachineScaleSetManagedDiskParameters | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk.
- Variables:
caching (str or CachingTypes) – The caching type. Known values are: “None”, “ReadOnly”, and “ReadWrite”.
image (VirtualHardDisk) – The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.
vhd_containers (list[str]) – The list of virtual hard disk container uris.
managed_disk (VirtualMachineScaleSetManagedDiskParameters) – The managed disk parameters.
- Keyword Arguments:
caching (str or CachingTypes) – The caching type. Known values are: “None”, “ReadOnly”, and “ReadWrite”.
image (VirtualHardDisk) – The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.
vhd_containers (list[str]) – The list of virtual hard disk container uris.
managed_disk (VirtualMachineScaleSetManagedDiskParameters) – The managed disk parameters.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdateOSProfile(*, custom_data: str | None = None, windows_configuration: _models.WindowsConfiguration | None = None, linux_configuration: _models.LinuxConfiguration | None = None, secrets: List[_models.VaultSecretGroup] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set OS profile.
- Variables:
custom_data (str) – A base-64 encoded string of custom data.
windows_configuration (WindowsConfiguration) – The Windows Configuration of the OS profile.
linux_configuration (LinuxConfiguration) – The Linux Configuration of the OS profile.
secrets (list[VaultSecretGroup]) – The List of certificates for addition to the VM.
- Keyword Arguments:
custom_data (str) – A base-64 encoded string of custom data.
windows_configuration (WindowsConfiguration) – The Windows Configuration of the OS profile.
linux_configuration (LinuxConfiguration) – The Linux Configuration of the OS profile.
secrets (list[VaultSecretGroup]) – The List of certificates for addition to the VM.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(*, name: str | None = None, idle_timeout_in_minutes: int | None = None, dns_settings: _models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machines scale set IP Configuration’s PublicIPAddress configuration.
- Variables:
name (str) – The publicIP address configuration name.
idle_timeout_in_minutes (int) – The idle timeout of the public IP address.
dns_settings (VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings) – The dns settings to be applied on the publicIP addresses .
- Keyword Arguments:
name (str) – The publicIP address configuration name.
idle_timeout_in_minutes (int) – The idle timeout of the public IP address.
dns_settings (VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings) – The dns settings to be applied on the publicIP addresses .
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdateStorageProfile(*, image_reference: _models.ImageReference | None = None, os_disk: _models.VirtualMachineScaleSetUpdateOSDisk | None = None, data_disks: List[_models.VirtualMachineScaleSetDataDisk] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set storage profile.
- Variables:
image_reference (ImageReference) – The image reference.
os_disk (VirtualMachineScaleSetUpdateOSDisk) – The OS disk.
data_disks (list[VirtualMachineScaleSetDataDisk]) – The data disks.
- Keyword Arguments:
image_reference (ImageReference) – The image reference.
os_disk (VirtualMachineScaleSetUpdateOSDisk) – The OS disk.
data_disks (list[VirtualMachineScaleSetDataDisk]) – The data disks.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdateVMProfile(*, os_profile: _models.VirtualMachineScaleSetUpdateOSProfile | None = None, storage_profile: _models.VirtualMachineScaleSetUpdateStorageProfile | None = None, network_profile: _models.VirtualMachineScaleSetUpdateNetworkProfile | None = None, diagnostics_profile: _models.DiagnosticsProfile | None = None, extension_profile: _models.VirtualMachineScaleSetExtensionProfile | None = None, license_type: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set virtual machine profile.
- Variables:
os_profile (VirtualMachineScaleSetUpdateOSProfile) – The virtual machine scale set OS profile.
storage_profile (VirtualMachineScaleSetUpdateStorageProfile) – The virtual machine scale set storage profile.
network_profile (VirtualMachineScaleSetUpdateNetworkProfile) – The virtual machine scale set network profile.
diagnostics_profile (DiagnosticsProfile) – The virtual machine scale set diagnostics profile.
extension_profile (VirtualMachineScaleSetExtensionProfile) – The virtual machine scale set extension profile.
license_type (str) – The license type, which is for bring your own license scenario.
- Keyword Arguments:
os_profile (VirtualMachineScaleSetUpdateOSProfile) – The virtual machine scale set OS profile.
storage_profile (VirtualMachineScaleSetUpdateStorageProfile) – The virtual machine scale set storage profile.
network_profile (VirtualMachineScaleSetUpdateNetworkProfile) – The virtual machine scale set network profile.
diagnostics_profile (DiagnosticsProfile) – The virtual machine scale set diagnostics profile.
extension_profile (VirtualMachineScaleSetExtensionProfile) – The virtual machine scale set extension profile.
license_type (str) – The license type, which is for bring your own license scenario.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVM(*, location: str, tags: Dict[str, str] | None = None, plan: _models.Plan | None = None, hardware_profile: _models.HardwareProfile | None = None, storage_profile: _models.StorageProfile | None = None, os_profile: _models.OSProfile | None = None, network_profile: _models.NetworkProfile | None = None, diagnostics_profile: _models.DiagnosticsProfile | None = None, availability_set: _models.SubResource | None = None, license_type: str | None = None, **kwargs: Any)[source]¶
Bases:
Resource
Describes a virtual machine scale set virtual machine.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Resource Id.
name (str) – Resource name.
type (str) – Resource type.
location (str) – Resource location. Required.
instance_id (str) – The virtual machine instance ID.
sku (Sku) – The virtual machine SKU.
plan (Plan) – Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
resources (list[VirtualMachineExtension]) – The virtual machine child extension resources.
latest_model_applied (bool) – Specifies whether the latest model has been applied to the virtual machine.
vm_id (str) – Azure VM unique ID.
instance_view (VirtualMachineScaleSetVMInstanceView) – The virtual machine instance view.
hardware_profile (HardwareProfile) – Specifies the hardware settings for the virtual machine.
storage_profile (StorageProfile) – Specifies the storage settings for the virtual machine disks.
os_profile (OSProfile) – Specifies the operating system settings for the virtual machine.
network_profile (NetworkProfile) – Specifies the network interfaces of the virtual machine.
diagnostics_profile (DiagnosticsProfile) – Specifies the boot diagnostic settings state.
<br>
:code:`<br>`Minimum api-version: 2015-06-15.availability_set (SubResource) –
Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Manage the availability of virtual machines. # pylint: disable=line-too-long
<br>
<br>
For more information on Azure planned maintenance, see Planned maintenance for virtual machines in Azure # pylint: disable=line-too-long<br>
<br>
Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.provisioning_state (str) – The provisioning state, which only appears in the response.
license_type (str) –
Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.
<br>
<br>
Possible values are:<br>
<br>
Windows_Client<br>
<br>
Windows_Server<br>
<br>
If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.<br>
<br>
For more information, see Azure Hybrid Use Benefit for Windows Server # pylint: disable=line-too-long<br>
<br>
Minimum api-version: 2015-06-15.
- Keyword Arguments:
location (str) – Resource location. Required.
plan (Plan) – Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.
hardware_profile (HardwareProfile) – Specifies the hardware settings for the virtual machine.
storage_profile (StorageProfile) – Specifies the storage settings for the virtual machine disks.
os_profile (OSProfile) – Specifies the operating system settings for the virtual machine.
network_profile (NetworkProfile) – Specifies the network interfaces of the virtual machine.
diagnostics_profile (DiagnosticsProfile) – Specifies the boot diagnostic settings state.
<br>
:code:`<br>`Minimum api-version: 2015-06-15.availability_set (SubResource) –
Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Manage the availability of virtual machines. # pylint: disable=line-too-long
<br>
<br>
For more information on Azure planned maintenance, see Planned maintenance for virtual machines in Azure # pylint: disable=line-too-long<br>
<br>
Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.license_type (str) –
Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.
<br>
<br>
Possible values are:<br>
<br>
Windows_Client<br>
<br>
Windows_Server<br>
<br>
If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.<br>
<br>
For more information, see Azure Hybrid Use Benefit for Windows Server # pylint: disable=line-too-long<br>
<br>
Minimum api-version: 2015-06-15.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMExtensionsSummary(**kwargs: Any)[source]¶
Bases:
Model
Extensions summary for virtual machines of a virtual machine scale set.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
name (str) – The extension name.
statuses_summary (list[VirtualMachineStatusCodeCount]) – The extensions information.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs(*, instance_ids: List[str] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies a list of virtual machine instance IDs from the VM scale set.
- Variables:
instance_ids (list[str]) – The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set.
- Keyword Arguments:
instance_ids (list[str]) – The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs(*, instance_ids: List[str], **kwargs: Any)[source]¶
Bases:
Model
Specifies a list of virtual machine instance IDs from the VM scale set.
All required parameters must be populated in order to send to server.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceView(*, platform_update_domain: int | None = None, platform_fault_domain: int | None = None, rdp_thumb_print: str | None = None, vm_agent: _models.VirtualMachineAgentInstanceView | None = None, disks: List[_models.DiskInstanceView] | None = None, extensions: List[_models.VirtualMachineExtensionInstanceView] | None = None, boot_diagnostics: _models.BootDiagnosticsInstanceView | None = None, statuses: List[_models.InstanceViewStatus] | None = None, placement_group_id: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The instance view of a virtual machine scale set VM.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
platform_update_domain (int) – The Update Domain count.
platform_fault_domain (int) – The Fault Domain count.
rdp_thumb_print (str) – The Remote desktop certificate thumbprint.
vm_agent (VirtualMachineAgentInstanceView) – The VM Agent running on the virtual machine.
disks (list[DiskInstanceView]) – The disks information.
extensions (list[VirtualMachineExtensionInstanceView]) – The extensions information.
vm_health (VirtualMachineHealthStatus) – The health status for the VM.
boot_diagnostics (BootDiagnosticsInstanceView) – Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
<br>
<br>
You can easily view the output of your console log.<br>
<br>
Azure also enables you to see a screenshot of the VM from the hypervisor.statuses (list[InstanceViewStatus]) – The resource status information.
placement_group_id (str) – The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId.
- Keyword Arguments:
platform_update_domain (int) – The Update Domain count.
platform_fault_domain (int) – The Fault Domain count.
rdp_thumb_print (str) – The Remote desktop certificate thumbprint.
vm_agent (VirtualMachineAgentInstanceView) – The VM Agent running on the virtual machine.
disks (list[DiskInstanceView]) – The disks information.
extensions (list[VirtualMachineExtensionInstanceView]) – The extensions information.
boot_diagnostics (BootDiagnosticsInstanceView) – Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
<br>
<br>
You can easily view the output of your console log.<br>
<br>
Azure also enables you to see a screenshot of the VM from the hypervisor.statuses (list[InstanceViewStatus]) – The resource status information.
placement_group_id (str) – The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMListResult(*, value: List[_models.VirtualMachineScaleSetVM], next_link: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Virtual Machine Scale Set VMs operation response.
All required parameters must be populated in order to send to server.
- Variables:
value (list[VirtualMachineScaleSetVM]) – The list of virtual machine scale sets VMs. Required.
next_link (str) – The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS VMs.
- Keyword Arguments:
value (list[VirtualMachineScaleSetVM]) – The list of virtual machine scale sets VMs. Required.
next_link (str) – The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS VMs.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMProfile(*, os_profile: _models.VirtualMachineScaleSetOSProfile | None = None, storage_profile: _models.VirtualMachineScaleSetStorageProfile | None = None, network_profile: _models.VirtualMachineScaleSetNetworkProfile | None = None, diagnostics_profile: _models.DiagnosticsProfile | None = None, extension_profile: _models.VirtualMachineScaleSetExtensionProfile | None = None, license_type: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes a virtual machine scale set virtual machine profile.
- Variables:
os_profile (VirtualMachineScaleSetOSProfile) – Specifies the operating system settings for the virtual machines in the scale set.
storage_profile (VirtualMachineScaleSetStorageProfile) – Specifies the storage settings for the virtual machine disks.
network_profile (VirtualMachineScaleSetNetworkProfile) – Specifies properties of the network interfaces of the virtual machines in the scale set.
diagnostics_profile (DiagnosticsProfile) – Specifies the boot diagnostic settings state.
<br>
:code:`<br>`Minimum api-version: 2015-06-15.extension_profile (VirtualMachineScaleSetExtensionProfile) – Specifies a collection of settings for extensions installed on virtual machines in the scale set.
license_type (str) –
Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.
<br>
<br>
Possible values are:<br>
<br>
Windows_Client<br>
<br>
Windows_Server<br>
<br>
If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.<br>
<br>
For more information, see Azure Hybrid Use Benefit for Windows Server # pylint: disable=line-too-long<br>
<br>
Minimum api-version: 2015-06-15.
- Keyword Arguments:
os_profile (VirtualMachineScaleSetOSProfile) – Specifies the operating system settings for the virtual machines in the scale set.
storage_profile (VirtualMachineScaleSetStorageProfile) – Specifies the storage settings for the virtual machine disks.
network_profile (VirtualMachineScaleSetNetworkProfile) – Specifies properties of the network interfaces of the virtual machines in the scale set.
diagnostics_profile (DiagnosticsProfile) – Specifies the boot diagnostic settings state.
<br>
:code:`<br>`Minimum api-version: 2015-06-15.extension_profile (VirtualMachineScaleSetExtensionProfile) – Specifies a collection of settings for extensions installed on virtual machines in the scale set.
license_type (str) –
Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.
<br>
<br>
Possible values are:<br>
<br>
Windows_Client<br>
<br>
Windows_Server<br>
<br>
If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.<br>
<br>
For more information, see Azure Hybrid Use Benefit for Windows Server # pylint: disable=line-too-long<br>
<br>
Minimum api-version: 2015-06-15.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineSize(*, name: str | None = None, number_of_cores: int | None = None, os_disk_size_in_mb: int | None = None, resource_disk_size_in_mb: int | None = None, memory_in_mb: int | None = None, max_data_disk_count: int | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes the properties of a VM size.
- Variables:
name (str) – The name of the virtual machine size.
number_of_cores (int) – The number of cores supported by the virtual machine size.
os_disk_size_in_mb (int) – The OS disk size, in MB, allowed by the virtual machine size.
resource_disk_size_in_mb (int) – The resource disk size, in MB, allowed by the virtual machine size.
memory_in_mb (int) – The amount of memory, in MB, supported by the virtual machine size.
max_data_disk_count (int) – The maximum number of data disks that can be attached to the virtual machine size.
- Keyword Arguments:
name (str) – The name of the virtual machine size.
number_of_cores (int) – The number of cores supported by the virtual machine size.
os_disk_size_in_mb (int) – The OS disk size, in MB, allowed by the virtual machine size.
resource_disk_size_in_mb (int) – The resource disk size, in MB, allowed by the virtual machine size.
memory_in_mb (int) – The amount of memory, in MB, supported by the virtual machine size.
max_data_disk_count (int) – The maximum number of data disks that can be attached to the virtual machine size.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineSizeListResult(*, value: List[_models.VirtualMachineSize] | None = None, **kwargs: Any)[source]¶
Bases:
Model
The List Virtual Machine operation response.
- Variables:
value (list[VirtualMachineSize]) – The list of virtual machine sizes.
- Keyword Arguments:
value (list[VirtualMachineSize]) – The list of virtual machine sizes.
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineSizeTypes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
-
Specifies the size of the virtual machine. For more information about virtual machine sizes, see Sizes for virtual machines.
<br>
<br>
The available VM sizes depend on region and availability set. For a list of available sizes use these APIs:<br>
<br>
List all available virtual machine sizes in an availability set<br>
<br>
List all available virtual machine sizes in a region<br>
<br>
List all available virtual machine sizes for resizing.- BASIC_A0 = 'Basic_A0'¶
- BASIC_A1 = 'Basic_A1'¶
- BASIC_A2 = 'Basic_A2'¶
- BASIC_A3 = 'Basic_A3'¶
- BASIC_A4 = 'Basic_A4'¶
- STANDARD_A0 = 'Standard_A0'¶
- STANDARD_A1 = 'Standard_A1'¶
- STANDARD_A10 = 'Standard_A10'¶
- STANDARD_A11 = 'Standard_A11'¶
- STANDARD_A1_V2 = 'Standard_A1_v2'¶
- STANDARD_A2 = 'Standard_A2'¶
- STANDARD_A2_M_V2 = 'Standard_A2m_v2'¶
- STANDARD_A2_V2 = 'Standard_A2_v2'¶
- STANDARD_A3 = 'Standard_A3'¶
- STANDARD_A4 = 'Standard_A4'¶
- STANDARD_A4_M_V2 = 'Standard_A4m_v2'¶
- STANDARD_A4_V2 = 'Standard_A4_v2'¶
- STANDARD_A5 = 'Standard_A5'¶
- STANDARD_A6 = 'Standard_A6'¶
- STANDARD_A7 = 'Standard_A7'¶
- STANDARD_A8 = 'Standard_A8'¶
- STANDARD_A8_M_V2 = 'Standard_A8m_v2'¶
- STANDARD_A8_V2 = 'Standard_A8_v2'¶
- STANDARD_A9 = 'Standard_A9'¶
- STANDARD_D1 = 'Standard_D1'¶
- STANDARD_D11 = 'Standard_D11'¶
- STANDARD_D11_V2 = 'Standard_D11_v2'¶
- STANDARD_D12 = 'Standard_D12'¶
- STANDARD_D12_V2 = 'Standard_D12_v2'¶
- STANDARD_D13 = 'Standard_D13'¶
- STANDARD_D13_V2 = 'Standard_D13_v2'¶
- STANDARD_D14 = 'Standard_D14'¶
- STANDARD_D14_V2 = 'Standard_D14_v2'¶
- STANDARD_D15_V2 = 'Standard_D15_v2'¶
- STANDARD_D1_V2 = 'Standard_D1_v2'¶
- STANDARD_D2 = 'Standard_D2'¶
- STANDARD_D2_V2 = 'Standard_D2_v2'¶
- STANDARD_D3 = 'Standard_D3'¶
- STANDARD_D3_V2 = 'Standard_D3_v2'¶
- STANDARD_D4 = 'Standard_D4'¶
- STANDARD_D4_V2 = 'Standard_D4_v2'¶
- STANDARD_D5_V2 = 'Standard_D5_v2'¶
- STANDARD_DS1 = 'Standard_DS1'¶
- STANDARD_DS11 = 'Standard_DS11'¶
- STANDARD_DS11_V2 = 'Standard_DS11_v2'¶
- STANDARD_DS12 = 'Standard_DS12'¶
- STANDARD_DS12_V2 = 'Standard_DS12_v2'¶
- STANDARD_DS13 = 'Standard_DS13'¶
- STANDARD_DS13_V2 = 'Standard_DS13_v2'¶
- STANDARD_DS14 = 'Standard_DS14'¶
- STANDARD_DS14_V2 = 'Standard_DS14_v2'¶
- STANDARD_DS15_V2 = 'Standard_DS15_v2'¶
- STANDARD_DS1_V2 = 'Standard_DS1_v2'¶
- STANDARD_DS2 = 'Standard_DS2'¶
- STANDARD_DS2_V2 = 'Standard_DS2_v2'¶
- STANDARD_DS3 = 'Standard_DS3'¶
- STANDARD_DS3_V2 = 'Standard_DS3_v2'¶
- STANDARD_DS4 = 'Standard_DS4'¶
- STANDARD_DS4_V2 = 'Standard_DS4_v2'¶
- STANDARD_DS5_V2 = 'Standard_DS5_v2'¶
- STANDARD_F1 = 'Standard_F1'¶
- STANDARD_F16 = 'Standard_F16'¶
- STANDARD_F16_S = 'Standard_F16s'¶
- STANDARD_F1_S = 'Standard_F1s'¶
- STANDARD_F2 = 'Standard_F2'¶
- STANDARD_F2_S = 'Standard_F2s'¶
- STANDARD_F4 = 'Standard_F4'¶
- STANDARD_F4_S = 'Standard_F4s'¶
- STANDARD_F8 = 'Standard_F8'¶
- STANDARD_F8_S = 'Standard_F8s'¶
- STANDARD_G1 = 'Standard_G1'¶
- STANDARD_G2 = 'Standard_G2'¶
- STANDARD_G3 = 'Standard_G3'¶
- STANDARD_G4 = 'Standard_G4'¶
- STANDARD_G5 = 'Standard_G5'¶
- STANDARD_GS1 = 'Standard_GS1'¶
- STANDARD_GS2 = 'Standard_GS2'¶
- STANDARD_GS3 = 'Standard_GS3'¶
- STANDARD_GS4 = 'Standard_GS4'¶
- STANDARD_GS5 = 'Standard_GS5'¶
- STANDARD_H16 = 'Standard_H16'¶
- STANDARD_H16_M = 'Standard_H16m'¶
- STANDARD_H16_MR = 'Standard_H16mr'¶
- STANDARD_H16_R = 'Standard_H16r'¶
- STANDARD_H8 = 'Standard_H8'¶
- STANDARD_H8_M = 'Standard_H8m'¶
- STANDARD_L16_S = 'Standard_L16s'¶
- STANDARD_L32_S = 'Standard_L32s'¶
- STANDARD_L4_S = 'Standard_L4s'¶
- STANDARD_L8_S = 'Standard_L8s'¶
- STANDARD_NC12 = 'Standard_NC12'¶
- STANDARD_NC24 = 'Standard_NC24'¶
- STANDARD_NC24_R = 'Standard_NC24r'¶
- STANDARD_NC6 = 'Standard_NC6'¶
- STANDARD_NV12 = 'Standard_NV12'¶
- STANDARD_NV24 = 'Standard_NV24'¶
- STANDARD_NV6 = 'Standard_NV6'¶
- class azure.mgmt.compute.v2017_03_30.models.VirtualMachineStatusCodeCount(**kwargs: Any)[source]¶
Bases:
Model
The status code and count of the virtual machine scale set instance view status summary.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.compute.v2017_03_30.models.WinRMConfiguration(*, listeners: List[_models.WinRMListener] | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes Windows Remote Management configuration of the VM.
- Variables:
listeners (list[WinRMListener]) – The list of Windows Remote Management listeners.
- Keyword Arguments:
listeners (list[WinRMListener]) – The list of Windows Remote Management listeners.
- class azure.mgmt.compute.v2017_03_30.models.WinRMListener(*, protocol: str | _models.ProtocolTypes | None = None, certificate_url: str | None = None, **kwargs: Any)[source]¶
Bases:
Model
Describes Protocol and thumbprint of Windows Remote Management listener.
- Variables:
protocol (str or ProtocolTypes) – Specifies the protocol of listener.
<br>
<br>
Possible values are:<br>
http<br>
<br>
https. Known values are: “Http” and “Https”.certificate_url (str) –
This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see Add a key or secret to the key vault. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:
<br>
<br>
{<br>
“data”:”<Base64-encoded-certificate>
”,<br>
“dataType”:”pfx”,<br>
“password”:”<pfx-file-password>
”<br>
}.
- Keyword Arguments:
protocol (str or ProtocolTypes) – Specifies the protocol of listener.
<br>
<br>
Possible values are:<br>
http<br>
<br>
https. Known values are: “Http” and “Https”.certificate_url (str) –
This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see Add a key or secret to the key vault. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:
<br>
<br>
{<br>
“data”:”<Base64-encoded-certificate>
”,<br>
“dataType”:”pfx”,<br>
“password”:”<pfx-file-password>
”<br>
}.
- class azure.mgmt.compute.v2017_03_30.models.WindowsConfiguration(*, provision_vm_agent: bool | None = None, enable_automatic_updates: bool | None = None, time_zone: str | None = None, additional_unattend_content: List[_models.AdditionalUnattendContent] | None = None, win_rm: _models.WinRMConfiguration | None = None, **kwargs: Any)[source]¶
Bases:
Model
Specifies Windows operating system settings on the virtual machine.
- Variables:
provision_vm_agent (bool) – Indicates whether virtual machine agent should be provisioned on the virtual machine.
<br>
<br>
When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.enable_automatic_updates (bool) – Indicates whether virtual machine is enabled for automatic updates.
time_zone (str) – Specifies the time zone of the virtual machine. e.g. “Pacific Standard Time”.
additional_unattend_content (list[AdditionalUnattendContent]) – Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.
win_rm (WinRMConfiguration) – Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.
- Keyword Arguments:
provision_vm_agent (bool) – Indicates whether virtual machine agent should be provisioned on the virtual machine.
<br>
<br>
When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.enable_automatic_updates (bool) – Indicates whether virtual machine is enabled for automatic updates.
time_zone (str) – Specifies the time zone of the virtual machine. e.g. “Pacific Standard Time”.
additional_unattend_content (list[AdditionalUnattendContent]) – Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.
win_rm (WinRMConfiguration) – Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.