Add descriptive display names for Azure Storage emulator endpoints #10520
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.
The Azure Storage emulator endpoints in Azure Functions projects were showing generic names ("blob", "queue", "table") in the dashboard, causing confusion when users clicked on them and received different API responses. This PR adds descriptive display names to make it clear what each endpoint represents.
Problem
When creating Azure Functions projects with Aspire orchestration, the default storage resource creates three endpoints:
blob
endpoint on port 10000queue
endpoint on port 10001table
endpoint on port 10002These endpoints all appeared with generic names in the dashboard, but when users clicked on them, they would get different responses:
This inconsistency was confusing because all endpoints appeared to be from the same "functionstorage" resource.
Solution
Added descriptive display names using the
WithUrlForEndpoint
method:Impact
The solution follows the established pattern in Aspire where
WithUrlForEndpoint
is used to customize how endpoints appear in the dashboard.Fixes #10416.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.