Greeting and salutations all. Here is my first foray into writing a technical blog.
Cosmos DB is fun. Adaptive Cards are fun. I like fun things, so I thought it would be fun to get my bot to display items from a Cosmos DB in an Adaptive Card.
In your Node.JS project, install the following npm packages:
npm install @azure/cosmos
npm install adaptive-expressions
npm install adaptivecards-templating
Set up the connection to the Cosmos DB Client as above. In my example, I’ve stored the keys, endpoint and database information in the ENV file.
Father, Gamer, Man Utd Supporter, Bots, Tech and all things Azure and Microsoft 365. SuperDry shill. Also likes Patty & Bun and BrewDog.