liveBook · Manning

Azure

As explained in Building Web APIs with ASP.NET Core

Azure is Microsoft's public cloud computing platform providing hosted infrastructure, application, data, and monitoring services.

Azure is Microsoft's public cloud computing platform. It provides hosted infrastructure, application, data, and monitoring services through SaaS, PaaS, and IaaS models. Azure services can be managed through web APIs, language libraries, or the Azure Portal, a graphical administration interface. section 7.3.3

Azure supports both application observability and deployment. Application Insights, available through Azure Monitor, collects and analyzes logs and performance output, while Azure virtual machines provide configurable hosts for web applications. section 7.3.3 section 12.2

A practical Azure workflow can include:

  • Create or access an Azure account and open the Azure administration portal. section 12.2.1
  • Create a Windows 2022 Datacenter virtual machine and allow inbound traffic on the required TCP ports. section 12.2
  • Install the services and runtimes needed by an ASP.NET Core web API, including Internet Information Services, then publish and deploy the application. section 12.2
  • Create an Application Insights instance, retrieve its connection string, and connect it to the application's logging provider. section 7.3.3

Application logging configuration

Store the Application Insights connection string under Azure:ApplicationInsights:ConnectionString, install the Application Insights logging packages, and add the provider to the application's logging pipeline. Retain console and debug providers when local verification is useful, then confirm that application events appear as trace events in Application Insights. section 7.3.3

"Azure": {
    "ApplicationInsights": {
      "ConnectionString": "<INSERT_CONNECTION_STRING_HERE>"   #1
    }
  }

Shows the configuration path used to store the Application Insights connection string. section 7.3.3

builder.Logging
  .ClearProviders()
  .AddSimpleConsole()
  .AddDebug()
.AddApplicationInsights(              #1
telemetry => telemetry.ConnectionString =
builder
.Configuration["Azure:ApplicationInsights:ConnectionString"],
loggerOptions => { });

Shows the logging-provider registration that reads the Azure connection string and sends telemetry to Application Insights. section 7.3.3

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Defines Azure's service models and management interfaces, then demonstrates Application Insights and VM deployment without covering system hardening.
Examples
Uses Application Insights logging, a Windows 2022 Datacenter VM, Azure Portal configuration, and ASP.NET Core deployment.
What it assumes
Assumes an Azure account for portal access and introduces the platform before applying it to logging and deployment tasks.
What you can do after
Operate/configure Azure through the Portal to create a VM, deploy an ASP.NET Core API, and route logs to Application Insights.
How it connects
Connects Azure with Application Insights, Azure Monitor, virtual machines, ASP.NET Core, IIS, .NET, SaaS, PaaS, and IaaS.

Also explained in

Compare how 3 books explain Azure →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.