An Azure NoSQL database service for app development.
Hi Andriy Svyryd,
The startup failure in Microsoft.Azure.Cosmos.StartupEntryPoint.exe is occurring during certificate and cryptographic initialization. Specifically, the emulator fails while accessing the private key of the self‑signed TLS certificate and setting the required ACLs. This results in the System.Security.Cryptography.CryptographicException you’re seeing and prevents the emulator from starting.
Based on the symptoms and troubleshooting already performed, this is a known class of issue with the Windows MSI version of the Azure Cosmos DB Emulator on Windows Server 2016. The emulator relies on legacy Windows crypto providers and certificate handling that can fail on older or hardened server OS configurations. In these cases, reinstalling, resetting data, regenerating certificates, or repairing counters does not resolve the issue.
The supported and reliable options are:
- Run the Cosmos DB Emulator on a newer OS
- Windows Server 2019 or 2022
- Windows 10 or 11
- Windows Server 2019 or 2022
- Use the Cosmos DB Emulator via Docker
- This avoids Windows certificate and crypto dependencies entirely
- Recommended for server‑based or CI environments
- Documentation: https://learn.microsoft.com/en-us/azure/cosmos-db/emulator-linux
If upgrading the OS or using Docker is not feasible, the alternative is to use a small Azure-hosted Cosmos DB account (or Free Tier) for development and testing.
Hope this helps, Please let us know if you have any questions and concerns.