Skip to content

Commit ca965f2

Browse files
authored
Merge pull request #79343 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to master to sync with https://github.com/Microsoft/azure-docs (branch master)
2 parents 830e203 + cb6f899 commit ca965f2

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

articles/data-explorer/ingest-data-event-hub.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In this article, you generate sample data and send it to an event hub. The first
3535

3636
1. To create an event hub, use the following button to start the deployment. Right-click and select **Open in new window**, so you can follow the rest of the steps in this article.
3737

38-
[![Deploy to Azure](media/ingest-data-event-hub/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstarts-templates%2Fmaster%2F201-event-hubs-create-event-hub-and-consumer-group%2Fazuredeploy.json)
38+
[![Deploy to Azure](media/ingest-data-event-hub/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-event-hubs-create-event-hub-and-consumer-group%2Fazuredeploy.json)
3939

4040
The **Deploy to Azure** button takes you to the Azure portal to fill out a deployment form.
4141

articles/iot-hub/quickstart-send-telemetry-python.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ The simulated device application connects to a device-specific endpoint on your
108108
The following screenshot shows the output as the simulated device application sends telemetry to your IoT hub:
109109
110110
![Run the simulated device](media/quickstart-send-telemetry-python/SimulatedDevice.png)
111+
112+
### To avoid the import iothub_client error
113+
The current version of the Azure IoT SDK for Python is a wrapper over [our C SDK](https://github.com/azure/azure-iot-sdk-c). It is generated using the [Boost](https://www.boost.org/) library. Because of that, it comes with several significant limitations. See more details [here](https://github.com/Azure/azure-iot-sdk-python#important-installation-notes---dealing-with-importerror-issues)
114+
115+
1. Check that you have the right version of [Python](https://github.com/Azure/azure-iot-sdk-python#important-installation-notes---dealing-with-importerror-issues). Be aware that only certain versions works fine for this sample.
116+
2. Check that you have the right version of C++ runtime [Microsoft Visual C++ Redistributable for Visual Studio 2019](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads). (We recommend the latest).
117+
3. Verify that you have installed the iothub client: `pip install azure-iothub-device-client`.
111118
112119
## Read the telemetry from your hub
113120
@@ -134,4 +141,4 @@ In this quickstart, you've setup an IoT hub, registered a device, sent simulated
134141
To learn how to control your simulated device from a back-end application, continue to the next quickstart.
135142

136143
> [!div class="nextstepaction"]
137-
> [Quickstart: Control a device connected to an IoT hub](quickstart-control-device-python.md)
144+
> [Quickstart: Control a device connected to an IoT hub](quickstart-control-device-python.md)

articles/mariadb/howto-data-in-replication.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.date: 09/24/2018
1010

1111
# How to configure Azure Database for MariaDB Data-in Replication
1212

13-
In this article, you will learn how to set up Data-in Replication in the Azure Database for MariaDB service by configuring the master and replica servers. Data-in Replication allows you to synchronize data from a master MariaDB server running on-premises, in virtual machines, or database services hosted by other cloud providers into a replica in the Azure Database for MariaDB service.
13+
In this article, you will learn how to set up Data-in Replication in the Azure Database for MariaDB service by configuring the master and replica servers. Data-in Replication allows you to synchronize data from a master MariaDB server running on-premises, in virtual machines, or database services hosted by other cloud providers into a replica in the Azure Database for MariaDB service. We recommanded you setup the data-in replication with [Global Transaction ID](https://mariadb.com/kb/en/library/gtid/) when your master server's version is 10.2 or above.
1414

1515
This article assumes that you have at least some prior experience with MariaDB servers and databases.
1616

@@ -111,7 +111,16 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
111111
The results should be like following. Make sure to note the binary file name as it will be used in later steps.
112112

113113
![Master Status Results](./media/howto-data-in-replication/masterstatus.png)
114+
115+
6. Get GTID position (Optional, needed for replication with GTID)
116+
117+
Run the function [`BINLOG_GTID_POS`](https://mariadb.com/kb/en/library/binlog_gtid_pos/) command to get the GTID position for the correspond binlog file name and offset.
118+
119+
```sql
120+
select BINLOG_GTID_POS('<binlog file name>', <binlog offset>);
121+
```
114122

123+
115124
## Dump and restore master server
116125

117126
1. Dump all databases from master server
@@ -137,17 +146,24 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
137146

138147
All Data-in Replication functions are done by stored procedures. You can find all procedures at [Data-in Replication Stored Procedures](reference-data-in-stored-procedures.md). The stored procedures can be run in the MySQL shell or MySQL Workbench.
139148

140-
To link two servers and start replication, login to the target replica server in the Azure DB for MariaDB service and set the external instance as the master server. This is done by using the `mysql.az_replication_change_master` stored procedure on the Azure DB for MariaDB server.
149+
To link two servers and start replication, login to the target replica server in the Azure DB for MariaDB service and set the external instance as the master server. This is done by using the `mysql.az_replication_change_master` or `mysql.az_replication_change_master_with_gtid` stored procedure on the Azure DB for MariaDB server.
141150

142151
```sql
143152
CALL mysql.az_replication_change_master('<master_host>', '<master_user>', '<master_password>', 3306, '<master_log_file>', <master_log_pos>, '<master_ssl_ca>');
144153
```
154+
155+
or
156+
157+
```sql
158+
CALL mysql.az_replication_change_master_with_gtid('<master_host>', '<master_user>', '<master_password>', 3306, '<master_gtid_pos>', '<master_ssl_ca>');
159+
```
145160

146161
- master_host: hostname of the master server
147162
- master_user: username for the master server
148163
- master_password: password for the master server
149164
- master_log_file: binary log file name from running `show master status`
150165
- master_log_pos: binary log position from running `show master status`
166+
- master_gtid_pos: GTID position from running `select BINLOG_GTID_POS('<binlog file name>', <binlog offset>);`
151167
- master_ssl_ca: CA certificate’s context. If not using SSL, pass in empty string.
152168
- It is recommended to pass this parameter in as a variable. See the following examples for more information.
153169

@@ -194,6 +210,10 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
194210

195211
If the state of `Slave_IO_Running` and `Slave_SQL_Running` are "yes" and the value of `Seconds_Behind_Master` is “0”, replication is working well. `Seconds_Behind_Master` indicates how late the replica is. If the value is not "0", it means that the replica is processing updates.
196212

213+
4. Update correspond server variables to make data-in replication more safe (Only needed for replication without GTID)
214+
215+
Because of MariaDB native replication limitation, you need to setup [`sync_master_info`](https://mariadb.com/kb/en/library/replication-and-binary-log-system-variables/#sync_master_info) and [`sync_relay_log_info`](https://mariadb.com/kb/en/library/replication-and-binary-log-system-variables/#sync_relay_log_info) variables on replication without GTID scenario. We recommand you check your slave server's `sync_master_info` and `sync_relay_log_info` variables and change them ot `1` if you want to make sure the data-in replication is stable.
216+
197217
## Other stored procedures
198218

199219
### Stop replication

includes/storage-sync-files-agent-update-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ There are four approved and tested ways to install the Azure File Sync agent upd
2525
#### Automatic agent lifecycle management
2626
With agent version 6, the file sync team has introduced an agent auto-upgrade feature. You can select either of two modes and specify a maintenance window in which the upgrade shall be attempted on the server. This feature is designed to help you with the agent lifecycle management by either providing a guardrail preventing your agent from expiration or allowing for a no-hassle, stay current setting.
2727
1. The **default setting** will attempt to prevent the agent from expiration. Within 21 days of the posted expiration date of an agent, the agent will attempt to self-upgrade. It will start an attempt to upgrade once a week within 21 days prior to expiration and in the selected maintenance window. **This option does not eliminate the need for taking regular Microsoft Update patches.**
28-
2. Optionally, you can select that the agent will automatically upgrade itself as soon as a new agent version becomes available. This will also occur during the selected maintenance window and allow your server to benefit from new features and improvements as soon as they become generally available. This is the recommended, worry-free setting that will provide major agent versions as well as regular update patches to your server.
28+
2. Optionally, you can select that the agent will automatically upgrade itself as soon as a new agent version becomes available (currently not applicable to clustered servers). This update will occur during the selected maintenance window and allow your server to benefit from new features and improvements as soon as they become generally available. This is the recommended, worry-free setting that will provide major agent versions as well as regular update patches to your server. Every agent released is at GA quality. If you select this option, Microsoft will flight the newest agent version to you. Clustered servers are excluded. Once flighting is complete, the agent will also become available on [Microsoft Download Center](https://go.microsoft.com/fwlink/?linkid=858257) aka.ms/AFS/agent.
2929

3030
#### Agent lifecycle and change management guarantees
3131
Azure File Sync is a cloud service, which continuously introduces new features and improvements. This means that a specific Azure File Sync agent version can only be supported for a limited time. To facilitate your deployment, the following rules guarantee you have enough time and notification to accommodate agent updates/upgrades in your change management process:

0 commit comments

Comments
 (0)