Skip to content

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

@plzm

Description

@plzm

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions