/north-carolina

Sample C# project that appends logs to a blob on Azure Storage

Primary LanguageC#MIT LicenseMIT

North Carolina Project

Prerequisites

  • Dotnet 8
  • Azure Subscription

Setup

Create a new project

dotnet new console

Add the following NuGet packages

dotnet add package Azure.Storage.Blobs

Create a new Azure Resource Group

az group create --name rg-north-carolina --location westus

Create a new Azure Storage Account

az storage account create --name northcarolinastorage --resource-group rg-north-carolina --location westus --sku Standard_LRS

Get the Azure Storage Account Connection String

az storage account show-connection-string --name northcarolinastorage --resource-group rg-north-carolina --query connectionString --output tsv

Run the project

dotnet run