az disk list doesn't list a disk that definitely exists
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
## Describe the bug
`az disk list` doesn't list a disk that definitely exists. I can confirm that by using `az disk show`. I can see the disk also in a resource group in Azure Portal.
## To Reproduce:
```bash
az disk show --resource-group sharing-research --name test_disk1_8f9bb5540a564309ab5749c8fce60c96
az disk list --resource-group sharing-research
```
## Logs:
```bash
$ az disk show --resource-group sharing-research --name test_disk1_8f9bb5540a564309ab5749c8fce60c96
{
"burstingEnabled": null,
"creationData": {
"createOption": "Copy",
"galleryImageReference": null,
"imageReference": null,
"logicalSectorSize": null,
"sourceResourceId": "/subscriptions/8d026bb1-2a65-454d-a88f-c896db94c4f8/resourceGroups/sharing-research/providers/Microsoft.Compute/snapshots/test0_0_dqsundlpiwo",
"sourceUniqueId": "920a5f2e-55c5-4cbf-9fd1-55bf869542e4",
"sourceUri": null,
"storageAccountId": null,
"uploadSizeBytes": null
},
"diskAccessId": null,
"diskIopsReadOnly": null,
"diskIopsReadWrite": 500,
"diskMBpsReadOnly": null,
"diskMBpsReadWrite": 60,
"diskSizeBytes": 2147483648,
"diskSizeGb": 2,
"diskState": "Unattached",
"encryption": {
"diskEncryptionSetId": null,
"type": "EncryptionAtRestWithPlatformKey"
},
"encryptionSettingsCollection": null,
"extendedLocation": null,
"hyperVGeneration": "V1",
"id": "/subscriptions/8d026bb1-2a65-454d-a88f-c896db94c4f8/resourceGroups/sharing-research/providers/Microsoft.Compute/disks/test_disk1_8f9bb5540a564309ab5749c8fce60c96",
"location": "westeurope",
"managedBy": null,
"managedByExtended": null,
"maxShares": null,
"name": "test_disk1_8f9bb5540a564309ab5749c8fce60c96",
"networkAccessPolicy": "AllowAll",
"osType": "Linux",
"provisioningState": "Succeeded",
"purchasePlan": null,
"resourceGroup": "sharing-research",
"shareInfo": null,
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"tags": {},
"tier": null,
"timeCreated": "2021-02-26T06:17:56.867885+00:00",
"type": "Microsoft.Compute/disks",
"uniqueId": "8f9bb554-0a56-4309-ab57-49c8fce60c96",
"zones": null
}
$ az disk list --resource-group sharing-research
[]
```
Logs with `--debug`: https://gist.github.com/ondrejbudai/ba27559a40a07290b17202f9680f0709
## Environment Summary
This is inside Ubuntu container on Fedora:
```
Linux-5.10.16-200.fc33.x86_64-x86_64-with-debian-bullseye-sid
Python 3.6.10
Installer: DEB
azure-cli 2.19.1
```
This is on Fedora:
```
Linux-5.10.16-200.fc33.x86_64-x86_64-with-glibc2.32
Python 3.9.1
Installer: RPM
azure-cli 2.19.1
```
Both environments have the same issue.
Contributor guide
Assessment
This issue has not been assessed yet.