VirtualMachineImagesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:virtual_machine_images> attribute.
- Inheritance
-
builtins.objectVirtualMachineImagesOperations
Constructor
VirtualMachineImagesOperations(*args, **kwargs)
Methods
get |
Gets a virtual machine image. |
list |
Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. |
list_offers |
Gets a list of virtual machine image offers for the specified location and publisher. |
list_publishers |
Gets a list of virtual machine image publishers for the specified Azure location. |
list_skus |
Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. |
get
Gets a virtual machine image.
async get(location: str, publisher_name: str, offer: str, skus: str, version: str, **kwargs: Any) -> VirtualMachineImage
Parameters
Name | Description |
---|---|
location
Required
|
The name of a supported Azure region. Required. |
publisher_name
Required
|
A valid image publisher. Required. |
offer
Required
|
A valid image publisher offer. Required. |
skus
Required
|
A valid image SKU. Required. |
version
Required
|
A valid image SKU version. Required. |
Returns
Type | Description |
---|---|
VirtualMachineImage or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
async list(location: str, publisher_name: str, offer: str, skus: str, *, expand: str | None = None, top: int | None = None, orderby: str | None = None, **kwargs: Any) -> List[VirtualMachineImageResource]
Parameters
Name | Description |
---|---|
location
Required
|
The name of a supported Azure region. Required. |
publisher_name
Required
|
A valid image publisher. Required. |
offer
Required
|
A valid image publisher offer. Required. |
skus
Required
|
A valid image SKU. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
expand
|
The expand expression to apply on the operation. Default value is None. |
top
|
Default value is None. |
orderby
|
Default value is None. |
Returns
Type | Description |
---|---|
list of VirtualMachineImageResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_offers
Gets a list of virtual machine image offers for the specified location and publisher.
async list_offers(location: str, publisher_name: str, **kwargs: Any) -> List[VirtualMachineImageResource]
Parameters
Name | Description |
---|---|
location
Required
|
The name of a supported Azure region. Required. |
publisher_name
Required
|
A valid image publisher. Required. |
Returns
Type | Description |
---|---|
list of VirtualMachineImageResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_publishers
Gets a list of virtual machine image publishers for the specified Azure location.
async list_publishers(location: str, **kwargs: Any) -> List[VirtualMachineImageResource]
Parameters
Name | Description |
---|---|
location
Required
|
The name of a supported Azure region. Required. |
Returns
Type | Description |
---|---|
list of VirtualMachineImageResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_skus
Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.
async list_skus(location: str, publisher_name: str, offer: str, **kwargs: Any) -> List[VirtualMachineImageResource]
Parameters
Name | Description |
---|---|
location
Required
|
The name of a supported Azure region. Required. |
publisher_name
Required
|
A valid image publisher. Required. |
offer
Required
|
A valid image publisher offer. Required. |
Returns
Type | Description |
---|---|
list of VirtualMachineImageResource or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.compute.v2019_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2019_03_01\\models\\__init__.py'>
Azure SDK for Python