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
Copy file name to clipboardExpand all lines: src/frontend/src/content/docs/integrations/cloud/azure/azure-functions.mdx
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,11 @@ The Aspire Azure Functions hosting integration models Azure Functions projects a
109
109
110
110
### Add Azure Functions resource
111
111
112
-
In your AppHost project, call `AddAzureFunctionsProject` on the `builder` instance to add an Azure Functions resource:
112
+
In your AppHost project, call `AddAzureFunctionsProject` on the `builder` instance to add an Azure Functions resource. There are two ways to add an Azure Functions project, depending on whether the Functions project is referenced in your AppHost project.
113
+
114
+
#### Add a referenced Functions project
115
+
116
+
If the Azure Functions project is referenced in your AppHost project, use the generic overload of `AddAzureFunctionsProject`:
When Aspire adds an Azure Functions project resource the AppHost, as shown in the preceding example, the `functions` resource can be referenced by other project resources. The `WithReference` method configures a connection in the `ExampleProject` named `"functions"`. If the Azure Resource was deployed and it exposed an HTTP trigger, its endpoint would be external due to the call to `WithExternalHttpEndpoints`.
131
+
#### Add a Functions project by file path
132
+
133
+
If the Azure Functions project is not referenced in your AppHost project, you can add it by specifying the path to the project file:
In the preceding example, the path to the Functions project file is relative to the AppHost project directory. If the path is not absolute, it will be resolved relative to the AppHost directory.
149
+
150
+
---
151
+
152
+
When Aspire adds an Azure Functions project resource to the AppHost, as shown in the preceding examples, the `functions` resource can be referenced by other project resources. The `WithReference` method configures a connection in the `ExampleProject` named `"functions"`. If the Azure Resource was deployed and it exposed an HTTP trigger, its endpoint would be external due to the call to `WithExternalHttpEndpoints`.
128
153
129
154
### Add Azure Functions resource with host storage
0 commit comments