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
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.
18
18
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.
20
20
21
-
- Validate any changes in a deployment slot before you apply those changes to the production slot.
21
+
Deployment slots provide the following benefits:
22
22
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.
23
25
- Roll back to a previous version, if anything goes wrong with your deployment.
24
-
25
26
- 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).
26
27
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).
28
29
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":::
30
31
31
32
### Known issues and limitations
32
33
33
34
- Nonproduction slots are created in read-only mode.
34
-
35
35
- The nonproduction slots dispatcher is turned off, which means that workflows can only run when they're in the production slot.
36
-
37
36
- Traffic distribution is disabled for deployment slots in Standard logic apps.
38
-
39
37
- Deployment slots for Standard logic apps don't support the following scenarios:
40
38
41
39
- Blue-green deployment
@@ -53,11 +51,11 @@ With deployment slots, you can achieve continuous delivery and improve your appl
53
51
54
52
- 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).
55
53
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.
57
55
58
56
-[Azure Logic Apps Standard Contributor role permissions](logic-apps-securing-a-logic-app.md?tabs=azure-portal#standard-workflows)
59
57
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).
61
59
62
60
## Create a deployment slot
63
61
@@ -66,42 +64,39 @@ The following options are available for you to create a deployment slot:
66
64
### [Portal](#tab/portal)
67
65
68
66
1. In [Azure portal](https://portal.azure.com), open your Standard logic app resource where you want to create a deployment slot.
69
-
70
67
1. On the resource menu, under **Deployment**, select **Deployment slots**.
71
-
72
68
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 (**-**).
75
70
76
71
> [!NOTE]
77
72
>
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*>.
79
74
80
75
1. When you're done, select **Add**.
81
76
82
77
### [Visual Studio Code](#tab/visual-studio-code)
83
78
84
79
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:
89
82
90
83
1. Enter and select the name for your Azure subscription.
91
-
92
84
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 (**-**),
az functionapp identity assign --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name}
99
+
```
105
100
106
101
---
107
102
@@ -110,9 +105,7 @@ To enable a system-assigned managed identity on your Standard logic app deployme
110
105
After you create the deployment slot, confirm that the slot exists on your deployed logic app resource.
111
106
112
107
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
113
-
114
108
1. On the resource menu, under **Deployment**, select **Deployment slots**.
115
-
116
109
1. On the **Deployment slots** page, under **Deployment Slots**, find and select your new deployment slot.
117
110
118
111
> [!NOTE]
@@ -125,20 +118,16 @@ The following options are available for you to deploy logic app changes in a dep
125
118
126
119
### [Portal](#tab/portal)
127
120
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.
129
122
130
123
### [Visual Studio Code](#tab/visual-studio-code)
131
124
132
125
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:
137
128
138
129
1. Enter and select the name for your Azure subscription.
139
-
140
130
1. Enter and select the name for your existing Standard logic app in Azure.
141
-
142
131
1. Select the name for your deployment slot.
143
132
144
133
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
@@ -158,14 +149,11 @@ Run the following Azure CLI command:
158
149
After you deploy your changes, confirm that the changes appear in your deployed logic app resource.
159
150
160
151
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
161
-
162
152
1. On the resource menu, under **Deployment**, select **Deployment slots**.
163
-
164
153
1. On the **Deployment slots** page, under **Deployment Slots**, find and select your deployment slot.
165
-
166
154
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:
167
155
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":::
169
157
170
158
1. To verify the changes in your workflow, under **Workflows**, select **Workflows**, and then select a workflow, which appears in read-only view.
171
159
@@ -176,48 +164,38 @@ The following options are available for you to swap a deployment slot with the c
176
164
### [Portal](#tab/portal)
177
165
178
166
1. In [Azure portal](https://portal.azure.com), open your Standard logic app resource where you want to swap slots.
179
-
180
167
1. On the resource menu, under **Deployment**, select **Deployment slots**.
181
-
182
168
1. On the toolbar, select **Swap**.
183
-
184
169
1. On the **Swap** pane, under **Source**, select the deployment slot that you want to activate.
185
-
186
170
1. Under **Target**, select the production slot that you want to replace with the deployment slot.
187
171
188
172
> [!NOTE]
189
173
>
190
174
> **Perform swap with preview** works only with logic apps that enabled deployment slot settings.
191
175
192
176
1. Under **Config Changes**, review the configuration changes for the source and target slots.
193
-
194
177
1. When you're ready, select **Start Swap**.
195
-
196
178
1. Wait for the operation to successfully complete.
197
179
198
180
### [Visual Studio Code](#tab/visual-studio-code)
199
181
200
182
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:
205
185
206
186
1. Enter and select the name for your Azure subscription.
207
-
208
187
1. Enter and select the name for your existing Standard logic app in Azure.
209
-
210
188
1. Select the deployment slot that you want to make as the active slot.
211
-
212
189
1. Select the production slot that you want to swap with the deployment slot.
213
-
214
190
1. Wait for the operation to successfully complete.
az functionapp deployment slot swap --name {logic-app-name} --resource-group {resource-group-name} --slot {slot-name} --target-slot production
198
+
```
221
199
222
200
---
223
201
@@ -236,31 +214,22 @@ The following options are available for you to delete a deployment slot from you
236
214
### [Portal](#tab/portal)
237
215
238
216
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
239
-
240
217
1. On the resource menu, under **Deployment**, select **Deployment slots**.
241
-
242
218
1. On the **Deployment slots** page, under **Deployment Slots**, select the deployment slot that you want to delete.
243
-
244
219
1. On the deployment slot resource menu, select **Overview**.
245
-
246
220
1. On the **Overview** toolbar, select **Delete**.
247
-
248
221
1. Confirm deletion by entering the deployment slot name, and then select **Delete**.
249
222
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":::
251
224
252
225
### [Visual Studio Code](#tab/visual-studio-code)
253
226
254
227
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:
259
230
260
231
1. Enter and select the name for your Azure subscription.
261
-
262
232
1. Enter and select the name for your existing Standard logic app in Azure.
263
-
264
233
1. Select the deployment slot that you want to delete.
265
234
266
235
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
0 commit comments