Skip to content

Commit 4a71644

Browse files
committed
Removing Classic option from Azure Pipelines Functions article
1 parent 5b08a21 commit 4a71644

File tree

1 file changed

+3
-97
lines changed

1 file changed

+3
-97
lines changed

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

Lines changed: 3 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Continuously update function app code using Azure Pipelines
33
description: Learn how to set up an Azure DevOps pipeline that targets Azure Functions.
44
author: juliakm
55
ms.topic: conceptual
6-
ms.date: 05/15/2023
6+
ms.date: 04/03/2024
77
ms.author: jukullam
88
ms.custom: devx-track-csharp, devx-track-azurecli, devops-pipelines-deploy
99
ms.devlang: azurecli
@@ -51,7 +51,6 @@ Choose your task version at the top of the article. YAML pipelines aren't availa
5151

5252
## Build your app
5353

54-
# [YAML](#tab/yaml)
5554

5655
1. Sign in to your Azure DevOps organization and navigate to your project.
5756
1. In your project, navigate to the **Pipelines** page. Then choose the action to create a new pipeline.
@@ -61,29 +60,11 @@ Choose your task version at the top of the article. YAML pipelines aren't availa
6160
1. Azure Pipelines will analyze your repository and recommend a template. Select **Save and run**, then select **Commit directly to the main branch**, and then choose **Save and run** again.
6261
1. A new run is started. Wait for the run to finish.
6362

64-
# [Classic](#tab/classic)
65-
66-
To get started:
67-
68-
How you build your app in Azure Pipelines depends on your app's programming language. Each language has specific build steps that create a deployment artifact. A deployment artifact is used to update your function app in Azure.
69-
70-
To use built-in build templates, when you create a new build pipeline, select **Use the classic editor** to create a pipeline by using designer templates.
71-
72-
![Screenshot of the Azure Pipelines classic editor.](media/functions-how-to-azure-devops/classic-editor.png)
73-
74-
After you configure the source of your code, search for Azure Functions build templates. Select the template that matches your app language.
75-
76-
![Screenshot of Azure Functions build template.](media/functions-how-to-azure-devops/build-templates.png)
77-
78-
In some cases, build artifacts have a specific folder structure. You might need to select the **Prepend root folder name to archive paths** check box.
79-
80-
![Screenshot of option to prepend the root folder name.](media/functions-how-to-azure-devops/prepend-root-folder.png)
81-
82-
---
8363

8464
### Example YAML build pipelines
8565

8666
The following language-specific pipelines can be used for building apps.
67+
8768
# [C\#](#tab/csharp)
8869

8970
You can use the following sample to create a YAML file to build a .NET app.
@@ -201,8 +182,6 @@ steps:
201182
202183
You'll deploy with the [Azure Function App Deploy](/azure/devops/pipelines/tasks/deploy/azure-function-app) task. This task requires an [Azure service connection](/azure/devops/pipelines/library/service-endpoints) as an input. An Azure service connection stores the credentials to connect from Azure Pipelines to Azure.
203184
204-
# [YAML](#tab/yaml)
205-
206185
To deploy to Azure Functions, add the following snippet at the end of your `azure-pipelines.yml` file. The default `appType` is Windows. You can specify Linux by setting the `appType` to `functionAppLinux`.
207186

208187
```yaml
@@ -231,20 +210,12 @@ variables:
231210

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

234-
# [Classic](#tab/classic)
235-
236-
You'll need to create a separate release pipeline to deploy to Azure Functions. When you create a new release pipeline, search for the Azure Functions release template.
237-
238-
![Screenshot of search for the Azure Functions release template.](media/functions-how-to-azure-devops/release-template.png)
239-
240-
---
241213

242214
## Deploy a container
243215

244216
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).
245217
### Deploy with the Azure Function App for Container task
246218

247-
# [YAML](#tab/yaml/)
248219

249220
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).
250221

@@ -274,18 +245,9 @@ variables:
274245

275246
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.
276247

277-
# [Classic](#tab/classic/)
278-
279-
The best way to deploy your function app as a container is to use the [Azure Function App on Container Deploy task](/azure/devops/pipelines/tasks/deploy/azure-rm-functionapp-containers) in your release pipeline.
280-
281248

282-
How you deploy your app depends on your app's programming language. Each language has a template with specific deploy steps. If you can't find a template for your language, select the generic **Azure App Service Deployment** template.
283-
284-
---
285249
## Deploy to a slot
286250

287-
# [YAML](#tab/yaml)
288-
289251
You can configure your function app to have multiple slots. Slots allow you to safely deploy your app and test it before making it available to your customers.
290252

291253
The following YAML snippet shows how to deploy to a staging slot, and then swap to a production slot:
@@ -309,13 +271,6 @@ The following YAML snippet shows how to deploy to a staging slot, and then swap
309271
SourceSlot: staging
310272
SwapWithProduction: true
311273
```
312-
# [Classic](#tab/classic)
313-
314-
You can configure your function app to have multiple slots. Slots allow you to safely deploy your app and test it before making it available to your customers.
315-
316-
Use the option **Deploy to Slot** in the **Azure Function App Deploy** task to specify the slot to deploy to. You can swap the slots by using the **Azure App Service Manage** task.
317-
318-
---
319274

320275
## Create a pipeline with Azure CLI
321276

@@ -344,7 +299,6 @@ To create a build pipeline in Azure, use the `az functionapp devops-pipeline cre
344299

345300
## Build your app
346301

347-
# [YAML](#tab/yaml)
348302

349303
1. Sign in to your Azure DevOps organization and navigate to your project.
350304
1. In your project, navigate to the **Pipelines** page. Then choose the action to create a new pipeline.
@@ -354,25 +308,6 @@ To create a build pipeline in Azure, use the `az functionapp devops-pipeline cre
354308
1. Azure Pipelines will analyze your repository and recommend a template. Select **Save and run**, then select **Commit directly to the main branch**, and then choose **Save and run** again.
355309
1. A new run is started. Wait for the run to finish.
356310

357-
# [Classic](#tab/classic)
358-
359-
To get started:
360-
361-
How you build your app in Azure Pipelines depends on your app's programming language. Each language has specific build steps that create a deployment artifact. A deployment artifact is used to update your function app in Azure.
362-
363-
To use built-in build templates, when you create a new build pipeline, select **Use the classic editor** to create a pipeline by using designer templates.
364-
365-
![Screenshot of select the Azure Pipelines classic editor.](media/functions-how-to-azure-devops/classic-editor.png)
366-
367-
After you configure the source of your code, search for Azure Functions build templates. Select the template that matches your app language.
368-
369-
![Screenshot of select an Azure Functions build template.](media/functions-how-to-azure-devops/build-templates.png)
370-
371-
In some cases, build artifacts have a specific folder structure. You might need to select the **Prepend root folder name to archive paths** check box.
372-
373-
![Screenshot of the option to prepend the root folder name.](media/functions-how-to-azure-devops/prepend-root-folder.png)
374-
375-
---
376311

377312
### Example YAML build pipelines
378313

@@ -493,9 +428,7 @@ steps:
493428

494429
You'll deploy with the [Azure Function App Deploy v2](/azure/devops/pipelines/tasks/reference/azure-function-app-v2) task. This task requires an [Azure service connection](/azure/devops/pipelines/library/service-endpoints) as an input. An Azure service connection stores the credentials to connect from Azure Pipelines to Azure.
495430

496-
The v2 version of the task includes support for newer applications stacks for .NET, Python, and Node. The task includes networking predeployment checks and deployment won't proceed when there are issues.
497-
498-
# [YAML](#tab/yaml)
431+
The v2 version of the task includes support for newer applications stacks for .NET, Python, and Node. The task includes networking predeployment checks. When there are predeployment issues, deployment stops.
499432

500433
To deploy to Azure Functions, add the following snippet at the end of your `azure-pipelines.yml` file. The default `appType` is Windows. You can specify Linux by setting the `appType` to `functionAppLinux`.
501434

@@ -526,22 +459,12 @@ variables:
526459

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

529-
# [Classic](#tab/classic)
530-
531-
You'll need to create a separate release pipeline to deploy to Azure Functions. When you create a new release pipeline, search for the Azure Functions release template.
532-
533-
![Screenshot of search for the Azure Functions release template.](media/functions-how-to-azure-devops/release-template.png)
534-
535-
---
536-
537462
## Deploy a container
538463

539464
You can automatically deploy your code to Azure Functions as a custom container after every successful build. To learn more about containers, see [Working with containers and Azure Functions](./functions-how-to-custom-container.md) .
540465

541466
### Deploy with the Azure Function App for Container task
542467

543-
# [YAML](#tab/yaml/)
544-
545468
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).
546469

547470
To deploy, add the following snippet at the end of your YAML file:
@@ -570,18 +493,8 @@ variables:
570493

571494
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.
572495

573-
# [Classic](#tab/classic/)
574-
575-
The best way to deploy your function app as a container is to use the [Azure Function App on Container Deploy task](/azure/devops/pipelines/tasks/deploy/azure-rm-functionapp-containers) in your release pipeline.
576-
577-
578-
How you deploy your app depends on your app's programming language. Each language has a template with specific deploy steps. If you can't find a template for your language, select the generic **Azure App Service Deployment** template.
579-
580-
---
581496
## Deploy to a slot
582497

583-
# [YAML](#tab/yaml)
584-
585498
You can configure your function app to have multiple slots. Slots allow you to safely deploy your app and test it before making it available to your customers.
586499

587500
The following YAML snippet shows how to deploy to a staging slot, and then swap to a production slot:
@@ -606,13 +519,6 @@ The following YAML snippet shows how to deploy to a staging slot, and then swap
606519
SourceSlot: staging
607520
SwapWithProduction: true
608521
```
609-
# [Classic](#tab/classic)
610-
611-
You can configure your function app to have multiple slots. Slots allow you to safely deploy your app and test it before making it available to your customers.
612-
613-
Use the option **Deploy to Slot** in the **Azure Function App Deploy** task to specify the slot to deploy to. You can swap the slots by using the **Azure App Service Manage** task.
614-
615-
---
616522

617523
## Create a pipeline with Azure CLI
618524

0 commit comments

Comments
 (0)