Skip to content

Commit 041e6eb

Browse files
Freshness.
1 parent ed83899 commit 041e6eb

4 files changed

Lines changed: 42 additions & 73 deletions

File tree

2.71 KB
Loading
-14.6 KB
Loading
14.1 KB
Loading

articles/logic-apps/set-up-deployment-slots.md

Lines changed: 42 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Enable deployment slots for zero downtime deployment
3-
description: Set up deployment slots to enable zero downtime deployment for Standard workflows in Azure Logic Apps.
2+
title: Enable Deployment Slots for Zero Downtime Deployment
3+
description: Learn how to set up deployment slots to enable zero downtime deployment for Standard workflows in Azure Logic Apps.
44
services: logic-apps
55
ms.suite: integration
6-
ms.reviewer: estfan, wsilveira, azla
6+
ms.reviewer: estfan, wsilveira
77
ms.topic: how-to
8-
ms.date: 06/09/2025
8+
ms.date: 08/25/2025
99

1010
#Customer intent: As a logic app developer, I want to set up deployment slots on my logic app resource so that I can deploy with zero downtime.
1111
---
@@ -14,28 +14,26 @@ ms.date: 06/09/2025
1414

1515
[!INCLUDE [logic-apps-sku-standard](../../includes/logic-apps-sku-standard.md)]
1616

17-
To deploy mission-critical logic apps that are always available and responsive, even during updates or maintenance, you can enable zero downtime deployment by creating and using deployment slots. Zero downtime means that when you deploy new versions of your app, end users shouldn't experience disruption or downtime. Deployment slots are isolated nonproduction environments that host different versions of your app and provide the following benefits:
17+
To deploy mission-critical logic apps that are always available and responsive, create and use *deployment slots*. Deployment slots are isolated environments that host different versions of your app.
1818

19-
- Swap a deployment slot with your production slot without interruption. That way, you can update your logic app and workflows without affecting availability or performance.
19+
You can enable zero downtime deployment for your app, even during updates or maintenance. Zero downtime means that when you deploy new versions of your app, end users don't experience disruption or downtime.
2020

21-
- Validate any changes in a deployment slot before you apply those changes to the production slot.
21+
Deployment slots provide the following benefits:
2222

23+
- Swap a deployment slot with your production slot without interruption. That way, you can update your logic app and workflows without affecting availability or performance.
24+
- Validate any changes in a deployment slot before you apply those changes to the production slot.
2325
- Roll back to a previous version, if anything goes wrong with your deployment.
24-
2526
- Reduce the risk of negative performance when you must exceed the [recommended number of workflows per logic app](create-single-tenant-workflows-azure-portal.md#best-practices-and-recommendations).
2627

27-
With deployment slots, you can achieve continuous delivery and improve your applications' quality and reliability. For more information about deployment slots in Azure and because Standard logic app workflows are based on Azure Functions extensibility, see [Azure Functions deployment slots](../azure-functions/functions-deployment-slots.md).
28+
With deployment slots, you can achieve continuous delivery and improve the quality and reliability of your app. For more information about deployment slots in Azure and because Standard logic app workflows are based on Azure Functions extensibility, see [Azure Functions deployment slots](../azure-functions/functions-deployment-slots.md).
2829

29-
:::image type="content" source="media/set-up-deployment-slots/overview.png" alt-text="Screenshot shows Azure portal, Standard logic app resource, and deployment slots page." lightbox="media/set-up-deployment-slots/overview.png":::
30+
:::image type="content" source="media/set-up-deployment-slots/overview.png" alt-text="Screenshot shows the Azure portal, Standard logic app resource, and deployment slots page." lightbox="media/set-up-deployment-slots/overview.png":::
3031

3132
### Known issues and limitations
3233

3334
- Nonproduction slots are created in read-only mode.
34-
3535
- The nonproduction slots dispatcher is turned off, which means that workflows can only run when they're in the production slot.
36-
3736
- Traffic distribution is disabled for deployment slots in Standard logic apps.
38-
3937
- Deployment slots for Standard logic apps don't support the following scenarios:
4038

4139
- Blue-green deployment
@@ -53,11 +51,11 @@ With deployment slots, you can achieve continuous delivery and improve your appl
5351

5452
- An Azure account and subscription. If you don't have a subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
5553

56-
- To work in Visual Studio Code with the Azure Logic Apps (Standard) extension, you'll need to meet the prerequisites described in [Create Standard workflows with Visual Studio Code](create-single-tenant-workflows-visual-studio-code.md#prerequisites). You'll also need a Standard logic app project that you want to publish to Azure.
54+
- To work in Visual Studio Code with the Azure Logic Apps (Standard) extension, you need to meet the prerequisites described in [Create Standard workflows with Visual Studio Code](create-single-tenant-workflows-visual-studio-code.md#prerequisites). You also need a Standard logic app project that you want to publish to Azure.
5755

5856
- [Azure Logic Apps Standard Contributor role permissions](logic-apps-securing-a-logic-app.md?tabs=azure-portal#standard-workflows)
5957

60-
- An existing Standard logic app resource in Azure where you want to create your deployment slot and deploy your changes. You can create an empty Standard logic app resource without any workflows. For more information, see [Create example Standard workflow in single-tenant Azure Logic Apps](create-single-tenant-workflows-azure-portal.md).
58+
- An existing Standard logic app resource in Azure where you want to create your deployment slot and deploy your changes. You can create an empty Standard logic app resource. For more information, see [Create a Standard workflow in Azure Logic Apps](create-single-tenant-workflows-azure-portal.md).
6159

6260
## Create a deployment slot
6361

@@ -66,42 +64,39 @@ The following options are available for you to create a deployment slot:
6664
### [Portal](#tab/portal)
6765

6866
1. In [Azure portal](https://portal.azure.com), open your Standard logic app resource where you want to create a deployment slot.
69-
7067
1. On the resource menu, under **Deployment**, select **Deployment slots**.
71-
7268
1. On the toolbar, select **Add**.
73-
74-
1. In the **Add Slot** pane, provide a name, which must be unique and uses only lowercase alphanumeric characters or hyphens (**-**), for your deployment slot.
69+
1. In the **Add Slot** pane, provide a name for your deployment slot. It must be unique and use only lowercase alphanumeric characters or hyphens (**-**).
7570

7671
> [!NOTE]
7772
>
78-
> After creation, your deployment slot name uses the following format: <*logic-app-name-deployment-slot-name*>.
73+
> After you create it, the deployment slot name uses the following format: <*logic-app-name-deployment-slot-name*>.
7974
8075
1. When you're done, select **Add**.
8176

8277
### [Visual Studio Code](#tab/visual-studio-code)
8378

8479
1. In Visual Studio Code, open the Standard logic app project that you want to deploy.
85-
86-
1. Open the command palette. (Keyboard: Ctrl + Shift + P)
87-
88-
1. From the command list, select **Azure Logic Apps: Create Slot**, and follow the prompts to provide the required information:
80+
1. Open the command palette. (Keyboard: **Ctrl** + **Shift** + **P**)
81+
1. From the command list, select **Azure Logic Apps: Create slot**. Follow the prompts to provide the required information:
8982

9083
1. Enter and select the name for your Azure subscription.
91-
9284
1. Enter and select the name for your existing Standard logic app in Azure.
93-
94-
1. Enter a name, which must be unique and uses only lowercase alphanumeric characters or hyphens (**-**), for your deployment slot.
85+
1. Enter a name for your deployment slot. It must be unique and use only lowercase alphanumeric characters or hyphens (**-**),
9586

9687
### [Azure CLI](#tab/azure-cli)
9788

9889
Run the following Azure CLI command:
9990

100-
`az functionapp deployment slot create --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name}`
91+
```azurecli
92+
az functionapp deployment slot create --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name}
93+
```
10194

10295
To enable a system-assigned managed identity on your Standard logic app deployment slot, run the following Azure CLI command:
10396

104-
`az functionapp identity assign --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name}`
97+
```azurecli
98+
az functionapp identity assign --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name}
99+
```
105100

106101
---
107102

@@ -110,9 +105,7 @@ To enable a system-assigned managed identity on your Standard logic app deployme
110105
After you create the deployment slot, confirm that the slot exists on your deployed logic app resource.
111106

112107
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
113-
114108
1. On the resource menu, under **Deployment**, select **Deployment slots**.
115-
116109
1. On the **Deployment slots** page, under **Deployment Slots**, find and select your new deployment slot.
117110

118111
> [!NOTE]
@@ -125,20 +118,16 @@ The following options are available for you to deploy logic app changes in a dep
125118

126119
### [Portal](#tab/portal)
127120

128-
Unavailable at this time. Please follow the steps for Visual Studio Code or Azure CLI to deploy your changes.
121+
Unavailable at this time. Follow the steps for Visual Studio Code or Azure CLI to deploy your changes.
129122

130123
### [Visual Studio Code](#tab/visual-studio-code)
131124

132125
1. In Visual Studio Code, open the Standard logic app project that you want to deploy.
133-
134-
1. Open the command palette. (Keyboard: Ctrl + Shift + P)
135-
136-
1. From the command list, select **Azure Logic Apps: Deploy to Slot**, and follow the prompts to provide the required information:
126+
1. Open the command palette. (Keyboard: **Ctrl** + **Shift** + **P**)
127+
1. From the command list, select **Azure Logic Apps: Deploy to slot**, and follow the prompts to provide the required information:
137128

138129
1. Enter and select the name for your Azure subscription.
139-
140130
1. Enter and select the name for your existing Standard logic app in Azure.
141-
142131
1. Select the name for your deployment slot.
143132

144133
1. In the message box that appears, confirm that you want to deploy the current code in your project to the selected slot by selecting **Deploy**. This action overwrites any existing content in the selected slot.
@@ -149,7 +138,9 @@ Unavailable at this time. Please follow the steps for Visual Studio Code or Azur
149138

150139
Run the following Azure CLI command:
151140

152-
`az logicapp deployment source config-zip --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name} --src {deployment-package-local-path}`
141+
```azurecli
142+
az logicapp deployment source config-zip --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name} --src {deployment-package-local-path}
143+
```
153144

154145
---
155146

@@ -158,14 +149,11 @@ Run the following Azure CLI command:
158149
After you deploy your changes, confirm that the changes appear in your deployed logic app resource.
159150

160151
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
161-
162152
1. On the resource menu, under **Deployment**, select **Deployment slots**.
163-
164153
1. On the **Deployment slots** page, under **Deployment Slots**, find and select your deployment slot.
165-
166154
1. On the resource menu, select **Overview**. On the **Notifications** tab, check whether any deployment issues exist, for example, errors that might happen during app startup or around slot swapping:
167155

168-
:::image type="content" source="media/set-up-deployment-slots/deployment-slot-notifications.png" alt-text="Screenshot shows Azure portal, logic app deployment slot resource with Overview page, and selected Notifications tab." lightbox="media/set-up-deployment-slots/deployment-slot-notifications.png":::
156+
:::image type="content" source="media/set-up-deployment-slots/deployment-slot-notifications.png" alt-text="Screenshot shows the Azure portal, logic app deployment slot resource with Overview page, and selected Notifications tab." lightbox="media/set-up-deployment-slots/deployment-slot-notifications.png":::
169157

170158
1. To verify the changes in your workflow, under **Workflows**, select **Workflows**, and then select a workflow, which appears in read-only view.
171159

@@ -176,48 +164,38 @@ The following options are available for you to swap a deployment slot with the c
176164
### [Portal](#tab/portal)
177165

178166
1. In [Azure portal](https://portal.azure.com), open your Standard logic app resource where you want to swap slots.
179-
180167
1. On the resource menu, under **Deployment**, select **Deployment slots**.
181-
182168
1. On the toolbar, select **Swap**.
183-
184169
1. On the **Swap** pane, under **Source**, select the deployment slot that you want to activate.
185-
186170
1. Under **Target**, select the production slot that you want to replace with the deployment slot.
187171

188172
> [!NOTE]
189173
>
190174
> **Perform swap with preview** works only with logic apps that enabled deployment slot settings.
191175
192176
1. Under **Config Changes**, review the configuration changes for the source and target slots.
193-
194177
1. When you're ready, select **Start Swap**.
195-
196178
1. Wait for the operation to successfully complete.
197179

198180
### [Visual Studio Code](#tab/visual-studio-code)
199181

200182
1. In Visual Studio Code, open your Standard logic app project.
201-
202-
1. Open the command palette. (Keyboard: Ctrl + Shift + P)
203-
204-
1. From the command list, select **Azure Logic Apps: Swap Slot**, and follow the prompts to provide the required information:
183+
1. Open the command palette. (Keyboard: **Ctrl** + **Shift** + **P**)
184+
1. From the command list, select **Azure Logic Apps: Swap slot**, and follow the prompts to provide the required information:
205185

206186
1. Enter and select the name for your Azure subscription.
207-
208187
1. Enter and select the name for your existing Standard logic app in Azure.
209-
210188
1. Select the deployment slot that you want to make as the active slot.
211-
212189
1. Select the production slot that you want to swap with the deployment slot.
213-
214190
1. Wait for the operation to successfully complete.
215191

216192
### [Azure CLI](#tab/azure-cli)
217193

218194
Run the following Azure CLI command:
219195

220-
`az functionapp deployment slot swap --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name} --target-slot production`
196+
```azurecli
197+
az functionapp deployment slot swap --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name} --target-slot production
198+
```
221199

222200
---
223201

@@ -236,31 +214,22 @@ The following options are available for you to delete a deployment slot from you
236214
### [Portal](#tab/portal)
237215

238216
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
239-
240217
1. On the resource menu, under **Deployment**, select **Deployment slots**.
241-
242218
1. On the **Deployment slots** page, under **Deployment Slots**, select the deployment slot that you want to delete.
243-
244219
1. On the deployment slot resource menu, select **Overview**.
245-
246220
1. On the **Overview** toolbar, select **Delete**.
247-
248221
1. Confirm deletion by entering the deployment slot name, and then select **Delete**.
249222

250-
:::image type="content" source="media/set-up-deployment-slots/delete-deployment-slot.png" alt-text="Screenshot shows Azure portal, deployment slot resource with Overview page opened, and delete confirmation pane with deployment slot name to delete." lightbox="media/set-up-deployment-slots/delete-deployment-slot.png":::
223+
:::image type="content" source="media/set-up-deployment-slots/delete-deployment-slot.png" alt-text="Screenshot shows the Azure portal, deployment slot resource with Overview page opened, and delete confirmation pane with deployment slot name to delete." lightbox="media/set-up-deployment-slots/delete-deployment-slot.png":::
251224

252225
### [Visual Studio Code](#tab/visual-studio-code)
253226

254227
1. In Visual Studio Code, open your Standard logic app project.
255-
256-
1. Open the command palette. (Keyboard: Ctrl + Shift + P)
257-
258-
1. From the command list, select **Azure Logic Apps: Delete Slot**, and follow the prompts to provide the required information:
228+
1. Open the command palette. (Keyboard: **Ctrl** + **Shift** + **P**)
229+
1. From the command list, select **Azure Logic Apps: Delete slot**, and follow the prompts to provide the required information:
259230

260231
1. Enter and select the name for your Azure subscription.
261-
262232
1. Enter and select the name for your existing Standard logic app in Azure.
263-
264233
1. Select the deployment slot that you want to delete.
265234

266235
1. In the message box that appears, confirm that you want to delete selected deployment slot by selecting **Delete**.
@@ -269,7 +238,9 @@ The following options are available for you to delete a deployment slot from you
269238

270239
Run the following Azure CLI command:
271240

272-
`az functionapp deployment slot delete --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name} --target-slot production`
241+
```azurecli
242+
az functionapp deployment slot delete --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name} --target-slot production
243+
```
273244

274245
---
275246

@@ -278,9 +249,7 @@ Run the following Azure CLI command:
278249
After you delete a deployment slot, verify that the slot no longer exists on your deployed Standard logic app resource.
279250

280251
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
281-
282252
1. On the resource menu, under **Deployment**, select **Deployment slots**.
283-
284253
1. On the **Deployment slots** page, under **Deployment Slots**, confirm that the deployment slot no longer exists.
285254

286255
## Related content

0 commit comments

Comments
 (0)