Skip to content

Commit cce8bee

Browse files
[Event Hubs] updated README with install steps for azure-identity and aiohttp (#16215)
* updated README with install steps for azure-identity and aiohttp * wording + clarity on credential types/async transport Co-authored-by: Adam Ling (MSFT) <[email protected]> Co-authored-by: Adam Ling (MSFT) <[email protected]>
1 parent 8a96f30 commit cce8bee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/eventhub/azure-eventhub/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ Alternately, one can use a Credential object to authenticate via AAD with the az
5656
[TokenCredential](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/azure/core/credentials.py)
5757
protocol. There are implementations of the `TokenCredential` protocol available in the
5858
[azure-identity package](https://pypi.org/project/azure-identity/). The host name is of the format `<yournamespace.servicebus.windows.net>`.
59+
- To use the credential types provided by `azure-identity`, please install the package:
60+
```pip install azure-identity```
61+
- Additionally, to use the async API supported on Python 3.5+, you must first install an async transport, such as [`aiohttp`](https://pypi.org/project/aiohttp/):
62+
```pip install aiohttp```
5963
- When using Azure Active Directory, your principal must be assigned a role which allows access to Event Hubs, such as the
6064
Azure Event Hubs Data Owner role. For more information about using Azure Active Directory authorization with Event Hubs,
6165
please refer to [the associated documentation](https://docs.microsoft.com/azure/event-hubs/authorize-access-azure-active-directory).

0 commit comments

Comments
 (0)