Skip to content

Azure API Management #59

@justinyoo

Description

@justinyoo

.NET Aspire issue link

dotnet/aspire#2235

Overview

The use of Azure API Management (APIM) is common in many integration scenarios. However, it's not yet natively supported by .NET Aspire. It would be great that we support this APIM integration.

Usage example

In the AppHost project:

var apim = builder.AddAzureApiManagement(
    "myapim",
    new AzureApiManagementOptions()
    {
        BaseUrl = "https://my-apim.azure-api.net/api",
        SubscriptionKey = "{{this-is-subscription-key}}"
    });

builder.AddProject<Projects.My_Aspire_WebApp>("webapp")
       .WithReference(apim);

In the consuming project:

builder.Services.AddHttpClient<IApimClient, ApimClient>(client
    => client.BaseAddress = new Uri("https+http://apim"));

Additional context

  • I'd like to get myself assigned. But before that, I'd also like to discuss its feasibility first.
  • I'm not sure how OpenTelemetry related data is propagated from one app to the other through APIM.

Help us help you

Yes, I'd like to be assigned to work on this item

Metadata

Metadata

Assignees

No one assigned

    Labels

    integrationA new .NET Aspire integrationwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions