Get started with Azure and .NET

This document provides an overview of key concepts and services .NET developers should be familar with to get started developing apps using Azure services.

Key Concepts

Azure account: Your Azure account is the credential you use to sign into Azure services, such as the Azure Portal or Cloud Shell. If you don't have an Azure account, you can create one for free.

Azure subscription: A subscription is the billing plan within which Azure resources are created. Subscriptions can be individual subscriptions or enterprise subscriptions managed by your company. Your Azure account can be associated with multiple subscriptions. In this case, make sure you're selecting the correct subscription when creating resources. For more information, see Understanding accounts, subscriptions and billing.

Tip

If you have a Visual Studio subscription, you have monthly Azure credits waiting to be activated.

Resource group: Resource groups are a way to organize your Azure resources into groups for management. Resources created in Azure will be stored in a resource group, similar to saving a file in a folder on a computer.

Hosting: To run code in Azure, it needs to be hosted in a service that supports executing user-provided code.

Managed services: Azure provides some services where you provide data or information to Azure, and Azure's implementation takes the appropriate action. One example is Azure Blob Storage, where you provide files and Azure handles reading, writing, and persisting them.

Choosing a hosting option

Hosting in Azure can be divided into three categories.

  • Infrastructure-as-a-Service (IaaS): With IaaS, you provision the virtual machines you need along with associated network and storage components. You then deploy whatever software and applications you want onto those VMs. This model is the closest to a traditional on-premises environment except that Microsoft manages the infrastructure. You still manage the individual VMs, including the operating system, custom software, and security updates.

  • Platform-as-a-Service (PaaS): PaaS provides a managed hosting environment where you deploy your application without needing to manage VMs or networking resources. For example, instead of creating individual VMs, you specify an instance count, and the service will provision, configure, and manage the necessary resources. Azure App Service is an example of a PaaS service.

  • Functions-as-a-Service (FaaS): Commonly referred to as serverless computing, FaaS goes even further than PaaS in abstracting the concerns of the hosting environment. Instead of creating compute instances and then deploying code to those instances, you deploy your code and the service automatically runs it. You don't need to administer the compute resources. The platform seamlessly scales your code up or down to whatever level necessary to handle the traffic, and you pay only when your code is running. Azure Functions is a FaaS service.

Generally, the more your application favors FaaS and PaaS models, the more benefits you'll see from running in the cloud. Below is a summary of three common hosting choices in Azure and when to choose them.

Tip

For a more complete list of Azure services, see Overview of Azure compute options. For more information on choosing a service, see Decision tree for Azure compute services.

Choosing a data storage service

Azure offers several services for storing your data depending on your needs. The most common data services for .NET developers are:

Tip

For more information, see Choose the right data store.

Diagnosing problems in the Cloud

Once you deploy your application to Azure, you may run into cases where it worked in development but doesn't in Azure. Below are two good places to start when diagnosing issues:

  • Remote debug from Visual Studio: Most Azure compute services (including the services discussed in this document) support remote debugging with Visual Studio and acquiring logs. To explore Visual Studio's capabilities with your application, open the Cloud Explorer tool window by typing 'Cloud Explorer' into Visual Studio's quick launch toolbar (in the upper-right corner), and then locate your application in the tree. For details, see Troubleshoot a web app in Azure App Service using Visual Studio.

  • Application Insights: Application Insights is a complete application performance monitoring (APM) solution that captures diagnostic data, telemetry, and performance data from applications automatically. To get started collecting diagnostic data for your app, see Start monitoring your ASP.NET Web Application.

Next steps