Tutorials for using .NET with Azure databases

The following table links to in-depth tutorials for connecting to and working with data in Azure databases in your .NET applications.

For sample source code, see the list of Azure service samples.

SQL Database
Use .NET to connect and query data Use ADO.NET to connect to an Azure SQL database, and then use Transact-SQL statements to query, insert, update, and delete data in the database
Azure Database for PostgreSQL
Use .NET to connect and query data Use SQL statements to query, insert, update, and delete data in the database.
Azure Cosmos DB
Getting started with the Azure Cosmos DB SQL API Create a simple console application with the SQL API.
Create an ASP.NET web app with the Azure Cosmos DB SQL API Create a web application with the Azure Cosmos DB SQL API.
Redis Cache
How to use Azure Redis Cache Get started using Azure Redis Cache.
Create a Web App with Redis Cache Create and deploy an ASP.NET web application to a web app in Azure App Service using Visual Studio 2017.
ASP.NET Session State Provider Use Azure Redis Cache to maintain session state in ASP.NET.
ASP.NET Output Cache Provider Use Azure Redis Cache for ASP.NET output caching.