azure-sdk-for-go
azure-sdk-for-go copied to clipboard
Data fields are missing from VirtualMachineScaleSetVMInstanceView data model
Bug Report
-
import path of package:
".../services/compute/mgmt/2021-12-01/compute"
-
SDK version: all versions including
master
-
output of
go version
: go version go1.18 darwin/arm64 -
What happened? VirtualMachineScaleSetVMInstanceView data model does not include all data fields return by http response. When calling REST API:
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView?api-version=2022-03-01
We are receiving the following from http response body: { "placementGroupId": "21fc0ad4-8f8e-45ee-9633-e750670e71ec", "platformFaultDomain": 0, "computerName": "aks-agentpool-26843202-vmss000000", "osName": "ubuntu", "osVersion": "18.04", "vmAgent": {...}, "disks": [...], "extensions": [...], "hyperVGeneration": "V2", "statuses": [...] }
However, there is no hyperVGeneration, computerName, osName, osVersion properties in data model VirtualMachineScaleSetVMInstanceView
-
What did you expect or want to happen? VirtualMachineScaleSetVMInstanceView data model to include the missing fields hyperVGeneration, computerName, osName, osVersion
-
How can we reproduce it? Call REST API
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView?api-version=2022-03-01
and compare the http response with the VirtualMachineScaleSetVMInstanceView data model -
Anything we should know about your environment. This applies to all environments and both track 1 and track 2 APIs
The packages under /services
are from the legacy SDK and no longer updated. Can you try module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v3
, I believe this has the content you're looking for.
Thanks @jhendrixMSFT. Currently, there are some gaps (such as cross-tenant auth, interface for mock unit testing, and etc.) for AKS to fully migrate to Track 2 SDK clients, especially vmss clients. Is it possible we could get this fix in a special release for track 1 SDK? +@haitch
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv, @vaibhav-agar, @amjads1.
Issue Details
Bug Report
-
import path of package:
".../services/compute/mgmt/2021-12-01/compute"
-
SDK version: all versions including
master
-
output of
go version
: go version go1.18 darwin/arm64 -
What happened? VirtualMachineScaleSetVMInstanceView data model does not include all data fields return by http response. When calling REST API:
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView?api-version=2022-03-01
We are receiving the following from http response body: { "placementGroupId": "21fc0ad4-8f8e-45ee-9633-e750670e71ec", "platformFaultDomain": 0, "computerName": "aks-agentpool-26843202-vmss000000", "osName": "ubuntu", "osVersion": "18.04", "vmAgent": {...}, "disks": [...], "extensions": [...], "hyperVGeneration": "V2", "statuses": [...] }
However, there is no hyperVGeneration, computerName, osName, osVersion properties in data model VirtualMachineScaleSetVMInstanceView
-
What did you expect or want to happen? VirtualMachineScaleSetVMInstanceView data model to include the missing fields hyperVGeneration, computerName, osName, osVersion
-
How can we reproduce it? Call REST API
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView?api-version=2022-03-01
and compare the http response with the VirtualMachineScaleSetVMInstanceView data model -
Anything we should know about your environment. This applies to all environments and both track 1 and track 2 APIs
Author: | yewmsft |
---|---|
Assignees: | lirenhe |
Labels: |
|
Milestone: | - |
From the swagger definition of 2022-03-01
, I could not find the properties hyperVGeneration, computerName, osName, osVersion
either. I'll let service team to have a look.
I will work with @am4234m and the VMSS swagger owners to get the swagger files updated so that this issue will be fixed in the SDKs.
This issue will be addressed in the new swagger version (2022-11-01), expected Dec 23rd, 2022
Swagger fix above has been merged, closing issue as resolved.