Skip to content

Commit 2e85a27

Browse files
committed
more container cleanup
1 parent 3359a2b commit 2e85a27

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

articles/azure-functions/functions-how-to-azure-devops.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Use [Azure Pipelines](/azure/devops/pipelines/) to automatically deploy to Azure
1616

1717
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).
1818

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.
2020

2121
Choose your task version at the top of the article. YAML pipelines aren't available for Azure DevOps 2019 and earlier.
2222

@@ -53,7 +53,6 @@ Choose your task version at the top of the article. YAML pipelines aren't availa
5353

5454
## Build your app
5555

56-
5756
1. Sign in to your Azure DevOps organization and navigate to your project.
5857
1. In your project, navigate to the **Pipelines** page. Then select **New pipeline**.
5958
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
6463
1. Select **Save and run**, then select **Commit directly to the main branch**, and then choose **Save and run** again.
6564
1. A new run is started. Wait for the run to finish.
6665

67-
6866
### Example YAML build pipelines
6967

7068
The following language-specific pipelines can be used for building apps.
7169

72-
# [C\#](#tab/csharp)
70+
#### [C\#](#tab/csharp)
7371

7472
You can use the following sample to create a YAML file to build a .NET app.
7573

@@ -102,7 +100,7 @@ steps:
102100
artifactName: 'drop'
103101
```
104102
105-
# [JavaScript](#tab/javascript)
103+
#### [JavaScript](#tab/javascript)
106104
107105
You can use the following sample to create a YAML file to build a JavaScript app:
108106
@@ -130,7 +128,7 @@ steps:
130128
artifactName: 'drop'
131129
```
132130
133-
# [Python](#tab/python)
131+
#### [Python](#tab/python)
134132
135133
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.
136134
@@ -163,7 +161,7 @@ steps:
163161
164162
To learn about potential issues with these pipeline tasks, see [Functions not found after deployment](recover-python-functions.md#functions-not-found-after-deployment).
165163
166-
# [PowerShell](#tab/powershell)
164+
#### [PowerShell](#tab/powershell)
167165
168166
You can use the following sample to create a YAML file to package a PowerShell app. PowerShell is supported only for Windows Azure Functions.
169167
@@ -216,12 +214,9 @@ variables:
216214

217215
The snippet assumes that the build steps in your YAML file produce the zip archive in the `$(System.ArtifactsDirectory)` folder on your agent.
218216

219-
220217
## Deploy a container
221218

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).
225220

226221
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).
227222

@@ -251,6 +246,7 @@ variables:
251246

252247
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.
253248

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).
254250

255251
## Deploy to a slot
256252

@@ -318,7 +314,7 @@ To create a build pipeline in Azure, use the `az functionapp devops-pipeline cre
318314
### Example YAML build pipelines
319315

320316
The following language-specific pipelines can be used for building apps.
321-
# [C\#](#tab/csharp)
317+
#### [C\#](#tab/csharp)
322318

323319
You can use the following sample to create a YAML file to build a .NET app:
324320

@@ -349,7 +345,7 @@ steps:
349345
artifactName: 'drop'
350346
```
351347

352-
# [JavaScript](#tab/javascript)
348+
#### [JavaScript](#tab/javascript)
353349

354350
You can use the following sample to create a YAML file to build a JavaScript app:
355351

@@ -377,7 +373,7 @@ steps:
377373
artifactName: 'drop'
378374
```
379375

380-
# [Python](#tab/python)
376+
#### [Python](#tab/python)
381377

382378
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.
383379

@@ -412,7 +408,7 @@ steps:
412408
Please check the generated archive to ensure that the deployed file has the right format.
413409
To learn about potential issues with these pipeline tasks, see [Functions not found after deployment](recover-python-functions.md#functions-not-found-after-deployment).
414410

415-
# [PowerShell](#tab/powershell)
411+
#### [PowerShell](#tab/powershell)
416412

417413
You can use the following sample to create a YAML file to package a PowerShell app. PowerShell is supported only for Windows Azure Functions.
418414

articles/azure-functions/functions-how-to-custom-container.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,24 @@ When you create a containerized function app in an environment that has workload
306306

307307
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).
308308

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:
313+
314+
+ [Azure Pipelines](./functions-how-to-azure-devops.md#deploy-a-container)
315+
+ [GitHub Actions](./functions-how-to-github-actions.md?tabs=container)
316+
317+
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
309320
:::zone pivot="azure-functions"
310321
## Enable continuous deployment to Azure
311322

312323
> [!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).
314327
315328
You can enable Azure Functions to automatically update your deployment of an image whenever you update the image in the registry.
316329

articles/azure-functions/functions-how-to-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ The best way to manually create a workflow configuration is to start from the of
198198
199199
Container deployments aren't supported on Windows. Choose Linux instead.
200200
201-
### [Container](#tab/Container/linux)
201+
### [Container](#tab/container/linux)
202202
203203
<https://github.com/Azure/actions-workflow-samples/blob/master/FunctionApp/linux-container-functionapp-on-azure.yml>
204204

0 commit comments

Comments
 (0)