Skip to content

Commit 63c16ec

Browse files
authored
Merge pull request #297505 from MicrosoftDocs/main
Publish to live, Wednesday 4AM PST, 4/2
2 parents d5a1525 + 24b26a3 commit 63c16ec

31 files changed

+875
-143
lines changed

articles/azure-web-pubsub/reference-client-sdk-python.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ As shown in the diagram, the client has the permissions to send messages to and
4848
```python
4949
from azure.messaging.webpubsubclient import WebPubSubClient
5050

51-
client = WebPubSubClient("<<client-access-url>>")
51+
client = WebPubSubClient("<client-access-url>")
5252
with client:
5353
# The client can join/leave groups, send/receive messages to and from those groups all in real-time
5454
...
@@ -59,11 +59,13 @@ with client:
5959
A client can only receive messages from groups that it has joined and you need to add a callback to specify the logic when receiving messages.
6060

6161
```python
62+
from azure.messaging.webpubsubclient.models import CallbackType
63+
6264
# ...continues the code snippet from above
6365

6466
# Registers a listener for the event 'group-message' early before joining a group to not miss messages
6567
group_name = "group1";
66-
client.on("group-message", lambda e: print(f"Received message: {e.data}"));
68+
client.subscribe(CallbackType.GROUP_MESSAGE, lambda e: print(f"Received message: {e.data}"));
6769

6870
# A client needs to join the group it wishes to receive messages from
6971
client.join_group(groupName);
@@ -85,31 +87,39 @@ client.send_to_group(group_name, "hello world", "text");
8587
1. When a client is successfully connected to your Web PubSub resource, the `connected` event is triggered.
8688

8789
```python
88-
client.on("connected", lambda e: print(f"Connection {e.connection_id} is connected"))
90+
from azure.messaging.webpubsubclient.models import CallbackType
91+
92+
client.subscribe(CallbackType.CONNECTED, lambda e: print(f"Connection {e.connection_id} is connected"))
8993
```
9094

9195
2. When a client is disconnected and fails to recover the connection, the `disconnected` event is triggered.
9296

9397
```python
94-
client.on("disconnected", lambda e: print(f"Connection disconnected: {e.message}"))
98+
from azure.messaging.webpubsubclient.models import CallbackType
99+
100+
client.subscribe(CallbackType.DISCONNECTED, lambda e: print(f"Connection disconnected: {e.message}"))
95101
```
96102

97103
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.
98104

99105
```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"))
101109
```
102110

103111
### A client consumes messages from the application server or joined groups
104112

105113
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.
106114

107115
```python
116+
from azure.messaging.webpubsubclient.models import CallbackType
117+
108118
# 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.
109-
client.on("server-message", lambda e: print(f"Received message {e.data}"))
119+
client.subscribe(CallbackType.CONNECTED, lambda e: print(f"Received message {e.data}"))
110120

111121
# 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", lambda e: print(f"Received message from {e.group}: {e.data}"))
122+
client.subscribe(CallbackType.GROUP_MESSAGE, lambda e: print(f"Received message from {e.group}: {e.data}"))
113123
```
114124
---
115125
### Handle rejoin failure
@@ -120,11 +130,13 @@ However, you should be aware of `auto_rejoin_groups`'s limitations.
120130
- "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.
121131

122132
```python
133+
from azure.messaging.webpubsubclient.models import CallbackType
134+
123135
# By default auto_rejoin_groups=True. You can disable it by setting to False.
124136
client = WebPubSubClient("<client-access-url>", auto_rejoin_groups=True);
125137

126138
# Registers a listener to handle "rejoin-group-failed" event
127-
client.on("rejoin-group-failed", lambda e: print(f"Rejoin group {e.group} failed: {e.error}"))
139+
client.subscribe(CallbackType.REJOIN_GROUP_FAILED, lambda e: print(f"Rejoin group {e.group} failed: {e.error}"))
128140
```
129141

130142
### Operation and retry
@@ -133,9 +145,9 @@ By default, the operation such as `client.join_group()`, `client.leave_group()`,
133145

134146
```python
135147
try:
136-
client.join_group(group_name)
148+
client.join_group(group_name)
137149
except SendMessageError as e:
138-
client.join_group(group_name, ack_id=e.ack_id)
150+
client.join_group(group_name, ack_id=e.ack_id)
139151
```
140152

141153
## Troubleshooting

articles/cost-management-billing/manage/direct-ea-billing-invoice-documents.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Direct EA billing invoice documents
33
description: Learn how to understand the invoice files associated with your direct enterprise agreement.
4-
author: bandersmsft
4+
author: sahilkhurana
55
ms.reviewer: sahilkhurana
66
ms.service: cost-management-billing
77
ms.subservice: enterprise
88
ms.topic: conceptual
9-
ms.date: 01/22/2025
10-
ms.author: banders
9+
ms.date: 04/02/2025
10+
ms.author: sahilkhurana
1111
---
1212

1313
# Direct EA billing invoice documents

articles/cost-management-billing/manage/ea-azure-marketplace.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Azure Marketplace
33
description: Describes how EA customers can use Azure Marketplace.
4-
author: bandersmsft
5-
ms.reviewer: sapnakeshari
4+
author: sahilkhurana
5+
ms.reviewer: sahilkhurana
66
ms.service: cost-management-billing
77
ms.subservice: enterprise
88
ms.topic: conceptual
9-
ms.date: 01/06/2025
10-
ms.author: banders
9+
ms.date: 04/02/2025
10+
ms.author: sahilkhurana
1111
---
1212

1313
# Azure Marketplace

articles/cost-management-billing/manage/ea-billing-administration-partners.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: EA billing administration for partners in the Azure portal
33
description: This article explains the common tasks that a partner administrator accomplishes in the Azure portal to manage indirect enterprise agreements.
44
author: RaniChegondi
55
ms.author: racheg
6-
ms.date: 01/22/2025
6+
ms.date: 04/01/2025
77
ms.topic: conceptual
88
ms.service: cost-management-billing
99
ms.subservice: enterprise

articles/cost-management-billing/manage/ea-portal-agreements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure EA agreements and amendments
33
description: The article describes how Azure EA agreements and amendments might affect your access, use, and payments for Azure services.
44
author: RaniChegondi
55
ms.author: racheg
6-
ms.date: 01/13/2025
6+
ms.date: 04/01/2025
77
ms.topic: conceptual
88
ms.service: cost-management-billing
99
ms.subservice: enterprise

articles/cost-management-billing/manage/ea-portal-vm-reservations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Azure EA VM reserved instances
33
description: This article summaries how Azure reservations for VM reserved instances can help you save your money with your enterprise enrollment.
4-
author: bandersmsft
5-
ms.author: banders
6-
ms.date: 01/22/2025
4+
author: racheg
5+
ms.author: racheg
6+
ms.date: 04/02/2025
77
ms.topic: conceptual
88
ms.service: cost-management-billing
99
ms.subservice: enterprise
10-
ms.reviewer: sapnakeshari
10+
ms.reviewer: racheg
1111
---
1212

1313
# Azure EA VM reserved instances

articles/cost-management-billing/understand/review-enterprise-agreement-bill.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: Review your Azure Enterprise Agreement bill
33
description: Learn how to read and understand your usage and bill for Azure Enterprise Agreements.
4-
author: bandersmsft
5-
ms.reviewer: prsaini
4+
author: racheg
5+
ms.reviewer: racheg
66
ms.service: cost-management-billing
77
ms.subservice: enterprise
88
ms.topic: tutorial
9-
ms.date: 06/28/2024
10-
ms.author: banders
11-
9+
ms.date: 04/02/2025
10+
ms.author: racheg
1211
---
1312
# Understand your Azure Enterprise Agreement bill
1413

articles/data-factory/connector-mariadb.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: jianleishen
66
ms.subservice: data-movement
77
ms.custom: synapse
88
ms.topic: conceptual
9-
ms.date: 01/26/2025
9+
ms.date: 04/02/2025
1010
ms.author: jianleishen
1111
---
1212

@@ -86,6 +86,9 @@ If you use version 2.0, the following properties are supported for MariaDB linke
8686
| 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 |
8787
| 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 |
8888

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.
91+
8992
**Example:**
9093

9194
```json

articles/data-factory/how-to-expression-language-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Dynamic content editor automatically escapes characters in your content when you
7676
}
7777
```
7878

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.
8080

8181
```json
8282
{

articles/defender-for-iot/organizations/alert-engine-messages.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ The policy engine alerts table contains the **Aggregated** item to indicate that
108108
| **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 |
109109
| **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 |
110110
| **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 |
112111
| **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 |
113112
| **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 |
114113
| **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

Comments
 (0)