Closed lszomoru closed 4 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Wmengmsft, @shurd.
Cosmos db team, please check this one. I suspect it is due to object is null on this line https://github.com/Azure/azure-powershell/blob/40665268619749da97921a35d6c2e113666b56c9/src/CosmosDB/CosmosDB/CosmosDBAccount/GetAzCosmosDBAccount.cs#L64
This would be resolved with the updated SDK, currently our SDK is not throwing 404 if the resource is not found. That is fixed in Swagger, the next we update the SDK, it would be resolved.
I will take care of this, ETA end of August.
This will be resolved once https://github.com/Azure/azure-powershell/pull/12814 is merged.
Description
Az.CosmosDB version
0.1.6
returns an empty object (all properties are empty) instead of $null if the resource does not exists.Steps to reproduce
0.1.4 returns True 0.1.6 returns False
Environment data
Module versions