![cosmos db emulator mac cosmos db emulator mac](https://docs.microsoft.com/en-us/azure/cosmos-db/media/storage-explorer/connect-to-db-by-connection-string.png)
When you don't export the private key, you can't export as a. Maybe incomplete would be more accurate? It does not have you export the private key. There are instructions for exporting the certificate required to connect and importing it on your Mac, but they aren't quite right. If you need to change your networking, it seems you will need to restart the emulator before you export the certificate.
![cosmos db emulator mac cosmos db emulator mac](https://i.stack.imgur.com/6lYLU.png)
That can be done from the Windows command line using "ipconfig". You will also need to get the IP of your Windows VM. This will create the certificate that is needed.īefore you export the certificate, make sure you have the networking set up between your host and VM. Make sure to follow the steps to enable access from the local network. However, unlike connecting to my Sql instance from my Windows VM, connecting to the Cosmos DB instance from my Mac is a bit more complicated. So, following the instructions for installation in the documentation is pretty straight forward. I already have a Windows VM that I use from time to time for other Windows only things (like SSMS). Looks like you either need a Windows machine on your network or a Windows VM. However, the Docker image for the emulator also only runs on Docker for Windows.
#Cosmos db emulator mac install#
The emulator does run in Docker, and I run Docker on my Mac to allow me to run Sql Server without the need for a Windows VM and a full blown install of Sql Server.
![cosmos db emulator mac cosmos db emulator mac](https://mohamedradwan.com/wp-content/uploads/2019/01/Image-5-Detailed-logs-of-the-Azure-Cosmos-Emulator-DB-container-1024x578.png)
That's great, except I primarily develop from a Macbook Pro. And why not? They have a free tier (although rather limited) as well as an emulator for local development. As we are hosted in Azure, it seemed like I should check out Cosmos DB. A recent project for my day job seemed like a good fit for a document database.