-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New article]: Aspire + Azure Functions integration #1706
Comments
WRT to the location in the table of contents, Azure Functions is moreso an app type but I think the "Integrations" subsection is still the right place for this. |
Below is a brain dump of the implementation details/constraints that can be massaged into cleaner content for the docs. 😄 The integration depends on the
The
The var hostStorage = builder.AddAzureStorage("my-custom-storage");
builder.AddAzureFunctionsProject<Project>("funcapp")
.WithHostStorage(hostStorage); Note: since the The Azure Functions Host doesn't support the same connection string key/value format that Aspire uses. As such, it's a requirement that a different format of connection key name be injected by Aspire resources for consumption in Azure Functions project. This behavior is supported by the
Resources that implement this interface can be consumed by Azure Functions triggers. Implementing this interface isn't a requirement if the user wants to use the standard Aspire client integrations in their Functions app though. You can still resolve the Aspire-configured injected resources from the applications DI container by leveraging the client integrations. Because this interface is required to support triggers, that means the implementation currently only supports the following triggers:
So, that's on the APIs shipped out of the Aspire packages for this. This feature also takes a dependency on some components in Functions lands. Specifically, we're looking at:
Alongside these minimum required versions, there's also constraints on what types of Functions projects can be Aspirified. We currently only support:
When it comes to deployment, we're currently only supporting deploying to plain ol' containers on ACA by building on top of the SDK container publish function built into Speaking of deployment, if users would like HTTP triggers to be publicly accessible, they will need to call the |
Proposed topic or title
Azure Functions
Location in table of contents.
/ Integrations
Reason for the article
We're gearing up to ship our initial iteration of support for Azure Functions in Aspire in .NET 9. We'll want to document this support prior to this release. There are some limitations to the support at the moment so these will need to be documented as well.
Article abstract
In this article, you learn how to use the .NET Aspire Azure Functions integration. The Aspire.Hosting.Azure.Functions library is used to:
Relevant searches
aspire azure functions, aspire functions
Associated WorkItem - 335639
The text was updated successfully, but these errors were encountered: