Skip to content

Commit 0e2b567

Browse files
authored
Merge pull request #233905 from MicrosoftDocs/release-arc-data
Publish Azure Arc-data April 2024 release
2 parents 9b56c36 + 6c09416 commit 0e2b567

13 files changed

+408
-96
lines changed

articles/azure-arc/data/includes/azure-arc-data-preview-release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ ms.service: azure-arc
55
ms.topic: include
66
ms.date: 12/7/2022
77
---
8-
<!---
9-
At this time, a test or preview build is not available for the next release.
10-
-->
118

9+
At this time, a test or preview build is not available for the next release.
1210

11+
<!---
1312
April 2023 preview release is now available.
1413
1514
|Component|Value|
@@ -45,3 +44,4 @@ April 2023 preview release is now available.
4544
- Arc SQL Server | Azure Policy to enable best practices assessment at scale
4645
- Arc PostgreSQL | Ensure postgres extensions work per database/role.
4746
- Arc PostgreSQL | Upload metrics/logs to Azure Monitor
47+
-->

articles/azure-arc/data/managed-instance-disaster-recovery.md

Lines changed: 143 additions & 26 deletions
Large diffs are not rendered by default.
Binary file not shown.
81.8 KB
Loading

articles/azure-arc/data/release-notes.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@ ms.custom: references_regions, devx-track-azurecli, event-tier1-build-2022
1717

1818
This article highlights capabilities, features, and enhancements recently released or improved for Azure Arc-enabled data services.
1919

20+
## April 12, 2023
21+
22+
### Image tag
23+
24+
`v1.18.0_2023-04-11`
25+
26+
For complete release version information, see [Version log](version-log.md#april-11-2023).
27+
28+
New for this release:
29+
30+
- Azure Arc-enabled SQL Managed Instance
31+
- Direct mode for failover groups is generally available az CLI
32+
33+
- Arc PostgreSQL
34+
- Ensure postgres extensions work per database/role
35+
- Arc PostgreSQL | Upload metrics/logs to Azure Monitor
36+
2037
## March 14, 2023
2138

2239
### Image tag

articles/azure-arc/data/sizing-guidance.md

Lines changed: 90 additions & 47 deletions
Large diffs are not rendered by default.

articles/azure-arc/data/toc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,11 @@ items:
233233
- name: Reprovision replica
234234
href: reprovision-replica.md
235235
- name: Troubleshoot
236-
href: troubleshoot-managed-instance.md
236+
items:
237+
- name: General
238+
href: troubleshoot-managed-instance.md
239+
- name: Configuration
240+
href: troubleshoot-managed-instance-configuration.md
237241
- name: Azure Arc-enabled PostgreSQL (preview)
238242
items:
239243
- name: Overview
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: Troubleshoot configuration - Azure Arc-enabled SQL Managed Instance
3+
description: Describes how to troubleshoot configuration. Includes steps to provide configuration files for Azure Arc-enabled SQL Managed Instance Azure Arc-enabled data services
4+
author: MikeRayMSFT
5+
ms.author: mikeray
6+
ms.topic: troubleshooting-general
7+
ms.date: 04/10/2023
8+
---
9+
10+
# User-provided configuration files
11+
12+
Arc data services provide management of configuration settings and files in the system. The system generates configuration files such as `mssql.conf`, `mssql.json`, `krb5.conf` using the user-provided settings in the custom resource spec and some system-determined settings. The scope of what settings are supported and what changes can be made to the configuration files using the custom resource spec evolves over time. You may need to try changes in the configuration files that aren't possible through the settings on the custom resource spec.
13+
14+
To alleviate this problem, you can provide configuration file content for a selected set of files through a Kubernetes `ConfigMap`. The information in the `ConfigMap` effectively overrides the file content that the system would have otherwise generated. This content allows you to try some configuration settings.
15+
16+
For Arc SQL Managed Instance, the supported configuration files that you can override using this method are:
17+
18+
- `mssql.conf`
19+
- `mssql.json`
20+
- `krb5.conf`
21+
22+
## Steps to provide override configuration files
23+
24+
1. Prepare the content of the configuration file
25+
26+
Prepare the content of the file that you would like to provide an override for.
27+
28+
1. Create a `ConfigMap`
29+
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+
32+
You can provide file overrides for multiple configuration files in one `ConfigMap`.
33+
34+
The `ConfigMap` must be in the same namespace as the SQL Managed Instance.
35+
36+
The following spec shows an example of how to provide an override for mssql.conf file:
37+
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+
```
47+
48+
Apply the `ConfigMap` in Kubernetes using `kubectl apply -f <filename>`.
49+
50+
1. Provide the name of the ConfigMap in SQL Managed Instance spec
51+
52+
In SQL Managed Instance spec, provide the name of the ConfigMap in the field `spec.fileOverrideConfigMap`.
53+
54+
The SQL Managed Instance `apiVersion` must be at least v12 (released in April 2023).
55+
56+
The following SQL Managed Instance spec shows an example of how to provide the name of the ConfigMap.
57+
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+
```
68+
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.
70+
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`
78+
79+
## Next steps
80+
81+
[Get logs to troubleshoot Azure Arc-enabled data services](troubleshooting-get-logs.md)

articles/azure-arc/data/upload-logs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Once your logs are uploaded, you should be able to query them using the log quer
248248
2. Select Logs in the left panel.
249249
3. Select Get Started (or select the links on the Getting Started page to learn more about Log Analytics if you are new to it).
250250
4. Follow the tutorial to learn more about Log Analytics if this is your first time using Log Analytics.
251-
5. Expand Custom Logs at the bottom of the list of tables and you will see a table called 'sql_instance_logs_CL'.
251+
5. Expand Custom Logs at the bottom of the list of tables and you will see a table called 'sql_instance_logs_CL' or 'postgresInstances_postgresql_logs_CL'.
252252
6. Select the 'eye' icon next to the table name.
253253
7. Select the 'View in query editor' button.
254254
8. You'll now have a query in the query editor that will show the most recent 10 events in the log.
@@ -258,7 +258,7 @@ Once your logs are uploaded, you should be able to query them using the log quer
258258

259259
If you want to upload metrics and logs on a scheduled basis, you can create a script and run it on a timer every few minutes. Below is an example of automating the uploads using a Linux shell script.
260260

261-
In your favorite text/code editor, add the following script to the file and save as a script executable file - such as .sh for Linux/Mac, or .cmd, .bat, or .ps1 for Windows.
261+
In your favorite text/code editor, add the following script to the file and save as a script executable file - such as `.sh` (Linux/Mac), `.cmd`, `.bat`, or `.ps1` (Windows).
262262

263263
```azurecli
264264
az arcdata dc export --type logs --path logs.json --force --k8s-namespace arc

articles/azure-arc/data/upload-metrics-and-logs-to-azure-monitor.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ ms.topic: how-to
1616

1717
Periodically, you can export out usage information for billing purposes, monitoring metrics, and logs and then upload it to Azure. The export and upload of any of these three types of data will also create and update the data controller, and SQL managed instance resources in Azure.
1818

19-
> [!NOTE]
20-
> At this time, you can't upload usage data, metrics, or logs for Azure Arc-enabled PostgreSQL server preview.
21-
2219
Before you can upload usage data, metrics, or logs you need to:
2320

2421
* Install tools

0 commit comments

Comments
 (0)