Reputation: 888
I am new to Azure Cosmos DB. The cosmos DB emulator which is running on port 8084 "https://localhost:8084/_explorer/index.html". When I tried to get Cosmos DB Context information through PowerShell, it says that Cosmos DB BaseUri port is 8081 "https://localhost:8081/". How to change the BaseUri port.
Upvotes: 2
Views: 2319
Reputation: 3
I was able to solve this by replacing the localhost values to a different port for EMULATOR_ENDPOINT in the: Cosmos DB files
Once that was done, Cosmos DB launched with the new port and I was able to write data to the new URI
Upvotes: 0
Reputation: 8763
You can change the port by starting the emulator from the command line.
Microsoft.Azure.Cosmos.Emulator.exe /Port=<port>
There's a whole range of command line options you can use. You can refer to all of these here.
Manage the emulator with command-line syntax
Upvotes: 2