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
> If your traffic requirement needs more than 125 instances, you can use Azure Traffic Manager or Azure Front Door in front of your Application Gateway. For more information, please see [Connect Azure Front Door Premium to an Azure Application Gateway with Private Link](../frontdoor/how-to-enable-private-link-application-gateway.md) and [Use Azure App Gateway with Azure Traffic Manager](../traffic-manager/traffic-manager-use-with-application-gateway.md)
47
+
45
48
### Set your minimum instance count based on your average Compute Unit usage
46
49
47
50
For Application Gateway v2 SKU, autoscaling takes three to five minutes to scale out and provision additional set of instances ready to take traffic. Until then, if there are short spikes in traffic, your existing gateway instances might get under stress and this may cause unexpected latency or loss of traffic.
title: Create an Azure Compute Fleet using Azure CLI
3
+
description: Learn how to create an Azure Compute Fleet using Azure CLI.
4
+
author: ykh015
5
+
ms.author: yakhande
6
+
ms.topic: how-to
7
+
ms.service: azure-compute-fleet
8
+
ms.date: 05/09/2025
9
+
ms.reviewer: jushiman
10
+
ms.custom: devx-track-azurecli
11
+
---
12
+
13
+
# Create an Azure Compute Fleet using Azure CLI
14
+
15
+
This article steps through using the Azure CLI to create and deploy a Compute Fleet resource
16
+
17
+
Make sure that you've installed the latest [Azure CLI](/cli/azure/install-az-cli2) and are logged in to an Azure account with [az login](/cli/azure/reference-index).
18
+
19
+
## Launch Azure Cloud Shell
20
+
21
+
The Azure Cloud Shell is a free interactive shell that you can use to run the steps in this article. It has common Azure tools preinstalled and configured to use with your account.
22
+
23
+
To open the Cloud Shell, select **Open Cloud Shell** from the upper right corner of a code block. You can also launch Cloud Shell in a separate browser tab by going to [https://shell.azure.com/cli](https://shell.azure.com/cli). Select **Copy** to copy the blocks of code, paste it into the Cloud Shell, and press enter to run it.
24
+
25
+
## Prerequisites
26
+
27
+
- If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
28
+
- Before using Compute Fleet, complete the feature registration and configure role-based access controls (RBAC).
29
+
30
+
## Feature registration
31
+
32
+
Register the Azure Compute Fleet resource provider with your subscription using Azure CLI. Registration can take up to 30 minutes to successfully show as registered.
33
+
34
+
```azurecli-interactive
35
+
az provider register --namespace 'Microsoft.AzureFleet'
A resource group is a logical container into which Azure resources are deployed and managed. All resources must be placed in a resource group. The following command creates a resource group with the previously defined `$MY_RESOURCE_GROUP_NAME` and `$REGION` parameters.
58
+
59
+
```azurecli-interactive
60
+
az group create --name $MY_RESOURCE_GROUP_NAME --location $REGION
61
+
```
62
+
63
+
## Create virtual network and subnet
64
+
65
+
Now you'll create a virtual network using the previously defined `$MY_VNET_PREFIX`, `$MY_VM_SN_NAME`, and `$MY_VM_SN_PREFIX` parameters.
export MY_SUBNET_ID="$(az network vnet subnet show \
75
+
--resource-group $MY_RESOURCE_GROUP_NAME \
76
+
--vnet-name $MY_VNET_NAME \
77
+
--name $MY_VM_SN_NAME \
78
+
--query id --output tsv)"
79
+
```
80
+
81
+
## Set up the admin password
82
+
83
+
Set up a password that meets the [password requirements for Azure VMs](https://learn.microsoft.com/azure/virtual-machines/windows/faq#what-are-the-password-requirements-when-creating-a-vm-).
84
+
85
+
```bash
86
+
export ADMIN_PASSWORD="Azure compliant password"
87
+
```
88
+
89
+
## Create a Compute Fleet
90
+
91
+
Set up the compute profile which is applied to the underlying VMs.
az compute-fleet create --name $MY_FLEET_NAME --resource-group $MY_RESOURCE_GROUP_NAME --location $REGION \
99
+
--spot-priority-profile "{ 'capacity': 5 }" \
100
+
--regular-priority-profile "{ 'capacity': 5 }" \
101
+
--compute-profile "$COMPUTE_PROFILE" \
102
+
--vm-sizes-profile "[{ 'name': 'Standard_F1s' }]"
103
+
```
104
+
105
+
## Clean up resources (optional)
106
+
107
+
To avoid Azure charges, you should clean up unneeded resources. When you no longer need your Compute Fleet and other resources, delete the resource group and all its resources with [az group delete](/cli/azure/group). The `--no-wait` parameter returns control to the prompt without waiting for the operation to complete. The `--yes` parameter confirms that you wish to delete the resources without another prompt to do so.
108
+
109
+
## Next steps
110
+
> [!div class="nextstepaction"]
111
+
> [Learn how to modify a Compute Fleet.](modify-fleet.md)
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/durable-functions-mssql-container-apps-hosting.md
+16-48Lines changed: 16 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,12 @@ ms.topic: how-to
5
5
ms.date: 05/06/2025
6
6
---
7
7
8
-
# Host a Durable Functions app in Azure Container Apps (preview)
8
+
# Host a Durable Functions app in Azure Container Apps (.NET isolated)
9
9
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
+
Azure Functions provides integrated support for developing, deploying, and managing containerized Function Apps on Azure Container Apps. Use Azure Container Apps for your Functions apps when you need to run in the same environment as other microservices, APIs, websites, workflows, or any container hosted programs. Learn more about [running Azure Functions in Container Apps](../../container-apps/functions-overview.md).
11
+
12
+
> [!NOTE]
13
+
> 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#event-driven-scaling). If another backend is used, you have to set minimum replica count to greater than zero.
11
14
12
15
In this article, you learn how to:
13
16
@@ -78,7 +81,7 @@ Build the Docker image. Find the complete list of supported base images for Azur
78
81
79
82
1. When prompted, log in with your username and password. A "Login Succeeded" message confirms that you're signed in.
80
83
81
-
1. Navigate to the `LocalFunctionProj` project folder.
84
+
1. Navigate to your project root directory.
82
85
83
86
1. Run the following command to build the image, replacing `<DOCKER_ID>` with your Docker Hub account ID:
84
87
@@ -87,7 +90,7 @@ Build the Docker image. Find the complete list of supported base images for Azur
87
90
imageName=IMAGE_NAME>
88
91
imageVersion=v1.0.0
89
92
90
-
docker build --platform linux --tag $dockerId/$imageName:$imageVersion .
1. Assign the role `Storage Blob Data Owner` role for access to the storage account.
237
+
1. Assign the role **Storage Blob Data Owner** role for access to the storage account.
268
238
269
239
```azurecli
270
240
echo "Assign Storage Blob Data Owner role to identity"
271
241
az role assignment create --assignee "$clientId" --role "Storage Blob Data Owner" --scope "$scope"
272
242
```
273
243
274
244
### Set up app settings
275
-
276
-
Authenticating to the MSSQL database using managed identity isn't supported when hosting a Durable Functions app in Azure Container Apps. For now, this guide authenticates using connection strings.
245
+
> [!NOTE]
246
+
> Authenticating to the MSSQL database using managed identity isn't supported when hosting a Durable Functions app in Azure Container Apps. For now, this guide authenticates using connection strings.
277
247
278
248
1. From the SQL database resource in the Azure portal, navigate to **Settings** > **Connection strings** to find the connection string.
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 +316,6 @@ Authenticating to the MSSQL database using managed identity isn't supported when
348
316
## Next steps
349
317
350
318
Learn more about:
351
-
- [Azure Container Apps hosting of Azure Functions](../functions-container-apps-hosting.md).
319
+
- [Azure Container Apps hosting of Azure Functions](../../container-apps/functions-overview.md).
352
320
- [MSSQL storage provider](https://microsoft.github.io/durabletask-mssql/) architecture, configuration, and workload behavior.
353
321
- The Azure-managed storage backend, [Durable Task Scheduler](./durable-task-scheduler/durable-task-scheduler.md).
0 commit comments