Skip to content

Commit a5d77dd

Browse files
Merge pull request #113934 from stevestein/sqledge-config
Sqledge config
2 parents a61834d + 1019696 commit a5d77dd

File tree

4 files changed

+117
-0
lines changed

4 files changed

+117
-0
lines changed

articles/azure-sql-edge/configure.md

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
---
2+
title: Configure Azure SQL Edge Preview
3+
description: Learn about configuring Azure SQL Edge Preview
4+
keywords:
5+
services: sql-database-edge
6+
ms.service: sql-database-edge
7+
ms.topic: conceptual
8+
author: SQLSourabh
9+
ms.author: sourabha
10+
ms.reviewer: sstein
11+
ms.date: 05/05/2020
12+
---
13+
14+
# Configure Azure SQL Edge Preview
15+
16+
Azure SQL Edge supports configuration through one of the following two options:
17+
18+
- Using Environment Variables.
19+
- Using mssql.conf file placed in the /var/opt/mssql folder.
20+
21+
> [!NOTE]
22+
> Setting Environment Variables overrides the settings specified in the mssql.conf file.
23+
24+
## Configure using Environment Variables
25+
26+
Azure SQL Edge exposes several different environment variables that can be used to configure the SQL Edge container. These environment variables are a subset of the environment variables available for SQL Server on Linux. For more information on SQL Server on Linux environment variables, see [Environment Variables](/sql/linux/sql-server-linux-configure-environment-variables/).
27+
28+
SQL Server on Linux environment variables are NOT supported for Azure SQL Edge. If defined, these environment variables will be ignored during container initialization.
29+
30+
| Environment variable | Description |
31+
|-----|-----|
32+
| **MSSQL_ENABLE_HADR** | Enable Availability Group. For example, '1' is enabled, and '0' is disabled |
33+
34+
> [!IMPORTANT]
35+
> The *MSSQL_PID* environment variable for SQL Edge only accepts **Premium** and **Developer** as the valid values. Azure SQL Edge does not support initialization using a product key.
36+
37+
> [!NOTE]
38+
> Additionally, to download the Azure SQL Edge end user license agreement, refer [End-User Licensing Agreement](https://go.microsoft.com/fwlink/?linkid=2128283).
39+
40+
### Specifying the Environment Variables
41+
42+
Environment variables for SQL Edge can be specified when deploying Azure SQL Edge through the [Azure portal](deploy-portal.md). This can be added either in the "Environment Variables" section of the module deployment or as part of the container create option as described below.
43+
44+
*Set using environment variables options*
45+
46+
![set using environment variables list](media/configure/set-environment-variables.png)
47+
48+
*Set using container create options*
49+
50+
![set using container create options](media/configure/set-environment-variables-using-create-options.png)
51+
52+
## Configure using mssql.conf file
53+
54+
Azure SQL Edge does not include the [mssql-conf configuration utility](/sql/linux/sql-server-linux-configure-mssql-conf/) like SQL Server on Linux does, as such the mssql.conf file needs to be manually configured and placed in the persistent storage drive that is mapped to the /var/opt/mssql/ folder in the SQL Edge module. When deploying SQL Edge from the Azure Marketplace, this mapping is specified as the **Mounts" option in the container create option
55+
56+
```json
57+
{
58+
"Mounts": [
59+
{
60+
"Type": "volume",
61+
"Source": "sqlvolume",
62+
"Target": "/var/opt/mssql"
63+
}
64+
]
65+
}
66+
}
67+
```
68+
69+
The following mssql.conf options are not applicable to SQL Edge:
70+
</br></br>
71+
|Option|Description|
72+
|:---|:---|
73+
|**Customer feedback** | Choose whether or not SQL Server sends feedback to Microsoft. |
74+
|**Database Mail Profile** | Set the default database mail profile for SQL Server on Linux. |
75+
|**High availability** | Enable Availability Groups. |
76+
|**Microsoft Distributed Transaction Coordinator** | Configure and troubleshoot MSDTC on Linux. Additional distributed transaction-related configuration options are also not supported for SQL Edge. For more information on these additional configuration options, refer [Configure MSDTC](https://docs.microsoft.com/sql/linux/sql-server-linux-configure-mssql-conf#msdtc) |
77+
|**MLServices EULAs** | Accept R and Python EULAs for Machine Learning Services packages. Applies to SQL Server 2019 only.|
78+
|**outboundnetworkaccess** |Enable outbound network access for [Machine Learning Services](/sql/linux/sql-server-linux-setup-machine-learning/) R, Python, and Java extensions.|
79+
80+
A sample mssql.conf file, which works for SQL Edge is provided below. For more information on the format for mssql.conf file, see [mssql.conf format](https://docs.microsoft.com/sql/linux/sql-server-linux-configure-mssql-conf#mssql-conf-format).
81+
82+
```ini
83+
[EULA]
84+
accepteula = Y
85+
86+
[coredump]
87+
captureminiandfull = true
88+
coredumptype = full
89+
90+
[filelocation]
91+
defaultbackupdir = /var/opt/mssql/backup/
92+
defaultdatadir = /var/opt/mssql/data/
93+
defaultdumpdir = /var/opt/mssql/data/
94+
defaultlogdir = /var/opt/mssql/log/
95+
96+
[language]
97+
lcid = 1033
98+
99+
[memory]
100+
memorylimitmb = 6144
101+
102+
[sqlagent]
103+
errorlogfile = /var/opt/mssql/log/sqlagentlog.log
104+
errorlogginglevel = 7
105+
106+
[traceflag]
107+
traceflag0 = 3604
108+
traceflag1 = 3605
109+
traceflag2 = 1204
110+
```
111+
112+
## Next step
113+
114+
- [Connect to Azure SQL Edge](connect.md)
115+
- [Building an end-to-end IoT solution with SQL Edge](onnx-demo.md)
43.6 KB
Loading
38.2 KB
Loading

articles/azure-sql-edge/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
href: create-stream-analytics-job.md
3838
- name: Connect to SQL Edge
3939
href: connect.md
40+
- name: Configure SQL Edge
41+
href: configure.md
4042
- name: Concepts
4143
items:
4244
- name: Machine learning and AI with ONNX

0 commit comments

Comments
 (0)