You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Flex Consumption]|[Supported](./flex-consumption-plan.md#supported-language-stack-versions)| Not supported |
46
-
| .NET Aspire |[Preview](dotnet-isolated-process-guide.md#net-aspire-preview)| Not supported |
46
+
| .NET Aspire |[Preview](./dotnet-aspire-integration.md)| Not supported |
47
47
48
48
<sup>1</sup> When you need to interact with a service using parameters determined at runtime, using the corresponding service SDKs directly is recommended over using imperative bindings. The SDKs are less verbose, cover more scenarios, and have advantages for error handling and debugging purposes. This recommendation applies to both models.
-Intheapphost's `Program.cs`, you must also include the project by calling `AddAzureFunctionsProject<TProject>()` on your `IDistributedApplicationBuilder`. This method is used instead of the `AddProject<TProject>()` that you use for other project types. If you just use `AddProject<TProject>()`, the Functions project will not start properly.
1232
-
-IntheFunctionsproject:
1233
-
-Youmustreferencethe [2.xversions](#version-2x) of [Microsoft.Azure.Functions.Worker] and [Microsoft.Azure.Functions.Worker.Sdk]. Youmustalsoupdateanyreferencesyouhaveto `Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore` tothe2.xversionaswell.
-IfyouwanttouseyourAspireservicedefaults, youshouldincludeaprojectreferencetotheservicedefaultsproject. Beforebuildingyour `IHostApplicationBuilder` in `Program.cs`, youshouldalsoincludeacallto `builder.AddServiceDefaults()`.
1236
-
-Youshouldn't keep configuration in `local.settings.json`, aside from the `FUNCTIONS_WORKER_RUNTIME` setting, which should remain "dotnet-isolated". Other configuration should be set through the app host project.
ThisdoesnotincludethedefaultApplicationInsightsconfigurationthatyouseeinmanyoftheother `Program.cs` examplesinthisarticle. Instead, Aspire's OpenTelemetry integration is configured through the `builder.AddServiceDefaults()` call.
1267
-
1268
-
### Considerations and best practices for .NET Aspire integration
- TriggerandbindingconfigurationthroughAspireiscurrentlylimitedtospecificintegrations. See [ConnectionconfigurationwithAspire](#connection-configuration-with-aspire) fordetails.
-AspireusesOpenTelemetryformonitoring. YoucanconfigureAspiretoexporttelemetrytoAzureMonitorthroughtheservicedefaultsproject. InmanyotherAzureFunctionscontexts, youmightincludedirectintegrationwithApplicationInsightsbyregisteringthetelemetryworkerservice. ThisisnotrecommendedinAspireandcanleadtoruntimeerrorswithversion 2.22.0 of `Microsoft.ApplicationInsights.WorkerService`. YoushouldremoveanydirectApplicationInsightsintegrationsfromyourFunctionsproject when using Aspire.
-DonotconfiguretheStorageemulatorforanyconnectionsin `local.settings.json`. ManyFunctionsstartertemplatesincludetheemulatorasadefaultfor `AzureWebJobsStorage`. However, emulatorconfigurationcanpromptsomeIDEstostartaversionoftheemulatorthatcanconflictwiththeversionthatAspireuses.
1278
-
1279
-
### Connection configuration with Aspire
1280
-
1281
-
AzureFunctionsrequiresa [hoststorageconnection (`AzureWebJobsStorage`)](./functions-reference.md#connecting-to-host-storage-with-an-identity) forseveralofitscorebehaviors. Whenyoucall `AddAzureFunctionsProject<TProject>()` inyourapphostproject, adefault `AzureWebJobsStorage` connectioniscreatedandprovidedtotheFunctionsproject. ThisdefaultconnectionusestheStorageemulatorforlocaldevelopmentrunsandautomaticallyprovisionsastorageaccount when deployed. For additional control, you can replace this connection by calling `.WithHostStorage()` on the Functions project resource.
Youcanconfigureboth `WithReference()` and `WithEnvironment()` ifyouwantaconnectiontobeusedbothbyAspireclientintegrationsandthetriggersandbindingssystem.
1330
-
1331
-
Forsomeresources, thestructureofaconnectionmightbedifferentbetweenwhenyourunitlocallyandwhenyoupublishittoAzure. Inthepreviousexample, `otherIntegration` couldbearesourcethatrunsasanemulator, so `ConnectionStringExpression` wouldreturnanemulatorconnectionstring. However, whentheresourceispublished, Aspiremightsetupanidentity-basedconnection, and `ConnectionStringExpression` wouldreturntheservice's URI. In this case, to set up [identity based connections for Azure Functions](./functions-reference.md#configure-an-identity-based-connection), you might need to provide a different environment variable name. The following example uses `builder.ExecutionContext.IsPublishMode` to conditionally add the necessary suffix:
Consulteachbinding's [reference pages](./functions-triggers-bindings.md#supported-bindings) for details on the connection formats it supports and the permissions those formats require.
1222
+
[.NETAspire](/dotnet/aspire/get-started/aspire-overview) isanopinionatedstackthatsimplifiesdevelopmentofdistributedapplicationsinthecloud. Youcanenlist .NET 8 and .NET 9 isolatedworkermodelprojectsinAspire 9.0 orchestrationsusingpreviewsupport. See [AzureFunctionswith .NETAspire (Preview)](./dotnet-aspire-integration.md) formoreinformation.
1341
1223
1342
1224
## Debugging
1343
1225
@@ -1489,6 +1371,9 @@ Keep these considerations in mind when using Functions with preview versions of
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-service-bus.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ Functions 1.x apps automatically have a reference the [Microsoft.Azure.WebJobs](
67
67
68
68
This version allows you to bind to types from [Azure.Messaging.ServiceBus](/dotnet/api/azure.messaging.servicebus).
69
69
70
-
This version supports configuration of triggers and bindings through [.NET Aspire integration](./dotnet-isolated-process-guide.md#connection-configuration-with-aspire).
70
+
This version supports configuration of triggers and bindings through [.NET Aspire integration](./dotnet-aspire-integration.md#connection-configuration-with-aspire).
71
71
72
72
Add the extension to your project by installing the [NuGet package](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.ServiceBus), version 5.x.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-storage-blob.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Functions 1.x apps automatically have a reference the [Microsoft.Azure.WebJobs](
78
78
79
79
This version allows you to bind to types from [Azure.Storage.Blobs](/dotnet/api/azure.storage.blobs). Learn more about how these new types are different from `WindowsAzure.Storage` and `Microsoft.Azure.Storage` and how to migrate to them from the [Azure.Storage.Blobs Migration Guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/AzureStorageNetMigrationV12.md).
80
80
81
-
This version supports configuration of triggers and bindings through [.NET Aspire integration](./dotnet-isolated-process-guide.md#connection-configuration-with-aspire).
81
+
This version supports configuration of triggers and bindings through [.NET Aspire integration](./dotnet-aspire-integration.md#connection-configuration-with-aspire).
82
82
83
83
Add the extension to your project by installing the [Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs NuGet package], version 5.x or later.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-storage-queue.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ Functions 1.x apps automatically have a reference the [Microsoft.Azure.WebJobs](
80
80
81
81
This version allows you to bind to types from [Azure.Storage.Queues](/dotnet/api/azure.storage.queues).
82
82
83
-
This version supports configuration of triggers and bindings through [.NET Aspire integration](./dotnet-isolated-process-guide.md#connection-configuration-with-aspire).
83
+
This version supports configuration of triggers and bindings through [.NET Aspire integration](./dotnet-aspire-integration.md#connection-configuration-with-aspire).
84
84
85
85
Add the extension to your project by installing the [NuGet package](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.Storage.Queues), version 5.x.
This version supports configuration of triggers and bindings through [.NET Aspire integration](../articles/azure-functions/dotnet-isolated-process-guide.md#connection-configuration-with-aspire).
58
+
This version supports configuration of triggers and bindings through [.NET Aspire integration](../articles/azure-functions/dotnet-aspire-integration.md#connection-configuration-with-aspire).
59
59
60
60
Add the extension to your project by installing the [NuGet package](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.EventHubs), version 5.x.
0 commit comments