Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 2.55 KB

File metadata and controls

81 lines (61 loc) · 2.55 KB
title preDeployHook definition
description Used to run steps that initialize resources before application deployment starts.
ms.date 04/02/2026
monikerRange <=azure-pipelines
author steved0x
ms.author sdanie

preDeployHook definition

:::moniker range="<=azure-pipelines"

Used to run steps that initialize resources before application deployment starts.

:::moniker-end

:::moniker range="<=azure-pipelines"

preDeployHook:
  steps: [ task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp ] # A list of steps to run.
  pool: string | pool # Pool where pre deploy steps will run.

:::moniker-end

:::moniker range="<=azure-pipelines"

Note

This definition is a supporting definition and is not intended for use directly in a pipeline. This article provides the YAML syntax for this supporting type, but does not show usage examples. For more information and examples for using this supporting type, see the following Definitions that reference this definition articles.

Definitions that reference this definition: jobs.deployment.strategy.runOnce, jobs.deployment.strategy.rolling, jobs.deployment.strategy.canary

:::moniker-end

Properties

:::moniker range="<=azure-pipelines"

steps steps.
A list of steps to run.

:::moniker-end

:::moniker range="<=azure-pipelines"

pool pool.
Pool where pre deploy steps will run.

:::moniker-end