Skip to content

Commit 9b2fddc

Browse files
committed
2 parents 842a418 + 97ee1f9 commit 9b2fddc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ languages:
44
- tsql
55
- sql
66
- aspx-csharp
7+
- json
78
products:
89
- azure
9-
- donet
10+
- dotnet
1011
- aspnet
1112
- dotnet-core
1213
- aspnet-core
@@ -19,6 +20,8 @@ urlFragment: "azure-sql-db-dotnet-rest-api"
1920

2021
# Creating a REST API with .NET Core and Azure SQL
2122

23+
![License](https://img.shields.io/badge/license-MIT-green.svg)
24+
2225
<!--
2326
Guidelines on README format: https://review.docs.microsoft.com/help/onboard/admin/samples/concepts/readme-template?branch=master
2427
@@ -49,15 +52,15 @@ In order to run this sample, the WideWorldImporters database is needed. Install
4952

5053
## Add Database Objects
5154

52-
Once the sample database has been installed, you need to add some stored procedure that will called from Python. The SQL code is available here:
55+
Once the sample database has been installed, you need to add some stored procedures that will be called from .NET. The SQL code is available here:
5356

5457
`./SQL/WideWorldImportersUpdates.sql`
5558

5659
If you need any help in executing the SQL script, you can find a Quickstart here: [Quickstart: Use Azure Data Studio to connect and query Azure SQL database](https://docs.microsoft.com/en-us/sql/azure-data-studio/quickstart-sql-database)
5760

5861
## Run sample locally
5962

60-
Make sure you have [.NET Core 3.0](https://dotnet.microsoft.com/download) SDK installed on your machine. Clone this repo in a directory on our computer and then configure the connection string in `appsettings.json`.
63+
Make sure you have [.NET Core 3.0](https://dotnet.microsoft.com/download) SDK installed on your machine. Clone this repo in a directory on your computer and then configure the connection string in `appsettings.json`.
6164

6265
If you don't want to save the connection string in the `appsettings.json` file for security reasons, you can just set it using an environment variable:
6366

@@ -67,7 +70,7 @@ Linux:
6770
export ConnectionStrings__DefaultConnection="<your-connection-string>"
6871
```
6972

70-
Windows:
73+
Windows (Powershell):
7174

7275
```powershell
7376
$Env:ConnectionStrings__DefaultConnection="<your-connection-string>"
@@ -128,7 +131,7 @@ Now that your REST API solution is ready, it's time to deploy it on Azure so tha
128131

129132
- [Create an ASP.NET Core app in App Service on Linux](https://docs.microsoft.com/en-us/azure/app-service/containers/quickstart-dotnetcore)
130133

131-
The only thing you have do in addition to what explained in the above articles is to add the connection string to the Azure Web App configuration. Using AZ CLI, for example:
134+
The only thing you have do in addition to what explained in the above article is to add the connection string to the Azure Web App configuration. Using AZ CLI, for example:
132135

133136
```bash
134137
appName="azure-sql-db-dotnet-rest-api"
@@ -143,7 +146,7 @@ az webapp config connection-string set \
143146

144147
Just make sure you correctly set `$appName` and `$resourceGroup` to match your environment and also that the variable `$ConnectionStrings__DefaultConnection` as also been set, as mentioned in section "Run sample locally".
145148

146-
An example of a full script that deploy the REST API is available here: `azure-deploy.sh`.
149+
An example of a full script that deploys the REST API is available here: `azure-deploy.sh`.
147150

148151
## Learn more
149152

0 commit comments

Comments
 (0)