azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

missing data in api calls

Open guy93r opened this issue 5 years ago • 11 comments

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug some data is missing from API calls. In my specific use case, I tried to access disk data from the management API. tried running az disk list and on data disks(not OS disks!) the tier field is missing although I can see the tier in the Size + performance tab on the disk management page on the web app. also I tried running az disk show --ids with specific disk ids and the data is still missing. also tried through the python SDK and still no tier. os disk that had tier was of the PX tiers, and the data disk with no tier was EX tiers.

To Reproduce create a new virtual machine with a data disk(E1 for example) and os disk(P1 for example). list the disks and see that the data disk has a tier but the data disk does not.

Expected behavior I expect every disk to have the correct tier.

Environment summary macOS with newest versions installed with pip + brew.

Additional context no Additional context. Thanks!

guy93r avatar Jun 29 '21 12:06 guy93r

Compute

yonzhan avatar Jun 29 '21 12:06 yonzhan

Hi @guy93r, thanks for the feedback. As you mentioned, python SDK cannot return the response with tier, which means its server side behavior. Could you provide debug information with --debug in command, which could also help server side figure out?

Juliehzl avatar Jul 13 '21 04:07 Juliehzl

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv, @vaibhav-agar, @amjads1.

Issue Details

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug some data is missing from API calls. In my specific use case, I tried to access disk data from the management API. tried running az disk list and on data disks(not OS disks!) the tier field is missing although I can see the tier in the Size + performance tab on the disk management page on the web app. also I tried running az disk show --ids with specific disk ids and the data is still missing. also tried through the python SDK and still no tier. os disk that had tier was of the PX tiers, and the data disk with no tier was EX tiers.

To Reproduce create a new virtual machine with a data disk(E1 for example) and os disk(P1 for example). list the disks and see that the data disk has a tier but the data disk does not.

Expected behavior I expect every disk to have the correct tier.

Environment summary macOS with newest versions installed with pip + brew.

Additional context no Additional context. Thanks!

Author: guy93r
Assignees: Juliehzl
Labels:

Compute, Service Attention

Milestone: Jul 2021 (2021-08-03)

ghost avatar Jul 13 '21 04:07 ghost

@Juliehzl REST APIs do return the disk tier irrespective of OS or data disk. See documentation here (search for tier): https://docs.microsoft.com/en-us/rest/api/compute/disks/get

Can you please debug from the CLI side?

Additionally, I am also pasting the GET response for a data disk that mentions tier.

{ "name": "datadisk2", "id": "/subscriptions/49151e6d-fa6e-4985-ae85-00548ec78853/resourceGroups/DFGDF_GROUP/providers/Microsoft.Compute/disks/datadisk2", "type": "Microsoft.Compute/disks", "location": "eastus", "managedBy": "/subscriptions/49151e6d-fa6e-4985-ae85-00548ec78853/resourceGroups/dfgdf_group/providers/Microsoft.Compute/virtualMachines/dfgdf", "sku": { "name": "Premium_LRS", "tier": "Premium" }, "properties": { "creationData": { "createOption": "Empty" }, "diskSizeGB": 4, "diskIOPSReadWrite": 120, "diskMBpsReadWrite": 25, "encryption": { "type": "EncryptionAtRestWithPlatformKey" }, "timeCreated": "2021-01-14T18:54:45.5561018+00:00", "provisioningState": "Succeeded", "diskState": "Reserved", "diskSizeBytes": 4294967296, "uniqueId": "27b3727a-782f-4c71-a999-5931d41246a2", "networkAccessPolicy": "AllowAll", "tier": "P1" }

Vaibhav-Agar avatar Jul 29 '21 19:07 Vaibhav-Agar

@guy93r I can use the commands az disk list and az disk show to obtain the data of tier, so this issue cannot be reproduced on my side. Could you please provide the debug log? Please add the parameter --debug after the executed command, and then send the printed information to me by email. My email address is [email protected], thanks~

zhoxing-ms avatar Jul 30 '21 08:07 zhoxing-ms

Good Morning,

I experience "Tier" missing in both az disk show --ids <disk_id> and also pwsh module Get-AzDisk -ResourceGroupName $resource_group -DiskName $disk_name, consistently across multiple subscription ids.

I'm putting together a retail pricing report and this data is consistently missing and only shows up in about 5% of the disks either OS or Data Disk. I was going to go down the road of creating the tier based on disk size and disk sku, but I don't think I should have to do that if the information is supposed to be available in the API.

@zhoxing-ms - will shoot you an email as well. Thanks

Chris

ChrisPetr0 avatar Aug 17 '21 13:08 ChrisPetr0

@ChrisPetr0 Thank you for your email. Neither CLI nor PowerShell return the data of tier because the service API does not return the data. This issue belongs to the service team, it needs them to investigate. correlation-id: d83ab220-401c-4311-9cfe-23e1045f269ds

@rahul602 Could you please help to have a look

zhoxing-ms avatar Aug 18 '21 02:08 zhoxing-ms

Tier is only available for new Premium SKU disks created after the feature to change performance tier was GA (July 2020). Some disk created before that might have tier if they were created in the regions where this feature was in preview. If an existing disk is resized, customer explicitly sets a tier on the disk or if it's SKU changes from standard to premium, service API will start returning tier for it.

Check https://docs.microsoft.com/en-us/azure/virtual-machines/disks-change-performance for more details.

rahul602 avatar Aug 18 '21 16:08 rahul602

@ChrisPetr0 - did the above answer your question?

oriwolman avatar Oct 14 '21 20:10 oriwolman

@oriwolman - yes it did, I gave it a thumbs up previously. I didn't open this issue, but I'm good with the information provided. Thanks

ChrisPetr0 avatar Oct 14 '21 21:10 ChrisPetr0

Closing issue

oriwolman avatar Oct 14 '21 21:10 oriwolman