tvjames / azure-dotnet-core-hosted

Sample aspnet core project hosted in azure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hosting on Azure Web Services

Build Status

  • Install the azure cli on macOS azure-cli

    • brew update && brew install azure-cli
    • az login
  • Create an asp.net core mvc application

    • mkdir -p src/ExampleMvcSite
    • cd src/ExampleMvcSite
    • dotnet new webapp
    • cd ..
    • dotnet new sln --name AzureHosted
    • dotnet sln AzureHosted.sln add ExampleMvcSite/
    • dotnet build
  • Configure Azure hosting using the free tier getting-started

    • Find free tier regions: az appservice list-locations --sku F1 --linux-workers-enabled or az appservice list-locations --sku F1
    • Resource Group: azure-dotnet-core-hosted-example
    • App Service Plan: azure-dotnet-core-hosted-example-app-plan
    • az group create --name azure-dotnet-core-hosted-example --location "Australia East"
    • az appservice plan create --name azure-dotnet-core-hosted-example-app-plan --resource-group azure-dotnet-core-hosted-example --sku F1
    • az webapp create --resource-group azure-dotnet-core-hosted-example --plan azure-dotnet-core-hosted-example-app-plan --name azure-dotnet-core-hosted-example
  • Azure DevOps (CI/CD)

    • Configure Azure Pipeline

About

Sample aspnet core project hosted in azure

License:MIT License


Languages

Language:HTML 58.6%Language:C# 30.7%Language:CSS 8.9%Language:JavaScript 1.8%