A Powershell library for CosmosDB

I’ve been writing a library which allows you to use powershell commands to interogate CosmosDB. I’m nowhere near finished, but I’m interested in opinions from people who can use it, so here it is.

https://github.com/bytejunkie/pscosmosdb

It works with the emulator for CosmosDB and you can find the info on working with that on the MS site.

https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator

Once you’ve got that setup, here’s how to get started.

You’ve setup the connection, now query the databases.

I’m in the middle of writing a function to seed the emulator with a set of databases, collections and documents. I’ll post back when it’s done.

Please feel free to create issues or ask questions on Github.

Leave a Reply

Your email address will not be published. Required fields are marked *