DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Coding
  3. Frameworks
  4. Developing and Deploying ASP.NET Core and Entity Framework Core for Azure

Developing and Deploying ASP.NET Core and Entity Framework Core for Azure

Mohamed Radwan user avatar by
Mohamed Radwan
·
Dec. 11, 19 · Tutorial
Like (2)
Save
Tweet
Share
15.74K Views

Join the DZone community and get the full member experience.

Join For Free

Image title

This post will explain an end-to-end ASP.NET Core development and deployment to Azure. Below, we've provided some introductory steps to get started. A video tutorial at the end of the article will then walk you through the rest of the process. 

Clone the Sample Application

In the terminal window, cd to a working directory. Run the following commands to clone the sample app:

git clone https://github.com/azure-samples/dotnetcore-sqldb-tutorial

cd dotnetcore-sqldb-tutorial


The sample project contains a basic CRUD (create-read-update-delete) app using Entity Framework Core.

Run the Application

Run the following commands to install the required packages, run database migrations, and start the application.

dotnet restore

dotnet ef database update

dotnet run


Navigate to http://localhost:5000 in a browser. Select the Create New link, and create a couple to-do items.

Azure Cloud Shell

To run the code in Azure Cloud Shell:

Start the Cloud Shell. Select the Copy button on a code block to copy the code. Paste the code into the Cloud Shell session. Select Enter to run the code.

Create a Production SQL Database

In this step, you will create a SQL Database in Azure. When your app is deployed to Azure, it uses this cloud database.

For SQL Database, this tutorial uses an Azure SQL Database.

Create a Resource Group

See the rest of the steps in the video:


Entity Framework ASP.NET azure ASP.NET Core Database Framework

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Strategies for Kubernetes Cluster Administrators: Understanding Pod Scheduling
  • 5 Steps for Getting Started in Deep Learning
  • OpenVPN With Radius and Multi-Factor Authentication
  • What Are the Different Types of API Testing?

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: