Skip to content

Commit f65aba5

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into heidist-docs
2 parents fa9073c + 6c0d8ca commit f65aba5

File tree

80 files changed

+220
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+220
-223
lines changed

articles/aks/network-observability-overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ When the Network Observability add-on is enabled, it allows for the collection a
5454

5555
* Pod level metrics aren't supported.
5656

57-
* The deployment of the Network Observability add-on on Mariner 1.0 is currently unsupported.
58-
5957
## Scale
6058

6159
Certain scale limitations apply when you use Azure managed Prometheus and Grafana. For more information, see [Scrape Prometheus metrics at scale in Azure Monitor](/azure/azure-monitor/essentials/prometheus-metrics-scrape-scale)
@@ -68,3 +66,4 @@ Certain scale limitations apply when you use Azure managed Prometheus and Grafan
6866

6967
- To create an AKS cluster with Network Observability and BYO Prometheus and Grafana, see [Setup Network Observability for Azure Kubernetes Service (AKS) BYO Prometheus and Grafana](network-observability-byo-cli.md).
7068

69+

articles/azure-cache-for-redis/cache-tutorial-functions-getting-started.md

Lines changed: 49 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,14 @@ The new project is created:
5858

5959
<!-- ![Image](Media/VSCodeWorkspace.png) -->
6060

61-
### Install necessary NuGet packages
61+
### Install the necessary NuGet package
6262

63-
You need to install two NuGet packages:
63+
You'll need to install `Microsoft.Azure.WebJobs.Extensions.Redis`, the NuGet package for the Redis extension that allows Redis keyspace notifications to be used as triggers in Azure Functions.
6464

65-
1. [StackExchange.Redis](https://www.nuget.org/packages/StackExchange.Redis/), which is the primary .NET client for Redis.
66-
67-
1. `Microsoft.Azure.WebJobs.Extensions.Redis`, which is the extension that allows Redis keyspace notifications to be used as triggers in Azure Functions.
68-
69-
Install these packages by going to the **Terminal** tab in VS Code and entering the following commands:
65+
Install this package by going to the **Terminal** tab in VS Code and entering the following command:
7066

7167
```terminal
72-
dotnet add package StackExchange.Redis
73-
dotnet add package Microsoft.Azure.WebJobs.Extensions.Redis
74-
dotnet restore
68+
dotnet add package Microsoft.Azure.WebJobs.Extensions.Redis --prerelease
7569
```
7670

7771
### Configure cache
@@ -92,82 +86,58 @@ Go back to VS Code, add a file to the project called `RedisFunctions.cs` Copy an
9286

9387
```csharp
9488
using Microsoft.Extensions.Logging;
95-
using System.Text.Json;
89+
using StackExchange.Redis;
9690

9791
namespace Microsoft.Azure.WebJobs.Extensions.Redis.Samples
9892
{
9993
public static class RedisSamples
10094
{
101-
public const string localhostSetting = "redisLocalhost";
95+
public const string connectionString = "redisConnectionString";
10296

10397
[FunctionName(nameof(PubSubTrigger))]
10498
public static void PubSubTrigger(
105-
[RedisPubSubTrigger(localhostSetting, "pubsubTest")] RedisMessageModel model,
106-
ILogger logger)
107-
{
108-
logger.LogInformation(JsonSerializer.Serialize(model));
109-
}
110-
111-
[FunctionName(nameof(PubSubTriggerResolvedChannel))]
112-
public static void PubSubTriggerResolvedChannel(
113-
[RedisPubSubTrigger(localhostSetting, "%pubsubChannel%")] RedisMessageModel model,
99+
[RedisPubSubTrigger(connectionString, "pubsubTest")] string message,
114100
ILogger logger)
115101
{
116-
logger.LogInformation(JsonSerializer.Serialize(model));
102+
logger.LogInformation(message);
117103
}
118104

119105
[FunctionName(nameof(KeyspaceTrigger))]
120106
public static void KeyspaceTrigger(
121-
[RedisPubSubTrigger(localhostSetting, "__keyspace@0__:keyspaceTest")] RedisMessageModel model,
107+
[RedisPubSubTrigger(connectionString, "__keyspace@0__:keyspaceTest")] string message,
122108
ILogger logger)
123109
{
124-
logger.LogInformation(JsonSerializer.Serialize(model));
110+
logger.LogInformation(message);
125111
}
126112

127113
[FunctionName(nameof(KeyeventTrigger))]
128114
public static void KeyeventTrigger(
129-
[RedisPubSubTrigger(localhostSetting, "__keyevent@0__:del")] RedisMessageModel model,
130-
ILogger logger)
131-
{
132-
logger.LogInformation(JsonSerializer.Serialize(model));
133-
}
134-
135-
[FunctionName(nameof(ListsTrigger))]
136-
public static void ListsTrigger(
137-
[RedisListTrigger(localhostSetting, "listTest")] RedisMessageModel model,
138-
ILogger logger)
139-
{
140-
logger.LogInformation(JsonSerializer.Serialize(model));
141-
}
142-
143-
[FunctionName(nameof(ListsMultipleTrigger))]
144-
public static void ListsMultipleTrigger(
145-
[RedisListTrigger(localhostSetting, "listTest1 listTest2")] RedisMessageModel model,
115+
[RedisPubSubTrigger(connectionString, "__keyevent@0__:del")] string message,
146116
ILogger logger)
147117
{
148-
logger.LogInformation(JsonSerializer.Serialize(model));
118+
logger.LogInformation(message);
149119
}
150120

151-
[FunctionName(nameof(StreamsTrigger))]
152-
public static void StreamsTrigger(
153-
[RedisStreamTrigger(localhostSetting, "streamTest")] RedisMessageModel model,
121+
[FunctionName(nameof(ListTrigger))]
122+
public static void ListTrigger(
123+
[RedisListTrigger(connectionString, "listTest")] string entry,
154124
ILogger logger)
155125
{
156-
logger.LogInformation(JsonSerializer.Serialize(model));
126+
logger.LogInformation(entry);
157127
}
158128

159-
[FunctionName(nameof(StreamsMultipleTriggers))]
160-
public static void StreamsMultipleTriggers(
161-
[RedisStreamTrigger(localhostSetting, "streamTest1 streamTest2")] RedisMessageModel model,
129+
[FunctionName(nameof(StreamTrigger))]
130+
public static void StreamTrigger(
131+
[RedisStreamTrigger(connectionString, "streamTest")] string entry,
162132
ILogger logger)
163133
{
164-
logger.LogInformation(JsonSerializer.Serialize(model));
134+
logger.LogInformation(entry);
165135
}
166136
}
167137
}
168138
```
169139

170-
This tutorial shows multiple different triggers:
140+
This tutorial shows multiple different ways to trigger on Redis activity:
171141

172142
1. _PubSubTrigger_, which is triggered when activity is published to the pub/sub channel named `pubsubTest`
173143

@@ -177,13 +147,24 @@ This tutorial shows multiple different triggers:
177147

178148
1. _ListTrigger_, which looks for changes to the list `listTest`
179149

180-
1. _ListMultipleTrigger_, which looks for changes to list `listTest1` and `listTest2`
181-
182150
1. _StreamTrigger_, which looks for changes to the stream `streamTest`
183151

184-
1. _StreamMultipleTrigger_, which looks for changes to streams `streamTest1` and `streamTest2`
152+
### Connect to your cache
153+
In order to trigger on Redis activity, you need to pass in the connection string of your cache instance. This information will be stored in the `local.settings.json` file that was automatically created in your folder. Using the [local settings file](../azure-functions/functions-run-local.md#local-settings) is recommended as a security best practice.
185154

186-
To connect to your cache, take the connection string you copied from earlier and paste to replace the value of `localhost` at the top of the file, set to `127.0.0.1:6379` by default.
155+
To connect to your cache, add a `ConnectionStrings` section in the `local.settings.json` file and add your connection string using the parameter `redisConnectionString`. It should look like this:
156+
157+
```json
158+
{
159+
"IsEncrypted": false,
160+
"Values": {
161+
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
162+
},
163+
"ConnectionStrings": {
164+
"redisConnectionString": "<your-connection-string>"
165+
}
166+
}
167+
```
187168

188169
<!-- ![Image](Media/ConnectionString.png) -->
189170

@@ -199,12 +180,12 @@ To test the trigger functionality, try creating and deleting the _keyspaceTest_
199180

200181
After it's open, try the following commands:
201182

202-
- SET keyspaceTest 1
203-
- SET keyspaceTest 2
204-
- DEL keyspaceTest
205-
- PUBLISH pubsubTest testMessage
206-
- LPUSH listTest test
207-
- XADD streamTest * name Clippy
183+
- `SET keyspaceTest 1`
184+
- `SET keyspaceTest 2`
185+
- `DEL keyspaceTest`
186+
- `PUBLISH pubsubTest testMessage`
187+
- `LPUSH listTest test`
188+
- `XADD streamTest * name Clippy`
208189

209190
<!-- ![Image](Media/Console2.png) -->
210191

@@ -241,7 +222,13 @@ Wait a few minutes for the new Function App to be created. It appears in the dro
241222

242223
The app builds and starts deploying. You can track progress in the **Output Window**.
243224

244-
Once deployment is complete, open your Function App in the Azure portal and select **Log Stream** from the Resource menu. Wait for log analytics to connect, and then use the Redis console to activate any of the triggers. You should see the triggers being logged here.
225+
### Add connection string information
226+
227+
Navigate to your new Function App in the Azure portal and select the **Configuration** blade from the Resource menu. You'll notice that your application settings have automatically been added to the Function App. For security, however, the connection string information in your `local.settings.json` file is not automatically added. Select **New connection string** and enter `redisConnectionString` as the Name, and your connection string as the Value. Set Type to _Custom_, and select **Ok** to close the menu and then **Save** on the Configuration page to confirm. The functions app will restart with the new connection string information.
228+
229+
### Test your triggers
230+
231+
Once deployment is complete and the connection string information added, open your Function App in the Azure portal and select **Log Stream** from the Resource menu. Wait for log analytics to connect, and then use the Redis console to activate any of the triggers. You should see the triggers being logged here.
245232

246233
<!-- ![Image](Media/LogStream.png) -->
247234

articles/azure-resource-manager/bicep/bicep-functions-string.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The output from the preceding example with the default values is:
143143

144144
`concat(arg1, arg2, arg3, ...)`
145145

146-
Combines multiple string values and returns the concatenated string, or combines multiple arrays and returns the concatenated array. Instead of using the `concat` function, use string interpolation, except in certain cases involving [multi-line strings](../bicep/data-types.md#multi-line-strings). For more information about combining multiple arrays, see [concat](./bicep-functions-array.md#concat).
146+
Combines multiple string values and returns the concatenated string, or combines multiple arrays and returns the concatenated array. To improve readability, use [string interpolation](./data-types.md#strings) instead of the `concat()` function. However, in some cases such as string replacement in [multi-line strings](../bicep/data-types.md#multi-line-strings), you may need to fall back on using the `concat()` function or the [`replace()` function](#replace).
147147

148148
Namespace: [sys](bicep-functions.md#namespaces-for-functions).
149149

@@ -162,7 +162,7 @@ A string or array of concatenated values.
162162

163163
### Examples
164164

165-
The following example shows a comparison between using interpolation and using the `concat` function. The two outputs return the same value.
165+
The following example shows a comparison between using interpolation and using the `concat()` function. The two outputs return the same value.
166166

167167
```bicep
168168
param prefix string = 'prefix'
@@ -178,7 +178,7 @@ The outputs from the preceding example with the default value are:
178178
| concatOutput | String | prefixAnd5yj4yjf5mbg72 |
179179
| interpolationOutput | String | prefixAnd5yj4yjf5mbg72 |
180180

181-
Interpolation is not currently supported in multi-line strings. The following example shows a comparison between using interpolation and using the `concat` function.
181+
Interpolation is not currently supported in multi-line strings. The following example shows a comparison between using interpolation and using the `concat()` function.
182182

183183
```bicep
184184
var blocked = 'BLOCKED'

articles/azure-resource-manager/templates/template-functions-string.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ The output from the preceding example with the default values is:
150150

151151
Combines multiple string values and returns the concatenated string, or combines multiple arrays and returns the concatenated array.
152152

153-
In Bicep, use [string interpolation](../bicep/data-types.md#strings) instead of the [`concat`](../bicep/bicep-functions-string.md#concat) function, except in certain cases involving [multi-line strings](../bicep/data-types.md#multi-line-strings).
153+
In Bicep, use [string interpolation](../bicep/data-types.md#strings) instead of the [`concat()`](../bicep/bicep-functions-string.md#concat) function to improve readability. However, in some cases such as string replacement in [multi-line strings](../bicep/data-types.md#multi-line-strings), you may need to fall back on using the [`concat()`](../bicep/bicep-functions-string.md#concat) function or the [`replace()` function](../bicep/bicep-functions-string.md#replace).
154+
154155

155156
### Parameters
156157

articles/event-grid/sdk-overview.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure Event Grid SDKs
33
description: Describes the SDKs for Azure Event Grid. These SDKs provide management, publishing and consumption.
44
ms.topic: reference
5-
ms.date: 05/17/2021
5+
ms.date: 07/06/2023
66
ms.devlang: csharp, golang, java, javascript, python
77
---
88

@@ -12,27 +12,33 @@ Event Grid provides SDKs that enable you to programmatically manage your resourc
1212

1313
## Management SDKs
1414

15-
The management SDKs enable you to create, update, and delete event grid topics and subscriptions. Currently, the following SDKs are available:
15+
The management SDKs enable you to create, update, and delete Event Grid topics and subscriptions. Currently, the following SDKs are available:
16+
17+
| SDK | Package | Reference documentation | Samples |
18+
| -------- | ------- | ----------------------- | ---- |
19+
| REST API | | [REST reference](/rest/api/eventgrid/controlplane-version2023-06-01-preview/ca-certificates) | |
20+
| .NET | [Azure.ResourceManager.EventGrid](https://www.nuget.org/packages/Azure.ResourceManager.EventGrid/) | [.NET reference](/dotnet/api/overview/azure/resourcemanager.eventgrid-readme?view=azure-dotnet-preview&preserve-view=true) | [.NET samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Azure.ResourceManager.EventGrid/samples) |
21+
| Java | [azure-resourcemanager-eventgrid](https://central.sonatype.com/artifact/com.azure.resourcemanager/azure-resourcemanager-eventgrid/) | [Java reference](/java/api/overview/azure/resourcemanager-eventgrid-readme?view=azure-java-preview&preserve-view=true) | [Java samples](https://github.com/azure/azure-sdk-for-java/tree/main/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples) |
22+
| JavaScript | [@azure/arm-eventgrid](https://www.npmjs.com/package/@azure/arm-eventgrid) | [JavaScript reference](/javascript/api/overview/azure/arm-eventgrid-readme?view=azure-node-preview&preserve-view=true) | [JavaScript and TypeScript samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/arm-eventgrid) |
23+
| Python | [azure-mgmt-eventgrid](https://pypi.org/project/azure-mgmt-eventgrid/) | [Python reference](/python/api/azure-mgmt-eventgrid/?view=azure-python-preview&preserve-view=true) | [Python samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventgrid/azure-mgmt-eventgrid/generated_samples)
24+
| Go | [Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go) | | [Go samples](https://github.com/Azure-Samples/azure-sdk-for-go-samples/tree/main/sdk/resourcemanager/eventgrid) |
1625

17-
* [.NET](https://www.nuget.org/packages/Microsoft.Azure.Management.EventGrid)
18-
* [Go](https://github.com/Azure/azure-sdk-for-go)
19-
* [Java](https://search.maven.org/#search%7Cga%7C1%7Cazure-resourcemanager-eventgrid)
20-
* [Node](https://www.npmjs.com/package/@azure/arm-eventgrid)
21-
* [Python](https://pypi.python.org/pypi/azure-mgmt-eventgrid)
22-
* [Ruby](https://rubygems.org/gems/azure_mgmt_event_grid)
2326

2427
## Data plane SDKs
2528

29+
> [!NOTE]
30+
> For MQTT messaging, you can use your favorite MQTT SDK. Currently Azure Event Grid doesn't provide data plane SDK for MQTT.
31+
2632
The data plane SDKs enable you to post events to topics by taking care of authenticating, forming the event, and asynchronously posting to the specified endpoint. They also enable you to consume first party events. Currently, the following SDKs are available:
2733

28-
| Programming language | SDK |
29-
| -------------------- | ---------- |
30-
| .NET | Latest stable SDK: [Azure.Messaging.EventGrid](https://www.nuget.org/packages/Azure.Messaging.EventGrid/)<p>Legacy SDK: [Microsoft.Azure.EventGrid](https://www.nuget.org/packages/Microsoft.Azure.EventGrid) |
31-
| Java | Latest stable SDK: [azure-messaging-eventgrid](https://search.maven.org/artifact/com.azure/azure-messaging-eventgrid/)<p>Legacy SDK: [azure-eventgrid](https://mvnrepository.com/artifact/com.microsoft.azure/azure-eventgrid)</p> |
32-
| Python | [azure-eventgrid](https://pypi.org/project/azure-eventgrid/) |
33-
| JavaScript | [@azure/eventgrid](https://www.npmjs.com/package/@azure/eventgrid/) |
34-
| Go | [Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go) |
35-
| Ruby | [azure_event_grid](https://rubygems.org/gems/azure_event_grid) |
34+
| Programming language | Package | Reference documentation | Samples |
35+
| -------------------- | ---------- | ------------------- | -------- |
36+
| REST API | | [REST reference](/rest/api/eventgrid/dataplanepreview-version2023-06-01/publish-cloud-events) |
37+
| .NET | [Azure.Messaging.EventGrid](https://www.nuget.org/packages/Azure.Messaging.EventGrid/) | [.NET reference](/dotnet/api/overview/azure/messaging.eventgrid-readme?view=azure-dotnet-preview&preserve-view=true) | [.NET samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples) |
38+
|Java | [azure-messaging-eventgrid](https://central.sonatype.com/artifact/com.azure/azure-messaging-eventgrid/) | [Java reference](/java/api/overview/azure/messaging-eventgrid-readme?view=azure-java-preview&preserve-view=true) | [Java samples](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/eventgrid/azure-messaging-eventgrid/src/samples/java) |
39+
| JavaScript | [@azure/eventgrid](https://www.npmjs.com/package/@azure/eventgrid) | [JavaScript reference](/javascript/api/overview/azure/eventgrid-readme?view=azure-node-preview&preserve-view=true) | [JavaScript and TypeScript samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid) |
40+
| Python | [azure-eventgrid](https://pypi.org/project/azure-eventgrid/) | [Python reference](/python/api/overview/azure/eventgrid-readme?view=azure-python-preview&preserve-view=true) | [Python samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventgrid/azure-eventgrid/samples) |
41+
| Go | [Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go) | | |
3642

3743

3844
## Next steps

articles/event-grid/toc.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ items:
7070
href: mqtt-troubleshoot-errors.md
7171
- name: Reference
7272
items:
73+
- name: SDKs
74+
href: sdk-overview.md
7375
- name: Azure CLI
7476
href: /cli/azure/eventgrid
7577
- name: PowerShell
@@ -126,6 +128,8 @@ items:
126128
href: create-view-manage-event-subscriptions.md
127129
- name: Reference
128130
items:
131+
- name: SDKs
132+
href: sdk-overview.md
129133
- name: Azure CLI
130134
href: /cli/azure/eventgrid
131135
- name: PowerShell
@@ -522,6 +526,8 @@ items:
522526
href: troubleshoot-subscription-validation.md
523527
- name: Reference
524528
items:
529+
- name: SDKs
530+
href: sdk-overview.md
525531
- name: Azure CLI
526532
href: /cli/azure/eventgrid
527533
- name: PowerShell
@@ -548,8 +554,6 @@ items:
548554
href: /azure/templates/microsoft.eventgrid/eventsubscriptions
549555
- name: Topics
550556
href: /azure/templates/microsoft.eventgrid/topics
551-
- name: SDKs
552-
href: sdk-overview.md
553557
- name: Transition from Event Grid on IoT Edge to Azure IoT Edge
554558
href: transition.md
555559
- name: Resources

articles/machine-learning/how-to-managed-network.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ To enable the [serverless spark jobs](how-to-submit-spark-jobs.md) for the manag
647647
# whether to provision spark vnet as well
648648
include_spark = True
649649
650-
provision_network_result = ml_client.workspaces.begin_provision_network(ws_name, include_spark).result()
650+
provision_network_result = ml_client.workspaces.begin_provision_network(workspace_name=ws_name, include_spark=include_spark).result()
651651
```
652652

653653
# [Azure portal](#tab/portal)

0 commit comments

Comments
 (0)