Azure Cosmos DB Emulator: autostart it when you boot your PC (without Docker)
The Azure Cosmos DB Emulator is a great tool for local development and saves you from creating a DB using your subscription.
At the time I am writing, there is no internal option for having it starting automatically (assuming you are not running it on Docker).
If you use every day, it might be convenient for you to have it start automatically.
Keep reading if you want to discover how I did it.
A. Open the Task Scheduler
B. General Tab
- Click on “Create Task…”
- Name: Azure Cosmos DB Emulator Autostart
- Tick: “Run with highest privileges”
C. Triggers Tab
- Open the Trigger Tab
- Create a new Trigger
- Begin the task: “At log on”
- Optional: Settings -> Specific User
D. Action Tab
- Open the Action Tab
- Program/Script: “C:\Program Files\Azure Cosmos DB Emulator\Microsoft.Azure.Cosmos.Emulator.exe” (it has to be double-quoted)
- Add Arguments: “/noui”
- Optional: in the condition tab, power -> untick “start the task only if the computer is on AC power”
Summary
In this article we saw together a step to step procedure to autostart Azure Cosmos DB Emulator everytime you log on your PC.
If you found a better way of doing this, share it in the comments section below.