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/azure-functions/functions-how-to-azure-devops.md
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Use [Azure Pipelines](/azure/devops/pipelines/) to automatically deploy to Azure
16
16
17
17
YAML pipelines are defined using a YAML file in your repository. A step is the smallest building block of a pipeline and can be a script or task (prepackaged script). [Learn about the key concepts and components that make up a pipeline](/azure/devops/pipelines/get-started/key-pipelines-concepts).
18
18
19
-
You'll use the AzureFunctionApp task to deploy to Azure Functions. There are now two versions of the AzureFunctionApp task ([AzureFunctionApp@1](/azure/devops/pipelines/tasks/reference/azure-function-app-v1), [AzureFunctionApp@2](/azure/devops/pipelines/tasks/reference/azure-function-app-v2)). AzureFunctionApp@2 includes enhanced validation support that makes pipelines less likely to fail because of errors.
19
+
You'll use the `AzureFunctionApp` task to deploy to Azure Functions. There are now two versions of the AzureFunctionApp task ([AzureFunctionApp@1](/azure/devops/pipelines/tasks/reference/azure-function-app-v1), [AzureFunctionApp@2](/azure/devops/pipelines/tasks/reference/azure-function-app-v2)). `AzureFunctionApp@2` includes enhanced validation support that makes pipelines less likely to fail because of errors.
20
20
21
21
Choose your task version at the top of the article. YAML pipelines aren't available for Azure DevOps 2019 and earlier.
22
22
@@ -53,7 +53,6 @@ Choose your task version at the top of the article. YAML pipelines aren't availa
53
53
54
54
## Build your app
55
55
56
-
57
56
1. Sign in to your Azure DevOps organization and navigate to your project.
58
57
1. In your project, navigate to the **Pipelines** page. Then select **New pipeline**.
59
58
1. Select one of these options for **Where is your code?**:
@@ -64,12 +63,11 @@ Choose your task version at the top of the article. YAML pipelines aren't availa
64
63
1. Select **Save and run**, then select **Commit directly to the main branch**, and then choose **Save and run** again.
65
64
1. A new run is started. Wait for the run to finish.
66
65
67
-
68
66
### Example YAML build pipelines
69
67
70
68
The following language-specific pipelines can be used for building apps.
71
69
72
-
# [C\#](#tab/csharp)
70
+
####[C\#](#tab/csharp)
73
71
74
72
You can use the following sample to create a YAML file to build a .NET app.
75
73
@@ -102,7 +100,7 @@ steps:
102
100
artifactName: 'drop'
103
101
```
104
102
105
-
# [JavaScript](#tab/javascript)
103
+
#### [JavaScript](#tab/javascript)
106
104
107
105
You can use the following sample to create a YAML file to build a JavaScript app:
108
106
@@ -130,7 +128,7 @@ steps:
130
128
artifactName: 'drop'
131
129
```
132
130
133
-
# [Python](#tab/python)
131
+
#### [Python](#tab/python)
134
132
135
133
Use one of the following samples to create a YAML file to build an app for a specific Python version. Python is only supported for function apps running on Linux.
136
134
@@ -163,7 +161,7 @@ steps:
163
161
164
162
To learn about potential issues with these pipeline tasks, see [Functions not found after deployment](recover-python-functions.md#functions-not-found-after-deployment).
165
163
166
-
# [PowerShell](#tab/powershell)
164
+
#### [PowerShell](#tab/powershell)
167
165
168
166
You can use the following sample to create a YAML file to package a PowerShell app. PowerShell is supported only for Windows Azure Functions.
169
167
@@ -216,12 +214,9 @@ variables:
216
214
217
215
The snippet assumes that the build steps in your YAML file produce the zip archive in the `$(System.ArtifactsDirectory)` folder on your agent.
218
216
219
-
220
217
## Deploy a container
221
218
222
-
You can automatically deploy your code to Azure Functions as a custom container after every successful build. To learn more about containers, see [Create a function on Linux using a custom container](functions-create-function-linux-custom-image.md).
223
-
### Deploy with the Azure Function App for Container task
224
-
219
+
You can automatically deploy your code as a containerized function app after every successful build. To learn more about containers, see [Working with containers and Azure Functions](functions-how-to-custom-container.md#working-with-containers-and-azure-functions).
225
220
226
221
The simplest way to deploy to a container is to use the [Azure Function App on Container Deploy task](/azure/devops/pipelines/tasks/deploy/azure-rm-functionapp-containers).
227
222
@@ -251,6 +246,7 @@ variables:
251
246
252
247
The snippet pushes the Docker image to your Azure Container Registry. The **Azure Function App on Container Deploy** task pulls the appropriate Docker image corresponding to the `BuildId` from the repository specified, and then deploys the image.
253
248
249
+
For a complete end-to-end pipeline example, including building the container and publishing to the container registry, see [this Azure Pipelines container deployment example](https://github.com/Azure/azure-functions-on-container-apps/blob/main/samples/AzurePipelineTasks/Func_on_ACA_DevOps_deployment.yml).
254
250
255
251
## Deploy to a slot
256
252
@@ -318,7 +314,7 @@ To create a build pipeline in Azure, use the `az functionapp devops-pipeline cre
318
314
### Example YAML build pipelines
319
315
320
316
The following language-specific pipelines can be used for building apps.
321
-
# [C\#](#tab/csharp)
317
+
#### [C\#](#tab/csharp)
322
318
323
319
You can use the following sample to create a YAML file to build a .NET app:
324
320
@@ -349,7 +345,7 @@ steps:
349
345
artifactName: 'drop'
350
346
```
351
347
352
-
# [JavaScript](#tab/javascript)
348
+
#### [JavaScript](#tab/javascript)
353
349
354
350
You can use the following sample to create a YAML file to build a JavaScript app:
355
351
@@ -377,7 +373,7 @@ steps:
377
373
artifactName: 'drop'
378
374
```
379
375
380
-
# [Python](#tab/python)
376
+
#### [Python](#tab/python)
381
377
382
378
Use one of the following samples to create a YAML file to build an app for a specific Python version. Python is only supported for function apps running on Linux.
383
379
@@ -412,7 +408,7 @@ steps:
412
408
Please check the generated archive to ensure that the deployed file has the right format.
413
409
To learn about potential issues with these pipeline tasks, see [Functions not found after deployment](recover-python-functions.md#functions-not-found-after-deployment).
414
410
415
-
# [PowerShell](#tab/powershell)
411
+
#### [PowerShell](#tab/powershell)
416
412
417
413
You can use the following sample to create a YAML file to package a PowerShell app. PowerShell is supported only for Windows Azure Functions.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-how-to-custom-container.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,11 +306,24 @@ When you create a containerized function app in an environment that has workload
306
306
307
307
Azure Functions lets you work with application settings for containerized function apps in the standard way. For more information, see [Use application settings](functions-how-to-use-azure-function-app-settings.md#settings).
308
308
309
+
:::zone pivot="container-apps"
310
+
## Enable continuous deployment to Azure
311
+
312
+
When you host your containerized function app on Azure Container Apps, there are two ways to set up continous deployment from a source code repository:
You aren't currently able to continuously deploy containers based on image changes in a container registry. You must instead use these source-code based continuous deployment pipelines.
318
+
319
+
::: zone-end
309
320
:::zone pivot="azure-functions"
310
321
## Enable continuous deployment to Azure
311
322
312
323
> [!IMPORTANT]
313
-
> Webhook-based deployment isn't currently supported when running your container in an [Elastic Premium plan](functions-premium-plan.md). If you need to use the continuous deployment method described in this section, instead deploy your container in an [App Service plan](dedicated-plan.md). When running in an Elastic Premium plan, you need to manually restart your app whenever you make updates to your container in the repository.
324
+
> Webhook-based deployment isn't currently supported when running your container in an [Elastic Premium plan](functions-premium-plan.md). If you need to use the continuous deployment method described in this section, instead deploy your container in an [App Service plan](dedicated-plan.md). When running in an Elastic Premium plan, you need to manually restart your app whenever you make updates to your container in the repository.
325
+
>
326
+
> You can also configure continous deployment from a source code repository using either [Azure Pipelines](./functions-how-to-azure-devops.md#deploy-a-container) or [GitHub Actions](./functions-how-to-github-actions.md?tabs=container).
314
327
315
328
You can enable Azure Functions to automatically update your deployment of an image whenever you update the image in the registry.
0 commit comments