-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
compute VirtualMachines_ListAll OBJECT_MISSING_REQUIRED_PROPERTY #14459
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @amjads1. Issue DetailsThe latest specs for compute #14223 #12334 have Swagger correctness bugs that break deserialization with the Azure SDK for Rust Azure/azure-sdk-for-rust#54. In this case, it looks to be a bug in the Swagger spec. The API does not send back the required location.. The definition should probably be
|
@avirishuv can you please have a look? |
Following up to investigate this. |
quick update: this is added to the backlog for bugfix, will provide an update here when it gets picked up. |
quick update: the fix is still in progress. |
fix rollout is yet to be completed for this issue. |
I'm able to reproduce the api-version 2021-11-01. I'll try to break down the problem a bit more. The operation Lines 13880 to 13897 in f635d0f
Each Lines 11089 to 11106 in f635d0f
Use your favorite tool or SDK to list VMs. An example request is One of the "resources": [
{
"id": "/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/AAGILLCS/providers/Microsoft.Compute/virtualMachines/tnt42-mgmt-p01-eastus2-incumbentVm/extensions/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent"
},
{
"id": "/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/AAGILLCS/providers/Microsoft.Compute/virtualMachines/tnt42-mgmt-p01-eastus2-incumbentVm/extensions/Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent"
} Notice that it only includes the "Resource": {
"description": "The Resource model definition.",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Resource Id"
},
"name": {
"readOnly": true,
"type": "string",
"description": "Resource name"
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type"
},
"location": {
"type": "string",
"description": "Resource location"
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"required": [
"location"
],
"x-ms-azure-resource": true
}, A "SubResourceReadOnly": {
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Resource Id"
}
},
"x-ms-azure-resource": true
}, |
Assigned myself this, as I am taking ownership of this issue |
@cataggar thank you for the comment and attention. Changing from 'Resource' to 'SubResourceReadOnly' will remove 'name', 'type', 'location', and 'tags' property.
You can see them present. I am exploring another solution: creating a new object called "ResouceWithOptionalLocation" which has the same properties but without having location tagged as 'required'. You can see my change 'here' I am working with the Swagger team for this changes impact on SDKs (track 2 and 1). I will keep you updated. |
I see. That makes sense. Thanks @grizzlytheodore. |
PR made to resolve: #18487 |
The latest specs for compute #14223 #12334 have Swagger correctness bugs that break deserialization with the Azure SDK for Rust Azure/azure-sdk-for-rust#54. In this case, it looks to be a bug in the Swagger spec. The API does not send back the required location.. The definition should probably be
SubResourceReadOnly
instead ofResource
. See #14458.The text was updated successfully, but these errors were encountered: