Skip to content

Latest commit

 

History

History
66 lines (38 loc) · 2.23 KB

File metadata and controls

66 lines (38 loc) · 2.23 KB

Part 1: Start with the data

In the first part we will create a new Azure SQL database, use Entity Framework Core migrations to create tables and implement the code to ingest our test PDF file.

Create the database

This section walks through creating the database in Azure.

  1. Login to the Azure portal
  2. Type Azure SQL in the search box in the top center

Search for Azure SQL

  1. Select the Azure SQL item
  2. Click the Create button in the upper left corner

Create Button

This will show you a few deployment options.

Create Button

  1. In the left item with SQL databases -> Single database, click the Create button

We can now create the Azure SQL Database and Server

  1. Select the subscription you want to use and create a new resource group named rg-azuresql-lab

Create Resouce Group

  1. Give the database a unique name (I used db-sqlazure-lab for mine)
  2. Next click the Create new link to create a new Azure SQL database server
  3. On the Create SQL Database Server page, fill in the following:
  • Server name
  • Location
  • Authentication method -> choose the Use SQL authentication
  • Server admin Login
  • Password and confirm password

Create Server

  1. Click OK

  2. Back on the Create SQL Database page, verify the Workload environment is set to Development

If you want you can use the Configure database link to verify the sizes and see an estimated cost.

  1. Click the Next: Networking button at the bottom of the page
  2. On the Connectivity method, select Public endpoint, then turn the switch on for Add current client IP address.

This will allow you to access the server when we verify the schema and data later.

Networking

  1. Next click Review + Create button

I'm using the East US 2 datacenter and it shows I'll be chared <$5.00 for a month of usage

Estimate

  1. Click the Create button to create the database and server.

This will take a few minutes, so let's move on to the code.