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
> In CI/CD scenarios, the integration runtime (IR) type in different environments must be the same. For example, if you have a self-hosted IR in the development environment, the same IR must also be of type self-hosted in other environments, such as test and production. Similarly, if you're sharing integration runtimes across multiple stages, you have to configure the integration runtimes as linked self-hosted in all environments, such as development, test, and production.
139
+
137
140
### Get secrets from Azure Key Vault
138
141
139
142
If you have secrets to pass in an Azure Resource Manager template, we recommend that you use Azure Key Vault with the Azure Pipelines release.
@@ -179,33 +182,40 @@ There are two ways to handle secrets:
179
182
180
183
Deployment can fail if you try to update active triggers. To update active triggers, you need to manually stop them and then restart them after the deployment. You can do this by using an Azure PowerShell task:
181
184
182
-
1. On the **Tasks** tab of the release, add an **Azure PowerShell** task.
185
+
1. On the **Tasks** tab of the release, add an **Azure PowerShell** task. Choose task version 4.*.
183
186
184
-
1. Select **Azure Resource Manager** as the connection type, and then select your subscription.
187
+
1. Select the subscription your factory is in.
185
188
186
-
1. Select **Inline Script** as the script type, and then provide your code. The following code stops the triggers:
189
+
1. Select **Script File Path** as the script type. This requires you to save your PowerShell script in your repository. The following PowerShell script can be used to stop triggers:
You can complete similar steps (with the `Start-AzDataFactoryV2Trigger` function) to restart the triggers after deployment.
197
198
198
-
> [!IMPORTANT]
199
-
> In CI/CD scenarios, the integration runtime (IR) type in different environments must be the same. For example, if you have a self-hosted IR in the development environment, the same IR must also be of type self-hosted in other environments, such as test and production. Similarly, if you're sharing integration runtimes across multiple stages, you have to configure the integration runtimes as linked self-hosted in all environments, such as development, test, and production.
199
+
### Sample pre- and post-deployment script
200
200
201
-
#### Sample pre- and post-deployment script
201
+
The following sample script can be used to stop triggers before deployment and restart them afterward. The script also includes code to delete resources that have been removed. Save the script in an Azure DevOps git repository and reference it via an Azure PowerShell task using version 4.*.
202
+
203
+
When running a pre-deployment script, you will need to specify a variation of the following parameters in the **Script Arguments** field.
The following sample script shows how to stop triggers before deployment and restart them afterward. The script also includes code to delete resources that have been removed. To install the latest version of Azure PowerShell, see [Install Azure PowerShell on Windows with PowerShellGet](https://docs.microsoft.com/powershell/azure/install-az-ps).
214
+
Here is the script that can be used for pre- and post-deployment. It accounts for deleted resources and resource references.
0 commit comments