…
|
||
---|---|---|
.. | ||
HelloCities.cs | ||
Program.cs | ||
README.md | ||
TokenCredentialDTFx.csproj |
README.md
Token Credential Sample
This sample demonstrates how to configure a connection resolver when using Netherite as the orchestration provider for a Durable Task project.
The connection resolver allows you to supply a Azure Token Credential instead of a connection string, which means you can use identity-based authentication.
For this sample, we use the default Azure Identity credential as provided by the Azure.Identity package.
Configuration Prerequisites
Before running this sample, you must
- Create a new Azure Storage account, or reuse an existing one
- Create a new Azure Event Hubs namespace, or reuse an existing one (that is not currently in use)
- Make sure you have Storage Blob Data Contributor and Storage Table Data Contributor permissions for the storage account.
- Make sure you have Azure Event Hubs Data Owner permission for the event hubs namespace.
- Set
AccountName
to contain the name of the storage account, using an environment variable or a function app configuration setting, - Set
NamespaceName
to contain the name of the Event Hubs namespace, using an environment variable or a function app configuration setting.