Skip to content

Commit 7c19817

Browse files
author
Mike Ray (Microsoft)
committed
Update formatting
1 parent d52422a commit 7c19817

File tree

1 file changed

+39
-37
lines changed

1 file changed

+39
-37
lines changed

articles/azure-arc/data/troubleshoot-managed-instance-configuration.md

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,58 +21,60 @@ For Arc SQL Managed Instance, the supported configuration files that you can ove
2121

2222
## Steps to provide override configuration files
2323

24-
### 1. Prepare the content of the configuration file
24+
1. Prepare the content of the configuration file
2525

26-
Prepare the content of the file that you would like to provide an override for.
26+
Prepare the content of the file that you would like to provide an override for.
2727

28-
### 2. Create a `ConfigMap`
28+
1. Create a `ConfigMap`
2929

30-
Create a `ConfigMap` spec to store the content of the configuration file. The key in the `ConfigMap` dictionary should be the name of the file, and the value should be the content.
31-
You can provide file overrides for multiple configuration files in one `ConfigMap`.
32-
The `ConfigMap` must be in the same namespace as the SQL Managed Instance.
30+
Create a `ConfigMap` spec to store the content of the configuration file. The key in the `ConfigMap` dictionary should be the name of the file, and the value should be the content.
3331

34-
The following spec shows an example of how to provide an override for mssql.conf file:
32+
You can provide file overrides for multiple configuration files in one `ConfigMap`.
3533

36-
```json
37-
apiVersion: v1
38-
kind: ConfigMap
39-
metadata:
40-
name: sqlmifo-cm
41-
namespace: test
42-
data:
43-
mssql.conf: "[language]\r\nlcid = 1033\r\n\r\n[licensing]\r\npid = GeneralPurpose\r\n\r\n[network]\r\nforceencryption = 0\r\ntlscert = /var/run/secrets/managed/certificates/mssql/mssql-certificate.pem\r\ntlsciphers = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384\r\ntlskey = /var/run/secrets/managed/certificates/mssql/mssql-privatekey.pem\r\ntlsprotocols = 1.2\r\n\r\n[sqlagent]\r\nenabled = False\r\n\r\n[telemetry]\r\ncustomerfeedback = false\r\n\r\n"
44-
```
34+
The `ConfigMap` must be in the same namespace as the SQL Managed Instance.
4535

46-
Apply the `ConfigMap` in Kubernetes using `kubectl apply -f <filename>`.
36+
The following spec shows an example of how to provide an override for mssql.conf file:
4737

48-
### 3. Provide the name of the ConfigMap in SQL Managed Instance spec
38+
```json
39+
apiVersion: v1
40+
kind: ConfigMap
41+
metadata:
42+
name: sqlmifo-cm
43+
namespace: test
44+
data:
45+
mssql.conf: "[language]\r\nlcid = 1033\r\n\r\n[licensing]\r\npid = GeneralPurpose\r\n\r\n[network]\r\nforceencryption = 0\r\ntlscert = /var/run/secrets/managed/certificates/mssql/mssql-certificate.pem\r\ntlsciphers = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384\r\ntlskey = /var/run/secrets/managed/certificates/mssql/mssql-privatekey.pem\r\ntlsprotocols = 1.2\r\n\r\n[sqlagent]\r\nenabled = False\r\n\r\n[telemetry]\r\ncustomerfeedback = false\r\n\r\n"
46+
```
4947

50-
In SQL Managed Instance spec, provide the name of the ConfigMap in the field `spec.fileOverrideConfigMap`.
51-
The SQL Managed Instance `apiVersion` must be at least v12 (released in April 2023).
48+
Apply the `ConfigMap` in Kubernetes using `kubectl apply -f <filename>`.
5249

53-
The following SQL Managed Instance spec shows an example of how to provide the name of the ConfigMap.
50+
1. Provide the name of the ConfigMap in SQL Managed Instance spec
5451

55-
```json
56-
apiVersion: sql.arcdata.microsoft.com/v12
57-
kind: SqlManagedInstance
58-
metadata:
59-
name: sqlmifo
60-
namespace: test
61-
spec:
62-
fileOverrideConfigMap: sqlmifo-cm
63-
...
64-
```
52+
In SQL Managed Instance spec, provide the name of the ConfigMap in the field `spec.fileOverrideConfigMap`.
6553

66-
Apply the SQL Managed Instance spec in Kubernetes. This action leads to the delivery of the provided configuration files to Arc SQL Managed Instance container.
54+
The SQL Managed Instance `apiVersion` must be at least v12 (released in April 2023).
6755

68-
### 4. Check that the files are downloaded in the arc-sqlmi container.
56+
The following SQL Managed Instance spec shows an example of how to provide the name of the ConfigMap.
6957

70-
The locations of supported files in the container are:
58+
```json
59+
apiVersion: sql.arcdata.microsoft.com/v12
60+
kind: SqlManagedInstance
61+
metadata:
62+
name: sqlmifo
63+
namespace: test
64+
spec:
65+
fileOverrideConfigMap: sqlmifo-cm
66+
...
67+
```
7168

72-
- `mssql.conf`: `/var/run/config/mssql/mssql.conf`
73-
- `mssql.json`: `/var/run/config/mssql/mssql.json`
74-
- `krb5.conf`: `/etc/krb5.conf`
69+
Apply the SQL Managed Instance spec in Kubernetes. This action leads to the delivery of the provided configuration files to Arc SQL Managed Instance container.
7570

71+
1. Check that the files are downloaded in the `arc-sqlmi` container.
72+
73+
The locations of supported files in the container are:
74+
75+
- `mssql.conf`: `/var/run/config/mssql/mssql.conf`
76+
- `mssql.json`: `/var/run/config/mssql/mssql.json`
77+
- `krb5.conf`: `/etc/krb5.conf`
7678

7779
## Next steps
7880

0 commit comments

Comments
 (0)