I am dumping some collections and trying to restore them to cosmosDb
Dumping method
mongodump --host localhost:5960 --db test --collection ‘collectionName’ --gzip --out /mongoBackupFolder/
Restoring method
mongorestore --host blahblah.azure.com --port 9999 -u user -p password --db dummyData --collection dummyData /mongoBackupDB/dummyData/dummyData.bson.gz --gzip --ssl --sslAllowInvalidCertificates
In some collections I have milions of data and sometimes during insertion time i am getting
Error 13 : Insert Error
Error 13 is 13 Unauthorized The request lacks the permissions to complete. Ensure you are using the correct keys.
The error in azure portal
The portal is having issues getting an authentication token. The experience rendered may be degraded.