Virtual Machine Images - List With Properties
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions?api-version=2024-11-01&$expand={$expand}
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions?api-version=2024-11-01&$expand={$expand}&$top={$top}&$orderby={$orderby}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string minLength: 1 |
The name of Azure region. |
offer
|
path | True |
string |
A valid image publisher offer. |
publisher
|
path | True |
string |
A valid image publisher. |
skus
|
path | True |
string |
A valid image SKU. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
$expand
|
query | True |
string |
The expand expression to apply on the operation. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
$orderby
|
query |
string |
||
$top
|
query |
integer (int32) |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The request has succeeded. |
|
Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Virtual |
Virtual |
VirtualMachineImages_ListWithProperties_MaximumSet
Sample request
GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions?api-version=2024-11-01&$expand=Properties&$top=4&$orderby=aa
Sample response
{
"value": [
{
"properties": {
"plan": {
"publisher": "MicrosoftWindowsServer",
"name": "aaaaaaaaa",
"product": "aaaaaaaaaaaaaa"
},
"osDiskImage": {
"operatingSystem": "Windows"
},
"dataDiskImages": [
{
"lun": 17
}
],
"automaticOSUpgradeProperties": {
"automaticOSUpgradeSupported": true
},
"hyperVGeneration": "V1",
"disallowed": {
"vmDiskType": "None"
},
"features": [
{
"name": "aaaaaaaaaaaaaaaaaaaaa",
"value": "aaaaaaaaaaaaaaaaaaaa"
}
],
"imageDeprecationStatus": {
"imageState": "ScheduledForDeprecation",
"scheduledDeprecationTime": "2023-01-13T00:00:00+00:00",
"alternativeOption": {
"type": "Offer",
"value": "aaaaaaa"
}
},
"architecture": "x64"
},
"name": "aaaaaaaaa",
"location": "aaaaa",
"tags": {},
"extendedLocation": {
"name": "aaaaaaaaaaaaaaaaaaaaa",
"type": "EdgeZone"
},
"id": "aaaaaaaaaaa"
}
],
"nextLink": "a://example.com/aaaa"
}
VirtualMachineImages_ListWithProperties_MinimumSet
Sample request
GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions?api-version=2024-11-01&$expand=Properties
Sample response
{}
Definitions
Name | Description |
---|---|
Alternative |
Describes the alternative option specified by the Publisher for this image when this image is deprecated. |
Alternative |
Describes the type of the alternative option. |
Api |
Api error. |
Api |
Api error base. |
Architecture |
Specifies the Architecture Type |
Automatic |
Describes automatic OS upgrade properties on the image. |
Cloud |
An error response from the Compute service. |
Data |
Contains the data disk images information. |
Disallowed |
Specifies the disallowed configuration for a virtual machine image. |
Extended |
The complex type of the extended location. |
Extended |
The type of the extended location. |
Hyper |
Specifies the HyperVGeneration Type |
Image |
Describes image deprecation status properties on the image. |
Image |
Describes the state of the image. |
Inner |
Inner error details. |
Operating |
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. Possible values are: Windows, Linux. |
OSDisk |
Contains the os disk image information. |
Purchase |
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. |
Virtual |
Describes a Virtual Machine Image. |
Virtual |
Specifies additional capabilities supported by the image |
Vm |
VM disk types which are disallowed. |
AlternativeOption
Describes the alternative option specified by the Publisher for this image when this image is deprecated.
Name | Type | Description |
---|---|---|
type |
Describes the type of the alternative option. |
|
value |
string |
Indicates the alternative option value specified by the Publisher. This is the Offer name when the type is Offer or the Plan name when the type is Plan. |
AlternativeType
Describes the type of the alternative option.
Value | Description |
---|---|
None | |
Offer | |
Plan |
ApiError
Api error.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
details |
The Api error details |
|
innererror |
The Api inner error |
|
message |
string |
The error message. |
target |
string |
The target of the particular error. |
ApiErrorBase
Api error base.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
message |
string |
The error message. |
target |
string |
The target of the particular error. |
ArchitectureTypes
Specifies the Architecture Type
Value | Description |
---|---|
x64 | |
Arm64 |
AutomaticOSUpgradeProperties
Describes automatic OS upgrade properties on the image.
Name | Type | Description |
---|---|---|
automaticOSUpgradeSupported |
boolean |
Specifies whether automatic OS upgrade is supported on the image. |
CloudError
An error response from the Compute service.
Name | Type | Description |
---|---|---|
error |
Api error. |
DataDiskImage
Contains the data disk images information.
Name | Type | Description |
---|---|---|
lun |
integer (int32) |
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. |
DisallowedConfiguration
Specifies the disallowed configuration for a virtual machine image.
Name | Type | Description |
---|---|---|
vmDiskType |
VM disk types which are disallowed. |
ExtendedLocation
The complex type of the extended location.
Name | Type | Description |
---|---|---|
name |
string |
The name of the extended location. |
type |
The type of the extended location. |
ExtendedLocationTypes
The type of the extended location.
Value | Description |
---|---|
EdgeZone |
HyperVGenerationTypes
Specifies the HyperVGeneration Type
Value | Description |
---|---|
V1 | |
V2 |
ImageDeprecationStatus
Describes image deprecation status properties on the image.
Name | Type | Description |
---|---|---|
alternativeOption |
Describes the alternative option specified by the Publisher for this image when this image is deprecated. |
|
imageState |
Describes the state of the image. |
|
scheduledDeprecationTime |
string (date-time) |
The time, in future, at which this image will be marked as deprecated. This scheduled time is chosen by the Publisher. |
ImageState
Describes the state of the image.
Value | Description |
---|---|
Active | |
ScheduledForDeprecation | |
Deprecated |
InnerError
Inner error details.
Name | Type | Description |
---|---|---|
errordetail |
string |
The internal error message or exception dump. |
exceptiontype |
string |
The exception type. |
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. Possible values are: Windows, Linux.
Value | Description |
---|---|
Windows | |
Linux |
OSDiskImage
Contains the os disk image information.
Name | Type | Description |
---|---|---|
operatingSystem |
The operating system of the osDiskImage. |
PurchasePlan
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
Name | Type | Description |
---|---|---|
name |
string |
The plan ID. |
product |
string |
Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. |
publisher |
string |
The publisher ID. |
VirtualMachineImage
Describes a Virtual Machine Image.
Name | Type | Description |
---|---|---|
extendedLocation |
The extended location of the Virtual Machine. |
|
id |
string |
Resource Id |
location |
string |
The supported Azure location of the resource. |
name |
string |
The name of the resource. |
properties.architecture |
Specifies the Architecture Type |
|
properties.automaticOSUpgradeProperties |
Describes automatic OS upgrade properties on the image. |
|
properties.dataDiskImages |
The list of data disk images information. |
|
properties.disallowed |
Specifies disallowed configuration for the VirtualMachine created from the image |
|
properties.features |
Specifies additional capabilities supported by the image |
|
properties.hyperVGeneration |
Specifies the HyperVGeneration Type |
|
properties.imageDeprecationStatus |
Describes image deprecation status properties on the image. |
|
properties.osDiskImage |
Contains the os disk image information. |
|
properties.plan |
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. |
|
tags |
object |
Specifies the tags that are assigned to the virtual machine. For more information about using tags, see Using tags to organize your Azure resources. |
VirtualMachineImageFeature
Specifies additional capabilities supported by the image
Name | Type | Description |
---|---|---|
name |
string |
The name of the feature. |
value |
string |
The corresponding value for the feature. |
VmDiskTypes
VM disk types which are disallowed.
Value | Description |
---|---|
None | |
Unmanaged |