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
title: Management libraries - Azure Event Hubs| Microsoft Docs
3
3
description: This article provides information on the library that you can use to manage Azure Event Hubs namespaces and entities from .NET.
4
4
ms.topic: article
5
-
ms.date: 09/23/2021
5
+
ms.date: 09/06/2022
6
6
ms.devlang: csharp
7
7
ms.custom: devx-track-csharp
8
8
---
@@ -19,49 +19,140 @@ You can use the Azure Event Hubs management libraries to dynamically provision E
19
19
20
20
## Prerequisites
21
21
22
-
To get started using the Event Hubs management libraries, you must authenticate with Azure Active Directory (AAD). AAD requires that you authenticate as a service principal, which provides access to your Azure resources. For information about creating a service principal, see one of these articles:
22
+
To get started using the Event Hubs management libraries, you must authenticate with Azure Active Directory (Azure AD). Azure AD requires that you authenticate as a service principal, which provides access to your Azure resources. For information about creating a service principal, see one of these articles:
23
23
24
24
*[Use the Azure portal to create Active Directory application and service principal that can access resources](../active-directory/develop/howto-create-service-principal-portal.md)
25
25
*[Use Azure PowerShell to create a service principal to access resources](../active-directory/develop/howto-authenticate-service-principal-powershell.md)
26
26
*[Use Azure CLI to create a service principal to access resources](/cli/azure/create-an-azure-service-principal-azure-cli)
27
27
28
-
These tutorials provide you with an `AppId` (Client ID), `TenantId`, and `ClientSecret` (authentication key), all of which are used for authentication by the management libraries. You must have **Owner**permissions for the resource group on which you want to run.
28
+
These tutorials provide you with an `AppId` (Client ID), `TenantId`, and `ClientSecret` (authentication key), all of which are used for authentication by the management libraries. The Azure AD application must be added to the **Azure Event Hubs Data Owner**role at the resource group level.
29
29
30
-
## Programming pattern
30
+
## Sample code
31
31
32
32
The pattern to manipulate any Event Hubs resource follows a common protocol:
33
33
34
-
1. Obtain a token from AAD using the `Microsoft.IdentityModel.Clients.ActiveDirectory` library.
0 commit comments