The Cosmos DB team has released a library called Cosmos DB bulk executor. You can learn more about this at https://docs.microsoft.com/en-us/azure/cosmos-db/bulk-executor-overview.
In this recipe, I have hardcoded the name of the collection and the database to make it simple. You will have to configure them in the app settings file.