-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PlatformImageFeatures to VMImage object in PIR Consumption GET API #16863
Comments
Swagger not in master yet. |
Closing this request for now, please disregard. Will revisit soon. |
Reopening. Swagger was merged to master in this PR: Azure/azure-rest-api-specs#12334 |
OK |
@grace-liang It is supported now.
I get
Can you give a image that has features? |
Sorry about that @qwordy. Please use which should return |
Thanks, @grace-liang. I test it in Azure CLI 2.20.0. It works as expected. Close this issue now. |
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. Thefeatures
array contains an arbitrary number of PlatformImageFeature objects with fieldsname
andvalue
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
Target Date
Feb 26, 2021
The text was updated successfully, but these errors were encountered: