I know this topic is old, but I think I am having a similar problem. I have been searching from a solution all over Mongo community/forums
I am running a mongodump using --gzip followed by a mongorestore but could observe that the number of indexes existing in the cosmosdb are not equal to the indexes restored by the mongorestore command. The thing is there are no errors.
Could anybody please help with your prior experience.
Appreciate your help in advance.