Skip to content

Commit 2a99f01

Browse files
authored
Merge pull request #123964 from Gutek/patch-1
MSSQL Images and Azure SQL Edge are using MSSQL_SA_PASSWORD env var not SA_PASSWORD
2 parents c150346 + 89dbc67 commit 2a99f01

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

articles/azure-functions/durable/quickstart-mssql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $collation = "Latin1_General_100_BIN2_UTF8"
8181
docker pull mcr.microsoft.com/mssql/server:$tag
8282
8383
# run the image and provide some basic setup parameters
84-
docker run --name mssql-server -e 'ACCEPT_EULA=Y' -e "SA_PASSWORD=$pw" -e "MSSQL_PID=$edition" -p ${port}:1433 -d mcr.microsoft.com/mssql/server:$tag
84+
docker run --name mssql-server -e 'ACCEPT_EULA=Y' -e "MSSQL_SA_PASSWORD=$pw" -e "MSSQL_PID=$edition" -p ${port}:1433 -d mcr.microsoft.com/mssql/server:$tag
8585
8686
# wait a few seconds for the container to start...
8787

articles/azure-sql-edge/deploy-kubernetes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Create an SA password in the Kubernetes cluster. Kubernetes can manage sensitive
6969
The following command creates a password for the SA account:
7070

7171
```azurecli
72-
kubectl create secret generic mssql --from-literal=SA_PASSWORD="MyC0m9l&xP@ssw0rd" -n <namespace name>
72+
kubectl create secret generic mssql --from-literal=MSQL_SA_PASSWORD="MyC0m9l&xP@ssw0rd" -n <namespace name>
7373
```
7474

7575
Replace `MyC0m9l&xP@ssw0rd` with a complex password.
@@ -186,11 +186,11 @@ In this step, create a manifest to describe the container based on the Azure SQL
186186
value: "Developer"
187187
- name: ACCEPT_EULA
188188
value: "Y"
189-
- name: SA_PASSWORD
189+
- name: MSSQL_SA_PASSWORD
190190
valueFrom:
191191
secretKeyRef:
192192
name: mssql
193-
key: SA_PASSWORD
193+
key: MSSQL_SA_PASSWORD
194194
- name: MSSQL_AGENT_ENABLED
195195
value: "TRUE"
196196
- name: MSSQL_COLLATION
@@ -225,13 +225,13 @@ In this step, create a manifest to describe the container based on the Azure SQL
225225

226226
* `persistentVolumeClaim`: This value requires an entry for `claimName:` that maps to the name used for the persistent volume claim. This tutorial uses `mssql-data`.
227227

228-
* `name: SA_PASSWORD`: Configures the container image to set the SA password, as defined in this section.
228+
* `name: MSSQL_SA_PASSWORD`: Configures the container image to set the SA password, as defined in this section.
229229

230230
```yaml
231231
valueFrom:
232232
secretKeyRef:
233233
name: mssql
234-
key: SA_PASSWORD
234+
key: MSSQL_SA_PASSWORD
235235
```
236236

237237
When Kubernetes deploys the container, it refers to the secret named `mssql` to get the value for the password.

0 commit comments

Comments
 (0)