Skip to content

Commit 7c01169

Browse files
committed
minor consistency edits
1 parent 2053772 commit 7c01169

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/api-management/api-management-howto-log-event-hubs.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
title: How to log events to Azure Event Hubs in Azure API Management | Microsoft Docs
33
description: Learn how to log events to Azure Event Hubs in Azure API Management. Event Hubs is a highly scalable data ingress service.
44
services: api-management
5-
documentationcenter: ''
65
author: dlepow
76

87
ms.service: api-management
98
ms.topic: how-to
10-
ms.date: 01/18/2023
9+
ms.date: 02/01/2023
1110
ms.author: danlep
1211

1312
---
@@ -28,17 +27,17 @@ Azure Event Hubs is a highly scalable data ingress service that can ingest milli
2827

2928
To log events to the event hub, you need to configure credentials for access from API Management. API Management supports either of the two following access mechanisms:
3029

31-
* An event hub connection string
30+
* An Event Hubs connection string
3231
* A managed identity for your API Management instance.
3332

34-
### Configure event hub connection string
33+
### Option 1: Configure Event Hubs connection string
3534

3635
To create an Event Hubs connection string, see [Get an Event Hubs connection string](../event-hubs/event-hubs-get-connection-string.md).
3736

3837
* You can use a connection string for the Event Hubs namespace or for the specific event hub you use for logging from API Management.
3938
* The shared access policy for the connection string must enable at least **Send** permissions.
4039

41-
### Configure API Management managed identity
40+
### Option 2: Configure API Management managed identity
4241

4342
> [!NOTE]
4443
> Using an API Management managed identity for logging events to an event hub is supported in API Management REST API version `2022-04-01-preview` or later.
@@ -103,7 +102,7 @@ Include a JSON snippet similar to the following in your Azure Resource Manager t
103102
"description": "Event hub logger with system-assigned managed identity",
104103
"resourceId": "<EventHubsResourceID>"
105104
"credentials": {
106-
"connectionString": "Endpoint=sb://ContosoEventHubs.servicebus.windows.net/;SharedAccessKeyName=<KeyName>;SharedAccessKey=<key>",
105+
"connectionString": "Endpoint=sb://<EventHubsNamespace>/;SharedAccessKeyName=<KeyName>;SharedAccessKey=<key>",
107106
"name": "ApimEventHub"
108107
},
109108
}

0 commit comments

Comments
 (0)