Skip to content

AI Foundry Local and .NET Aspire in WSL2 / Linux #10937

@MedAnd

Description

@MedAnd

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Improve Foundry Local support for WSL2 / Linux development scenarios

The current implementation of Foundry Local appears to assume that .NET Aspire is running on the same host as the Foundry Local service. This creates friction for development workflows where .NET Aspire is run from WSL2 or Linux, but Foundry Local is only supported on Windows or macOS.

Describe the solution you'd like

💡 Feature Request

Please consider adding support and documentation for the following:

  1. Remote Foundry Local configuration:

    • Allow .NET Aspire to connect to a Foundry Local instance running on a different host (e.g., Windows host from WSL2).
    • Enable configuration of the Foundry Local endpoint via .WithEndpoint() or similar methods.
  2. Enhance RunAsFoundryLocal():

    • Add an overload or configuration option to specify the location of the Foundry Local service.
    • Support environment variables or distributed app settings to override the default behavior.

Additional context

This feature request may require alignment and new features / APIs in AI Foundry Local as per this related issue: microsoft/Foundry-Local#222

🔍 Current Limitation

var foundry = builder.AddAzureAIFoundry("foundry")
                     .RunAsFoundryLocal();

Metadata

Metadata

Assignees

No one assigned

    Labels

    aiarea-integrationsIssues pertaining to Aspire Integrations packages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions