The Azure Cosmos DB Emulator provides a local environment that emulates the Azure Cosmos DB service for development purposes. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Azure Cosmos DB Emulator from the command line using the MSI installer.
How to Install Azure Cosmos DB Emulator Silently
Azure Cosmos DB Emulator Silent Install (MSI)
- Download the Azure Cosmos DB Emulator (MSI) Installer
- Download the file to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command:
- Msiexec.exe /i azure-cosmosdb-emulator-x.x.x.msi /qn
- Press Enter
After a minute or so you should see the Azure Cosmos DB Emulator shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | Azure Cosmos DB Emulator |
Vendor: | Microsoft Corporation |
Version: | 2.11.5 |
Architecture: | x64 |
Installer Type: | MSI |
Silent Install Switch: | Msiexec.exe /i azure-cosmosdb-emulator-2.11.5-ec6329bd.msi /qn |
Silent Uninstall Switch: | Msiexec.exe /x {E1914736-85F8-468B-BCD3-E5CC5ADA4C9E} /qn |
Repair Command: |
|
Download Link: | https://aka.ms/cosmosdb-emulator |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create an Installation Log File
The Azure Cosmos DB Emulator installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.
Azure Cosmos DB Emulator (MSI) Silent Install with Logging
Msiexec.exe /i azure-cosmosdb-emulator-x.x.x.msi /qn /L*v "%WINDIR%\Temp\AzureDBEmulator-Install.log" |
How to Uninstall Azure Cosmos DB Emulator Silently
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter the following command:
Azure Cosmos DB Emulator 2.11.5 (MSI) Silent Uninstall
Msiexec.exe /x {E1914736-85F8-468B-BCD3-E5CC5ADA4C9E} /qn |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.