Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting started with ASP.NET Core 2.0 & Azure App Service

Getting started with ASP.NET Core 2.0 & Azure App Service

A live demonstration showcasing a deployment pipeline that takes an open-source ASP.NET Core 2.0 application (running on .NET Core 2) from Dev to Prod utilising Travis CI and Azure App Services.

B3d9b66c0d46431017776efe58baa683?s=128

Josh Michielsen

June 05, 2018
Tweet

Transcript

  1. ASP.NET CORE 2.0 ASP.NET CORE 2.0 CI/CD WITH GITHUB, TRAVIS

    CI, & AZURE WEB APPS CI/CD WITH GITHUB, TRAVIS CI, & AZURE WEB APPS JOSH MICHIELSEN - DEVOPS ENGINEER @ BANKWEST JOSH MICHIELSEN - DEVOPS ENGINEER @ BANKWEST | | | | TWITTER.COM/JMICKEY_ TWITTER.COM/JMICKEY_ LINKEDIN.COM/IN/JMICHIELSEN LINKEDIN.COM/IN/JMICHIELSEN GITHUB.COM/JAYMICKEY GITHUB.COM/JAYMICKEY
  2. .NET CORE 2.0 .NET CORE 2.0 Released Aug 15th 2017

    Implements .NET Standard 2.0 Open Source: Multi-platform https://github.com/dotnet/core
  3. ASP.NET CORE 2.0 ASP.NET CORE 2.0 Released Aug 15th 2017

    Implements .NET Standard 2.0 Open Source: Can target .NET Core 2 or .NET Framework 4.6.1+ https://github.com/aspnet/home
  4. CONTINUOUS INTEGRATION (CI) CONTINUOUS INTEGRATION (CI)

  5. - via ThoughtWorks: Continuous Integration (CI) is a development practice

    that requires developers to integrate code into a shared repository several times a day. Each check-in is then verified by an automated build, allowing teams to detect problems early. By integrating regularly, you can detect errors quickly, and locate them more easily. https://www.thoughtworks.com/continuous-integration
  6. GitHub specific CI service Free for public repos ( )

    Paid for private repos ( ) Configuration-as-Code: .travis.yml file https://travis-ci.org https://travis-ci.com
  7. .travis.yml file language: csharp solution: ./path/to/.sln mono: none dotnet: 2.0.0

    dist: trusty script: - dotnet restore $TRAVIS_SOLUTION - dotnet build $TRAVIS_SOLUTION - dotnet test ./path/to/.sln branches: only: - master deploy: provider: azure_web_apps username: "$AZURE_WA_USERNAME" password: "$AZURE WA PASSWORD"
  8. AZURE APP SERVICE AZURE APP SERVICE PaaS "Fully Managed Platform"

  9. AZURE WEB APP AZURE WEB APP Cost of entry: free

    (F1) Cost increases as you scale SQLAAS SQLAAS Managed SQL Server and Database Easily scale - Database Transaction Units ("DTU") Cost of entry: free (5 DTU)
  10. DEMO TIME DEMO TIME

  11. CODE: CODE: https://github.com/jaymickey/dotnet-on-azure-talk

  12. BANKWEST IS HIRING! BANKWEST IS HIRING! Looking for Software Engineers

    with experience in: SDLC CI/CD Cloud (AWS/Azure) API development Undergoing org-wide digital transformation Building a homogenous public & private cloud software delivery platform Speak to me afterwards, or contact me: | | twitter.com/jmickey_ linkedin.com/in/jmichielsen github.com/jaymickey
  13. QUESTIONS? QUESTIONS?