CosmosDb unable to populate database and container using Bash

Rod Natal 20 Reputation points
2024-08-15T21:42:18.71+00:00

I'm literally just trying to follow this tutorial from Microsoft: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/tutorial-dotnet-web-app

I can't get to step 11, because instead of populating my database, it gives me a parsing error.

I'm kinda stumped. And baffled that I couldn't get far enough. The URI and primary key is correct. Also correct standard.

Account Key not parsed

I have the free tier account. (But why would it bug out?)

I installed this: dotnet tool install --global cosmicworks --version 2.*

But after install, it does say issues with workloads I don't know if that matters.

Things I've tried:

-Changing RU/S to manual and auto scale. Lowering and adjusting all RU's.

-Tried one command at a time, but it goes to bad request, "would've pushed RU's to 4000". But I got this same error for trying to insert number-of-employees 2 \ So putting two records in the db would've pushed to 4000 RU's? Prolly not.

-Making sure all my setup was identical to what they listed.

Not sure what's happening here. Please help so I can actually advance.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,657 questions
{count} votes

Accepted answer
  1. Sajeetharan 2,261 Reputation points Microsoft Employee
    2024-08-21T05:28:11.27+00:00

    Hi you need to enclose the connection string within quotes ""

    User's image


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.