Giter VIP home page Giter VIP logo

cosmos-dotnet-getting-started's Introduction

languages products page_type description
csharp
azure
azure-cosmos-db
dotnet
sample
This sample shows you how to use the Azure Cosmos DB service to store and access data from a .NET console application.

Developing a .NET console app using Azure Cosmos DB

This sample shows you how to use the Azure Cosmos DB service to store and access data from a .NET console application.

For a complete end-to-end walkthrough of creating this application, please refer to the full tutorial on the Azure Cosmos DB documentation page.

Running this sample

  1. Before you can run this sample, you must have the following prerequisites:

    • An active Azure Cosmos DB account - If you don't have an account, refer to the Create a database account article.
    • Visual Studio 2015 (or higher).
  2. Clone this repository using Git for Windows (http://www.git-scm.com/), or download the zip file.

  3. From Visual Studio, open the GetStarted.sln file from the root directory.

  4. In Visual Studio Build menu, select Build Solution (or Press F6).

  5. Retrieve the URI and PRIMARY KEY (or SECONDARY KEY) values from the Keys blade of your Azure Cosmos DB account in the Azure portal. For more information on obtaining endpoint & keys for your Azure Cosmos DB account refer to View, copy, and regenerate access keys and passwords

If you don't have an account, see Create a database account to set one up.

  1. In the App.config file, located in the src directory, find EndPointUri and PrimaryKey and replace the placeholder values with the values obtained for your account.

  2. You can now run and debug the application locally by pressing F5 in Visual Studio.

About the code

The code included in this sample is intended to get you quickly started with a .NET console application that connects to Azure Cosmos DB.

More information

cosmos-dotnet-getting-started's People

Contributors

kirankumarkolli avatar deborahc avatar microsoftopensource avatar supernova-eng avatar ealsur avatar tosokr avatar msftgits avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.