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

Fix error when running Get-AzCosmosDBSqlDatabase -Detailed on a database without shared throughput/container dedicated throughput

Open plzm opened this issue 6 years ago • 3 comments

Reference: https://github.com/Azure/azure-powershell/blob/master/src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlDatabase.cs#L66

When Get-AzCosmosDBSqlDatabase is run with -Detailed against a database without shared throughput - i.e. containers have dedicated throughput - this cmdlet emits an error "Entity with the specified id does not exist in the system. ActivityId: [GUID], Microsoft.Azure.Documents.Common/2.10.0

Recommend adding null checks to the above-referenced code area for throughputSettingsGetResults to prevent this error.

plzm avatar Mar 10 '20 09:03 plzm

Wrongly linked with PR

MehaKaushik avatar Apr 08 '20 07:04 MehaKaushik

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar, @srinathnarayanan, @southpolesteve, @shurd, @ealsur, @j82w, @anfeldma-ms.

ghost avatar Apr 22 '20 09:04 ghost

-Detailed parameter is going to be deprecated in future releases, following which throughput would be available in the resource's respective GetResults object.

MehaKaushik avatar May 06 '20 23:05 MehaKaushik