Azure CosmosDB Database Integration
Learn how to store user specific data of your Alexa Skills and Google Actions to Cosmos DB.
Tutorial: Deploy to Azure
Introduction
The Cosmos DB integration allows you to store user session data in the NoSQL service running on Azure using their MongoDB API. This integration is especially convenient if you're running your voice app on Azure Functions. You can find the official documentation about Cosmos DB here: docs.microsoft.com/cosmos-db.
Learn more about hosting your application on Azure Functions.
Configuration
Download the package like this:
Cosmos DB can be enabled in the src/app.js
file like this:
Inside your config.js
file you have to set your primary connection string
and your database name. You can also optionally set the collection name (default is UserData
):