Skip to content

Commit 7ea9dc7

Browse files
add tabs; add steps
1 parent 74df434 commit 7ea9dc7

File tree

4 files changed

+79
-7
lines changed

4 files changed

+79
-7
lines changed

articles/static-web-apps/database-azure-sql.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: craigshoemaker
55
ms.author: cshoe
66
ms.service: static-web-apps
77
ms.topic: tutorial
8-
ms.date: 03/07/2023
8+
ms.date: 03/15/2023
99
zone_pivot_groups: static-web-apps-api-protocols
1010
---
1111

@@ -106,16 +106,36 @@ The rest of this tutorial focuses on editing your static web app's source code t
106106
107107
1. Switch to the `main` branch.
108108
109+
# [Bash](#tab/bash)
110+
109111
```bash
110112
git checkout main
111113
```
112114
115+
# [PowerShell](#tab/powershell)
116+
117+
```powershell
118+
git checkout main
119+
```
120+
121+
---
122+
113123
1. Synchronize your local version with what's on GitHub by using `git pull`.
114124

125+
# [Bash](#tab/bash)
126+
115127
```bash
116128
git pull origin main
117129
```
118130

131+
# [PowerShell](#tab/powershell)
132+
133+
```powershell
134+
git pull origin main
135+
```
136+
137+
---
138+
119139
### Create the database configuration file
120140

121141
Next, create the configuration file that your static web app uses to interface with the database.

articles/static-web-apps/database-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: craigshoemaker
55
ms.author: cshoe
66
ms.service: static-web-apps
77
ms.topic: how-to
8-
ms.date: 03/07/2023
8+
ms.date: 03/15/2023
99
---
1010

1111
# Database connection configuration in Azure Static Web Apps (preview)

articles/static-web-apps/database-mysql.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: craigshoemaker
55
ms.author: cshoe
66
ms.service: static-web-apps
77
ms.topic: tutorial
8-
ms.date: 03/07/2023
8+
ms.date: 03/15/2023
99
zone_pivot_groups: static-web-apps-api-protocols
1010
---
1111

@@ -28,7 +28,7 @@ In this tutorial, you learn to:
2828
2929
## Prerequisites
3030

31-
To complete this tutorial, you need to have an existing Azure Database for MySQL database and static web app. Additionally, you need to install Azure Data Studio.
31+
To complete this tutorial, you need to have an existing Azure Database for MySQL database and static web app. Additionally, you need to install Azure Data Studio.
3232

3333
| Resource | Description |
3434
|---|---|
@@ -62,7 +62,13 @@ To use your Azure database for local development, you need to retrieve the conne
6262

6363
1. In the *Connect from your app* section, select the ADO.NET connection string and set it aside in a text editor.
6464

65-
Make sure to replace the `{your_password}` placeholder in the connection string with your password, and the `{your_database}` placeholder with the database name `MyTestPersonDatabase`. You create the `MyTestPersonDatabase` in the coming steps. Delete the *SslMode* and the *SslCa* sections of the connection string, since these require extra steps and are intended for production purposes.
65+
1. Replace the `{your_password}` placeholder in the connection string with your password.
66+
67+
1. Replace the `{your_database}` placeholder with the database name `MyTestPersonDatabase`.
68+
69+
You create the `MyTestPersonDatabase` in the coming steps.
70+
71+
1. Delete the *SslMode* and the *SslCa* sections of the connection string as these require extra steps and are intended for production purposes.
6672

6773
## Create sample data
6874

@@ -105,16 +111,36 @@ The rest this tutorial focuses on editing your static web app's source code to m
105111

106112
1. Switch to the `main` branch.
107113

114+
# [Bash](#tab/bash)
115+
108116
```bash
109117
git checkout main
110118
```
111119

120+
# [PowerShell](#tab/powershell)
121+
122+
```powershell
123+
git checkout main
124+
```
125+
126+
---
127+
112128
1. Synchronize your local version with what's on GitHub by using `git pull`.
113129
130+
# [Bash](#tab/bash)
131+
114132
```bash
115133
git pull origin main
116134
```
117135
136+
# [PowerShell](#tab/powershell)
137+
138+
```powershell
139+
git pull origin main
140+
```
141+
142+
---
143+
118144
### Create the database configuration file
119145
120146
Next, create the configuration file that your static web app uses to interface with the database.

articles/static-web-apps/database-postgresql.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: craigshoemaker
55
ms.author: cshoe
66
ms.service: static-web-apps
77
ms.topic: tutorial
8-
ms.date: 03/03/2023
8+
ms.date: 03/15/2023
99
zone_pivot_groups: static-web-apps-api-protocols
1010
---
1111

@@ -62,7 +62,13 @@ To use your Azure database for local development, you need to retrieve the conne
6262

6363
1. From the *ADO.NET* box, copy the connection string and set it aside in a text editor.
6464

65-
Make sure to replace the `{your_password}` placeholder in the connection string with your password, and the `{your_database}` placeholder with the database name `MyTestPersonDatabase`, which is the name of the database you create in the following steps. Append `Trust Server Certificate=True;` to the connection string to use this connection string for local development.
65+
1. Replace the `{your_password}` placeholder in the connection string with your password.
66+
67+
1. Replace the `{your_database}` placeholder with the database name `MyTestPersonDatabase`.
68+
69+
You'll create the `MyTestPersonDatabase` in the coming steps.
70+
71+
1. Append `Trust Server Certificate=True;` to the connection string to use this connection string for local development.
6672

6773
## Create sample data
6874

@@ -106,16 +112,36 @@ The rest this tutorial focuses on editing your static web app's source code to m
106112
107113
1. Switch to the `main` branch.
108114
115+
# [Bash](#tab/bash)
116+
109117
```bash
110118
git checkout main
111119
```
112120
121+
# [PowerShell](#tab/powershell)
122+
123+
```powershell
124+
git checkout main
125+
```
126+
127+
---
128+
113129
1. Synchronize your local version with what's on GitHub by using `git pull`.
114130

131+
# [Bash](#tab/bash)
132+
115133
```bash
116134
git pull origin main
117135
```
118136

137+
# [PowerShell](#tab/powershell)
138+
139+
```powershell
140+
git pull origin main
141+
```
142+
143+
---
144+
119145
### Create the database configuration file
120146

121147
Next, create the configuration file that your static web app uses to interface with the database.

0 commit comments

Comments
 (0)