Virtual Machine Images - Get
Gets a virtual machine image.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}?api-version=2024-03-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string |
The name of a supported 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 |
Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
version
|
path | True |
string |
A valid image SKU version. |
api-version
|
query | True |
string |
Client Api Version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
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 |
VirtualMachineImage_Get_MaximumSet_Gen
Sample Request
GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/aaaaaa/publishers/aaa/artifacttypes/vmimage/offers/aaaaaaaaaaaaaaaaaaaaaaaaaaaaa/skus/aaaaaaaaaaaaaaaaaaaaaaaaaaa/versions/aaaaaaaaaaaaaaaaaaa?api-version=2024-03-01
Sample Response
{
"properties": {
"plan": {
"publisher": "aaaaaaaaaaaaaaaaaaa",
"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"
}
}
},
"name": "aaaaaaaaa",
"location": "aaaaa",
"tags": {
"key6817": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"extendedLocation": {
"name": "aaaaaaaaaaaaaaaaaaaaa",
"type": "EdgeZone"
},
"id": "aaaaaaaaaaa"
}
VirtualMachineImage_Get_MinimumSet_Gen
Sample Request
GET https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/aaaaaaaaaaaa/publishers/aaaaaaaaaaa/artifacttypes/vmimage/offers/aa/skus/aaaaaaaaa/versions/aaaaaaaaaaaaaaaaaaaaaaaaaaaaa?api-version=2024-03-01
Sample Response
{
"name": "aaaaaaaaa",
"location": "aaaaa",
"id": "aaaaaaaaaaa"
}
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 |
The operating system of the osDiskImage. |
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.
Name | Type | Description |
---|---|---|
None |
string |
|
Offer |
string |
|
Plan |
string |
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
Name | Type | Description |
---|---|---|
Arm64 |
string |
|
x64 |
string |
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 |
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.
Name | Type | Description |
---|---|---|
EdgeZone |
string |
HyperVGenerationTypes
Specifies the HyperVGeneration Type
Name | Type | Description |
---|---|---|
V1 |
string |
|
V2 |
string |
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 |
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.
Name | Type | Description |
---|---|---|
Active |
string |
|
Deprecated |
string |
|
ScheduledForDeprecation |
string |
InnerError
Inner error details.
Name | Type | Description |
---|---|---|
errordetail |
string |
The internal error message or exception dump. |
exceptiontype |
string |
The exception type. |
OperatingSystemTypes
The operating system of the osDiskImage.
Name | Type | Description |
---|---|---|
Linux |
string |
|
Windows |
string |
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 |
Contains the 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.
Name | Type | Description |
---|---|---|
None |
string |
|
Unmanaged |
string |