ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in...

18
ASP.NET Core Publish to Microsoft Azure Hans-Petter Halvorsen https://www.halvorsen.blog

Transcript of ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in...

Page 1: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

ASP.NET CorePublish to Microsoft Azure

Hans-Petter Halvorsen

https://www.halvorsen.blog

Page 2: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Video Contents

In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure

• Test the Web Application locally

• Create SQL Database in Azure and connect to the database

• Finally, Deply the Web Application to Azure

Page 3: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Microsoft Azure

• Microsoft Azure is a Cloud Service from Microsoft

• You could say it is “Windows running in the Cloud”

• Azure Portal:https://portal.azure.com

Page 4: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

BookApp

Page 5: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

ASP.NET Core Web Application

Web Server

Operating System

Database

Development Test/Production

ASP.NET Core |Web Server IIS Deployment

Page 6: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Introduction• Introduction to IIS deployment

• If you have never used ASP.NET Core, I suggest the following Videos:

– ASP.NET Core - Hello World https://youtu.be/lcQsWYgQXK4

– ASP.NET Core – Introductionhttps://youtu.be/zkOtiBcwo8s

6

Page 7: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

ScenarioDevelopment Environment Test/Production Environment

ASP.NET Core Web Application

Visual Studio

SQL Server Express

Local PC with Windows 10Server (either local or in the Cloud)

SQL Server

Web Server

Visual Studio

ASP.NET Core Web Application

Page 8: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Web Pages and Web Applications

Azure Client

PC with Windows 10, macOS or LinuxSmartphone with Android or iOS, etc.

Web Browser, e.g., Edge, Chrome, Safari, etc.

Request (URL)

Response(HTML)Data-

base

Internetor Local

Network (LAN)

Page 9: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

ASP.NET Core Web Application in Visual Studio

Hans-Petter Halvorsen

https://www.halvorsen.blog

Page 10: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

BookApp

Page 11: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

BookApp

• ASP.NET Core - Database CRUD Application

• YouTube: https://youtu.be/k5TCZDwTYcE

• Blog: https://halvorsen.blog/

• ASP.NET Core Resources: https://halvorsen.blog/documents/programming/web/asp_net.php

11

Page 12: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

SQL Server

Hans-Petter Halvorsen

https://www.halvorsen.blog

Page 13: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Create Database

13

Use SQL Server Management Studio in order to create the Database

Page 14: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Create Tables, Views, Stored Procedures, etc.

14

Page 15: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

appSettings.json

15

Page 16: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Deploy to Azure

Hans-Petter Halvorsen

https://www.halvorsen.blog

Page 17: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Azure

• Azure Portal:https://portal.azure.com

• Create SQL Database in Microsoft Azure

• Create App Service (the service that hosts the Web Site, i.e., the Web Server) or in Visual Studio when deploying the Application to Azure

17

Page 18: ASP.NET Core Core...In this Video we will deploy or install an ASP.NET Core Web Application in Microsoft Azure •Test the Web Application locally •Create SQL Database in Azure and

Hans-Petter Halvorsen

University of South-Eastern Norway

www.usn.no

E-mail: [email protected]

Web: https://www.halvorsen.blog