Skip to content

Commit 26c4a7e

Browse files
committed
addressed feedback in hosting DF on ACA article
1 parent 6c078f8 commit 26c4a7e

File tree

1 file changed

+8
-42
lines changed

1 file changed

+8
-42
lines changed

articles/azure-functions/durable/durable-functions-mssql-container-apps-hosting.md

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ ms.topic: how-to
55
ms.date: 05/06/2025
66
---
77

8-
# Host a Durable Functions app in Azure Container Apps (preview)
8+
# Host a Durable Functions app in Azure Container Apps
99

10-
While Durable Functions supports several [storage providers](./durable-functions-storage-providers.md) or *backends*, autoscaling apps hosted in Azure Container Apps is only available with the Microsoft SQL (MSSQL) backend. If another backend is used, you need to [manually set up scaling](../functions-container-apps-hosting.md#event-driven-scaling).
10+
>[!NOTE] While Durable Functions supports several [storage providers](./durable-functions-storage-providers.md) or *backends*, autoscaling apps hosted in Azure Container Apps is only available with the [Microsoft SQL (MSSQL) backend](../../container-apps/functions-overview.md.md#event-driven-scaling). If another backend is used, you have to set minimum replica count to great than zero.
1111
1212
In this article, you learn how to:
1313

@@ -78,7 +78,7 @@ Build the Docker image. Find the complete list of supported base images for Azur
7878
7979
1. When prompted, log in with your username and password. A "Login Succeeded" message confirms that you're signed in.
8080
81-
1. Navigate to the `LocalFunctionProj` project folder.
81+
1. Navigate to your project root directory.
8282
8383
1. Run the following command to build the image, replacing `<DOCKER_ID>` with your Docker Hub account ID:
8484
@@ -87,7 +87,7 @@ Build the Docker image. Find the complete list of supported base images for Azur
8787
imageName=IMAGE_NAME>
8888
imageVersion=v1.0.0
8989
90-
docker build --platform linux --tag $dockerId/$imageName:$imageVersion .
90+
docker build --tag $dockerId/$imageName:$imageVersion .
9191
```
9292
9393
> [!NOTE]
@@ -108,7 +108,6 @@ Create the Azure resources necessary for running Durable Functions on a containe
108108
- **Azure Container App environment:** Environment hosting the container app.
109109
- **Azure Container App:** Image containing the Durable Functions app is deployed to this app.
110110
- **Azure Storage Account:** Required by the function app to store app-related data, such as application code.
111-
- **A virtual network:** Required by the Azure Container App environment.
112111
113112
### Initial set up
114113
@@ -117,7 +116,7 @@ Create the Azure resources necessary for running Durable Functions on a containe
117116
```azurecli
118117
az login
119118
120-
az account set -subscription | -s <subscription_name>
119+
az account set -s <subscription_name>
121120
```
122121
123122
1. Run the required commands to set up the Azure Container Apps CLI extension:
@@ -153,34 +152,6 @@ A [workload profile](../functions-container-apps-hosting.md#hosting-and-workload
153152
az group create --name $resourceGroup --location $location
154153
```
155154
156-
1. Create a virtual network, which is required for a container app environment.
157-
158-
```azurecli
159-
az network vnet create --resource-group $resourceGroup --name $vnet --location $location --address-prefix 10.0.0.0/16
160-
```
161-
162-
1. Create a subnet for the environment deployment.
163-
164-
```azurecli
165-
az network vnet subnet create \
166-
--resource-group $resourceGroup \
167-
--vnet-name $vnet \
168-
--name infrastructure-subnet \
169-
--address-prefixes 10.0.0.0/23
170-
```
171-
172-
1. Run the following query to get the subnet ID.
173-
174-
```azurecli
175-
subnetId=$(az network vnet subnet show --resource-group $resourceGroup --vnet-name $vnet --name infrastructure-subnet --query "id" -o tsv | tr -d '[:space:]')
176-
```
177-
178-
1. Delegate the subnet to `Microsoft.App/environments`.
179-
180-
```azurecli
181-
az network vnet subnet update --resource-group $resourceGroup --vnet-name $vnet --name infrastructure-subnet --delegations Microsoft.App/environments
182-
```
183-
184155
1. Create the container app environment.
185156
186157
```azurecli
@@ -200,9 +171,6 @@ A [workload profile](../functions-container-apps-hosting.md#hosting-and-workload
200171
--environment $containerAppEnv \
201172
--image $dockerId/$imageName:$imageVersion \
202173
--ingress external \
203-
--allow-insecure \
204-
--target-port 80 \
205-
--transport auto \
206174
--kind functionapp \
207175
--query properties.outputs.fqdn
208176
```
@@ -297,11 +265,9 @@ Authenticating to the MSSQL database using managed identity isn't supported when
297265
1. Store the SQL database's connection string as a [secret](../../container-apps/manage-secrets.md) called *sqldbconnection* in the container app.
298266
299267
```azurecli
300-
az containerapp create \
268+
az containerapp secret set \
301269
--resource-group $resourceGroup \
302270
--name $functionApp \
303-
--environment $containerAppEnv \
304-
--image $dockerId/$imageName:$imageVersion \
305271
--secrets sqldbconnection=$connStr
306272
```
307273
@@ -323,7 +289,7 @@ Authenticating to the MSSQL database using managed identity isn't supported when
323289
1. Use an HTTP test tool to send a `POST` request to the HTTP trigger endpoint, which should be similar to:
324290
325291
```
326-
https://<APP NAME>.victoriouswave-3866c33e.<REGION>.azurecontainerapps.io/api/DurableFunctionsOrchestrationCSharp1_HttpStart
292+
https://<APP NAME>.<ENVIRONMENT_IDENTIFIER>.<REGION>.azurecontainerapps.io/api/DurableFunctionsOrchestrationCSharp1_HttpStart
327293
```
328294
329295
The response is the HTTP function's initial result letting you know that the Durable Functions orchestration started successfully. While the response includes a few useful URLs, it doesn't yet display the orchestration's end result.
@@ -348,6 +314,6 @@ Authenticating to the MSSQL database using managed identity isn't supported when
348314
## Next steps
349315
350316
Learn more about:
351-
- [Azure Container Apps hosting of Azure Functions](../functions-container-apps-hosting.md).
317+
- [Azure Container Apps hosting of Azure Functions](../../container-apps/functions-overview.md).
352318
- [MSSQL storage provider](https://microsoft.github.io/durabletask-mssql/) architecture, configuration, and workload behavior.
353319
- The Azure-managed storage backend, [Durable Task Scheduler](./durable-task-scheduler/durable-task-scheduler.md).

0 commit comments

Comments
 (0)