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: articles/logic-apps/set-up-devops-deployment-single-tenant-azure-logic-apps.md
+31-28Lines changed: 31 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,26 +85,45 @@ For example, the following diagram shows the dependencies between a Standard log
85
85
86
86
<aname="deploy-logic-app-resources"></a>
87
87
88
-
## Deploy logic app resources (zip deploy)
88
+
## Build and deploy logic app (zip deploy)
89
89
90
90
If you have a Standard logic app project, push that project and artifact files to your source repository. You can then set up build and release pipelines either inside or outside Azure that deploy Standard logic apps to your infrastructure.
91
91
92
92
### Build your project
93
93
94
-
To set up a build pipeline based on your logic app project type, complete the corresponding actions in the following table:
95
-
96
-
| Project type | Description and steps |
97
-
|--------------|-----------------------|
98
-
| Nuget-based | The NuGet-based project structure is based on the .NET Framework. To build these projects, make sure to follow the build steps for .NET Standard. For more information, review the documentation for [Create a NuGet package using MSBuild](/nuget/create-packages/creating-a-package-msbuild). |
99
-
| Bundle-based | The extension bundle-based project isn't language-specific and doesn't require any language-specific build steps. You can use any method to zip your project files. <br><br>**Important**: Make sure that your zip file contains the actual build artifacts, including all workflow folders, configuration files such as **host.json**, **connections.json**, and any other related files. |
94
+
1. To set up a build pipeline based on your logic app project type, complete the corresponding actions in the following table:
95
+
96
+
| Project type | Description and steps |
97
+
|--------------|-----------------------|
98
+
| Nuget-based | The NuGet-based project structure is based on the .NET Framework. To build these projects, make sure to follow the build steps for .NET Standard. For more information, review the documentation for [Create a NuGet package using MSBuild](/nuget/create-packages/creating-a-package-msbuild). |
99
+
| Bundle-based | The extension bundle-based project isn't language-specific and doesn't require any language-specific build steps. |
100
+
101
+
1. Zip your project files using any method that you want.
102
+
103
+
> [!IMPORTANT]
104
+
>
105
+
> Make sure that your zip file contains your project's actual build artifacts at the root level,
106
+
> including all workflow folders, configuration files such as **host.json**, **connections.json**,
107
+
> **local.settings.json**, and any other related files. Don't add any extra folders nor put any
108
+
> artifacts into folders that don't already exist in your project structure.
109
+
>
110
+
> For example, the following list shows an example **MyBuildArtifacts.zip** file structure:
111
+
>
112
+
> ```
113
+
> MyStatefulWorkflow1-Folder
114
+
> MyStatefulWorkflow2-Folder
115
+
> connections.json
116
+
> host.json
117
+
> local.settings.json
118
+
> ```
100
119
101
120
### Before release to Azure
102
121
103
122
The managed API connections inside your logic app project's **connections.json** file are created specifically for local use in Visual Studio Code. Before you can release your project artifacts from Visual Studio Code to Azure, you have to update these artifacts. To use the managed API connections in Azure, you have to update their authentication methods so that they're in the correct format to use in Azure.
104
123
105
124
#### Update authentication type
106
125
107
-
For each managed API connection that uses authentication, you have to update the **authentication** object from the local format in Visual Studio Code to the Azure portal format, as shown by the first and second code examples, respectively:
126
+
For each managed API connection that uses authentication, you have to update the **`authentication`** object from the local format in Visual Studio Code to the Azure portal format, as shown by the first and second code examples, respectively:
108
127
109
128
**Visual Studio Code format**
110
129
@@ -182,7 +201,7 @@ To find the required values for the **`properties`** object so that you can comp
In the response, find the **connectionParameters** object, which contains the necessary information to complete the resource definition for that specific connector. The following example shows an example resource definition for a SQL managed connection:
204
+
In the response, find the **`connectionParameters`** object, which contains the necessary information to complete the resource definition for that specific connector. The following example shows an example resource definition for a SQL managed connection:
186
205
187
206
```json
188
207
{
@@ -221,7 +240,7 @@ To set up a release pipeline that deploys to Azure, follow the associated steps
221
240
For GitHub deployments, you can deploy your logic app by using [GitHub Actions](https://docs.github.com/actions), for example, the GitHub Actions in Azure Functions. This action requires that you pass through the following information:
222
241
223
242
- The logic app name to use for deployment
224
-
- The zip file that contains your actual build artifacts, including all workflow folders, configuration files such as **host.json**, **connections.json**, and any other related files.
243
+
- The zip file that contains your actual build artifacts, including all workflow folders, configuration files such as **host.json**, **connections.json**, **local.settings.json**, and any other related files.
225
244
- Your [publish profile](../azure-functions/functions-how-to-github-actions.md#generate-deployment-credentials), which is used for authentication
226
245
227
246
```yaml
@@ -241,7 +260,7 @@ For more information, review [Continuous delivery by using GitHub Action](../azu
241
260
For Azure DevOps deployments, you can deploy your logic app by using the [Azure Function App Deploy task](/azure/devops/pipelines/tasks/deploy/azure-function-app?view=azure-devops&preserve-view=true) in Azure Pipelines. This action requires that you pass through the following information:
242
261
243
262
- The logic app name to use for deployment
244
-
- The zip file that contains your actual build artifacts, including all workflow folders, configuration files such as **host.json**, **connections.json**, and any other related files.
263
+
- The zip file that contains your actual build artifacts, including all workflow folders, configuration files such as **host.json**, **connections.json**, **local.settings.json**, and any other related files.
245
264
- Your [publish profile](../azure-functions/functions-how-to-github-actions.md#generate-deployment-credentials), which is used for authentication
246
265
247
266
```yaml
@@ -388,22 +407,6 @@ If your resource group is successfully created, the output shows the **`provisio
388
407
389
408
Now, you can deploy your zipped artifacts to the Azure resource group that you created.
390
409
391
-
> [!IMPORTANT]
392
-
>
393
-
> Make sure that your zip file contains your project's artifacts at the root level. These artifacts
394
-
> include all workflow folders, configuration files such as **host.json**, **connections.json**,
395
-
> and any other related files. Don't add any extra folders nor put any artifacts into folders
396
-
> that don't already exist in your project structure.
397
-
>
398
-
> For example, this list shows an example **MyBuildArtifacts.zip** file structure:
399
-
>
400
-
> ```output
401
-
> MyStatefulWorkflow1-Folder
402
-
> MyStatefulWorkflow2-Folder
403
-
> connections.json
404
-
> host.json
405
-
> ```
406
-
407
410
Run the command, **`az logicapp deployment`**, with the following required parameters:
Each API connection has access policies. After the zip deployment completes, you must open your Standard logic app resource in the Azure portal, and create access policies for each API connection to set up permissions for the deployed logic app. The zip deployment doesn't create app settings for you. After deployment, you must create these app settings based on the **local.settings.json** file in your local Visual Studio Code project.
422
+
Each API connection has access policies. After the zip deployment completes, you must open your Standard logic app resource in the Azure portal, and create access policies for each API connection to set up permissions for the deployed logic app. The zip deployment doesn't create app settings for you. After deployment, you must create these app settings based on the **local.settings.json** file in your logic app project.
0 commit comments