Skip to main content
net8.0

Azure Functions resource types for .NET Aspire.

Published
Sep 25, 2025
1y ago
Total Downloads
1.9M
1,947,523

Deprecated Package Version

Reason: Other, Legacy

This version is out of support and is no longer maintained. Please upgrade to the latest version. See our support policy for details: https://aka.ms/dotnet/aspire/support

Install

dotnet add package Aspire.Hosting.Azure.Functions --version 9.5.0-preview.1.25474.7
ProductVersions
.NET
net8.0

README

Aspire.Hosting.Azure.Functions library (Preview)

Provides methods to the .NET Aspire hosting model for Azure functions.

Getting started

Prerequisites

  • A .NET Aspire project based on the starter template.
  • A .NET-based Azure Functions worker project.

Install the package

In your AppHost project, install the .NET Aspire Azure Functions Hosting library with NuGet:

dotnet add package Aspire.Hosting.Azure.Functions --prerelease

Usage example

Add a reference to the .NET-based Azure Functions project in your AppHost project.

dotnet add reference ..\Company.FunctionApp\Company.FunctionApp.csproj

In the AppHost.cs file of AppHost, use the AddAzureFunctionsProject to configure the Functions project resource.

using Aspire.Hosting;
using Aspire.Hosting.Azure;
using Aspire.Hosting.Azure.Functions;

var builder = new DistributedApplicationBuilder();

var storage = builder.AddAzureStorage("storage").RunAsEmulator();
var queue = storage.AddQueues("queue");
var blob = storage.AddBlobs("blob");

builder.AddAzureFunctionsProject<Projects.Company_FunctionApp>("my-functions-project")
    .WithReference(queue)
    .WithReference(blob);

var app = builder.Build();

app.Run();

Feedback & contributing

https://github.com/dotnet/aspire

Changes from Previous Version

No structural changes between v9.4.2-preview.1.25428.12 and v9.5.0-preview.1.25474.7.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.The published metadata declares 38 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.