Support standard Azure Function configuration options for managed identity #433
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for configuring Managed Identity using the same configuration-section based approach that is used for other Azure Functions extensions. This makes it simpler to configure MI for .NET apps, and possible to configure it for all AF apps.
For example, Azure Storage can be configured by defining
AzureWebJobsStorage__accountName
,AzureWebJobsStorage__credential
, andAzureWebJobsStorage__clientId
, and the Event Hubs namespace can be configured by definingEventHubsConnection__fullyQualifiedNamespace
,EventHubsConnection__credential
, andEventHubsConnection__clientId
.To avoid dealing with legacy credential types, this PR also replaces most remaining uses of the Microsoft.Azure.Storage.* (V11) SDKs with the Azure.Storage.* (V12) equivalents. Since this is not a major version bump, it does not remove the actual package dependency. Also, a few utility functions (name validation and connection string parsing) still depend on V11 since there is no equivalent in V12.
Remaining work: