You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. The `stopped` event is triggered when the client is disconnected **and** the client stops trying to reconnect. This usually happens after the `client.stop()`is called, or`auto_reconnect`is disabled or a specified limit to trying to reconnect has reached. If you want to restart the client, you can call `client.start()`in the stopped event.
98
104
99
105
```python
100
-
client.on("stopped", lambda : print("Client has stopped"))
106
+
from azure.messaging.webpubsubclient.models import CallbackType
107
+
108
+
client.subscribe(CallbackType.STOPPED, lambda : print("Client has stopped"))
101
109
```
102
110
103
111
### A client consumes messages from the application server or joined groups
104
112
105
113
A client can add callbacks to consume messages from your application server or groups. Note, for`group-message` event the client can _only_ receive group messages that it has joined.
106
114
107
115
```python
116
+
from azure.messaging.webpubsubclient.models import CallbackType
117
+
108
118
# Registers a listener for the "server-message". The callback is invoked when your application server sends message to the connectionID, to or broadcast to all connections.
# Registers a listener for the "group-message". The callback is invoked when the client receives a message from the groups it has joined.
112
-
client.on("group-message", lambdae: print(f"Received message from {e.group}: {e.data}"))
122
+
client.subscribe(CallbackType.GROUP_MESSAGE, lambdae: print(f"Received message from {e.group}: {e.data}"))
113
123
```
114
124
---
115
125
### Handle rejoin failure
@@ -120,11 +130,13 @@ However, you should be aware of `auto_rejoin_groups`'s limitations.
120
130
-"rejoin group" operations may fail due to various reasons, for example, the client doesn't have permission to join the groups. In such cases, you need to add a callback to handle this failure.
121
131
122
132
```python
133
+
from azure.messaging.webpubsubclient.models import CallbackType
134
+
123
135
# By default auto_rejoin_groups=True. You can disable it by setting to False.
Copy file name to clipboardExpand all lines: articles/cost-management-billing/manage/ea-billing-administration-partners.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: EA billing administration for partners in the Azure portal
3
3
description: This article explains the common tasks that a partner administrator accomplishes in the Azure portal to manage indirect enterprise agreements.
Copy file name to clipboardExpand all lines: articles/data-factory/connector-mariadb.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: jianleishen
6
6
ms.subservice: data-movement
7
7
ms.custom: synapse
8
8
ms.topic: conceptual
9
-
ms.date: 01/26/2025
9
+
ms.date: 04/02/2025
10
10
ms.author: jianleishen
11
11
---
12
12
@@ -86,6 +86,9 @@ If you use version 2.0, the following properties are supported for MariaDB linke
86
86
| useSystemTrustStore | This option specifies whether to use a CA certificate from the system trust store, or from a specified PEM file. E.g. `UseSystemTrustStore=<0/1>`;<br/>Options: Enabled (1) / Disabled (0) **(Default)**| No |
87
87
| connectVia | The [Integration Runtime](concepts-integration-runtime.md) to be used to connect to the data store. Learn more from [Prerequisites](#prerequisites) section. If not specified, it uses the default Azure Integration Runtime. |No |
88
88
89
+
> [!NOTE]
90
+
> The MariaDB connector version 2.0 defaults to the highest TLS encryption and verification with sslMode=VERIFY_IDENTITY (4). Based on your server’s TLS configuration, please adjust the sslMode as needed.
Copy file name to clipboardExpand all lines: articles/data-factory/how-to-expression-language-functions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ Dynamic content editor automatically escapes characters in your content when you
76
76
}
77
77
```
78
78
79
-
Dynamic content editor converts above content to expression `"{ \n \"type\": \"@{if(equals(1, 2), 'Blob', 'Table' )}\",\n \"name\": \"@{toUpper('myData')}\"\n}"`. The result of this expression is a JSON format string showed below.
79
+
Dynamic content editor converts above content to expression `"{ \n \"type\": \"@{if(equals(1, 2), 'Blob', 'Table' )}\",\n \"name\": \"@{toUpper('myData')}\"\n}"`. The result of this expression is a JSON format string shown below.
Copy file name to clipboardExpand all lines: articles/defender-for-iot/organizations/alert-engine-messages.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,6 @@ The policy engine alerts table contains the **Aggregated** item to indicate that
108
108
|**New Activity Detected - EtherNet/IP Protocol Command**| New traffic parameters were detected. This parameter combination isn't authorized as learned traffic on your network. The following combination is unauthorized. | Medium | Unauthorized Communication Behavior |**Tactics:** <br> - Inhibit Response Function <br><br> **Techniques:** <br> - T0836: Modify Parameter | Learnable | Yes |
109
109
|**New Activity Detected - GSM Message Code**| New traffic parameters were detected. This parameter combination isn't authorized as learned traffic on your network. The following combination is unauthorized. | Medium | Unauthorized Communication Behavior |**Tactics:** <br> - CommandAndControl <br><br> **Techniques:** <br> - T0869: Standard Application Layer Protocol | Learnable | Yes |
110
110
|**New Activity Detected - LonTalk Command Codes**| New traffic parameters were detected. This parameter combination isn't authorized as learned traffic on your network. The following combination is unauthorized. | Medium | Unauthorized Communication Behavior |**Tactics:** <br> - Collection <br> - Impair Process Control <br><br> **Techniques:** <br> - T0861 - Point & Tag Identification <br> - T0855: Unauthorized Command Message | Learnable | Yes |
111
-
|**New Port Discovery**| New traffic parameters were detected. This parameter combination isn't authorized as learned traffic on your network. The following combination is unauthorized. | Low | Discovery |**Tactics:** <br> - Lateral Movement <br><br> **Techniques:** <br> - T0867: Lateral Tool Transfer | Learnable| No |
112
111
|**New Activity Detected - LonTalk Network Variable**| New traffic parameters were detected. This parameter combination isn't authorized as learned traffic on your network. The following combination is unauthorized. | Medium | Unauthorized Communication Behavior |**Tactics:** <br> - Impair Process Control <br><br> **Techniques:** <br> - T0855: Unauthorized Command Message | Learnable| Yes |
113
112
|**New Activity Detected - Ovation Data Request**| New traffic parameters were detected. This parameter combination isn't authorized as learned traffic on your network. The following combination is unauthorized. | Medium | Unauthorized Communication Behavior |**Tactics:** <br> - Collection <br> - Discovery <br><br> **Techniques:** <br> - T0801: Monitor Process State <br> - T0888: Remote System Information Discovery | Learnable | Yes |
114
113
|**New Activity Detected - Read/Write Command (AMS Index Group)**| New traffic parameters were detected. This parameter combination isn't authorized as learned traffic on your network. The following combination is unauthorized. | Medium | Configuration Changes |**Tactics:** <br> - Impair Process Control <br> - Inhibit Response Function <br><br> **Techniques:** <br> - T0855: Unauthorized Command Message <br> - T0836: Modify Parameter | Learnable | Yes |
0 commit comments