Skip to content

Comments

docs: Add explicit User-Assigned Managed Identity (UAMI) example for Event Hubs binding#128219

Open
paulyuk wants to merge 1 commit intoMicrosoftDocs:mainfrom
paulyuk:docs/uami-event-hubs-example
Open

docs: Add explicit User-Assigned Managed Identity (UAMI) example for Event Hubs binding#128219
paulyuk wants to merge 1 commit intoMicrosoftDocs:mainfrom
paulyuk:docs/uami-event-hubs-example

Conversation

@paulyuk
Copy link

@paulyuk paulyuk commented Feb 20, 2026

Summary

This PR adds a clearer example showing how to configure Event Hubs connections using a User-Assigned Managed Identity (UAMI) with explicit app settings.

Problem

The existing documentation mentions credential and clientId properties for user-assigned managed identities but lacks a concrete JSON example. Developers need to piece together information from multiple sources to configure UAMI.

Solution

Added a new "User-assigned managed identity" subsection with:

  • A table showing the three required properties (fullyQualifiedNamespace, credential, clientId)
  • A complete JSON example developers can copy directly
  • A tip explaining when UAMI is recommended over system-assigned identity

Changes

  • includes/functions-event-hubs-connections.md: Added UAMI configuration example

Why This Matters

User-Assigned Managed Identity is recommended for:

  • Production deployments requiring fine-grained identity control
  • Scenarios with multiple Azure resources sharing an identity
  • Zero Trust security architectures

Related


This change aligns with Azure security best practices for passwordless authentication.

This PR adds a clearer example showing how to configure Event Hubs
connections using a User-Assigned Managed Identity (UAMI) with explicit
app settings for credential and clientId.

The existing documentation mentions these properties but lacks a
concrete JSON example showing the full configuration pattern that
developers can copy directly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@prmerger-automator
Copy link
Contributor

@paulyuk : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit f37ea19:

✅ Validation status: passed

File Status Preview URL Details
includes/functions-event-hubs-connections.md ✅Succeeded

For more details, please refer to the build report.

@prmerger-automator
Copy link
Contributor

PRMerger Results

Issue Description
File Change Percent This PR contains file(s) with more than 30% file change.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a concrete documentation example for configuring Azure Functions Event Hubs bindings using a User-Assigned Managed Identity (UAMI) via explicit app settings.

Changes:

  • Introduces a “User-assigned managed identity” subsection for Event Hubs connections
  • Adds a properties table and a copy/paste JSON app settings example
  • Provides guidance (TIP) on when UAMI is recommended

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +42 to +46
| Property | Environment variable template | Description | Example value |
|--------------|----------|-----|----------|
| Fully Qualified Namespace | `<CONNECTION_NAME_PREFIX>__fullyQualifiedNamespace` | The fully qualified Event Hubs namespace. | `myeventhubns.servicebus.windows.net`|
| Credential | `<CONNECTION_NAME_PREFIX>__credential` | Must be set to `managedidentity`. | `managedidentity` |
| Client ID | `<CONNECTION_NAME_PREFIX>__clientId` | The client ID of the user-assigned managed identity. | `00000000-0000-0000-0000-000000000000` |
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Markdown table syntax is invalid due to the doubled leading pipes (||) and a mismatched separator row, which will render incorrectly. Use standard Markdown table formatting with a single leading | per row and a separator row that matches the number of columns.

Copilot uses AI. Check for mistakes.
@ttorble
Copy link
Contributor

ttorble commented Feb 20, 2026

@mattchenderson

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged tracking label for the PR review team label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants