Skip to content

Add PlatformImageFeatures to VMImage object in PIR Consumption GET API #16863

@grace-liang

Description

@grace-liang

Resource Provider
Azure.Compute

Description of Feature or Work Requested

GET Consumption API docs: https://docs.microsoft.com/en-us/cli/azure/vm/image?view=azure-cli-latest#az_vm_image_show

Sample command:
grace@Azure:~$ az vm image show --location EastUS2EUAP --publisher RedHat --offer RHEL --sku 8_3 --version 8.3.2020111905

Sample current payload:
{ "automaticOsUpgradeProperties": { "automaticOsUpgradeSupported": false }, "dataDiskImages": [], "disallowed": { "vmDiskType": "None" }, "hyperVGeneration": "V1", "id": "/Subscriptions/97f78232-382b-46a7-8a72-964d692c4f3f/Providers/Microsoft.Compute/Locations/EastUS2EUAP/Publishers/RedHat/ArtifactTypes/VMImage/Offers/RHEL/Skus/8_3/Versions/8.3.2020111905", "location": "EastUS2EUAP", "name": "8.3.2020111905", "osDiskImage": { "operatingSystem": "Linux", "sizeInBytes": 68719477248, "sizeInGb": 64 }, "plan": null, "tags": null }

Work requested:
An optional list of objects named features can be returned, but can also be null or empty. The features array contains an arbitrary number of PlatformImageFeature objects with fields name and value which contains arbitrary string values.

public class PlatformImageFeature { public String name; public String value; }

Example:
"features": [ { "name": "SecurityType", "value": "TrustedLaunchSupported" }, { "name": "IsHibernateSupported", "value": "True" } ],

Note: please do testing in canary regions- this array will not be returned in public regions until post public preview announcement.

Minimum API Version Required
Any. Work is not versioned.

Swagger Link
Swagger: Azure/azure-rest-api-specs#12085

  • currently checked in to compute-2020-12 branch, which will be merged with master shortly, if it hasn't already.

Target Date
Feb 26, 2021

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions