Update environment variable format to polyglot-friendly pattern #5320
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.
Fixes #5308
This PR updates all documentation to reflect the new polyglot-friendly environment variable format for service endpoints introduced in dotnet/aspire#12141.
Changes
The environment variable naming convention for service endpoints has been updated from the .NET-specific format to a more language-agnostic format that works seamlessly with JavaScript, Python, and other non-.NET technologies.
Before
Environment variables used the format
services__{resourcename}__{endpointname}__{index}:This generated environment variables like:
services__apiservice__http__0="http://localhost:5455"services__apiservice__https__0="https://localhost:7356"After
Environment variables now use the format
{RESOURCENAME}_{ENDPOINTNAME}:The same code now generates:
APISERVICE_HTTP="http://localhost:5455"APISERVICE_HTTPS="https://localhost:7356"Updated Documentation
The new format is uppercase, doesn't include an index for single endpoints, and follows a consistent pattern that makes it easier to use in polyglot scenarios where non-.NET applications need to consume Aspire services.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Internal previews