|
1 |
| ---- |
| 1 | +--- |
2 | 2 | title: Use template deployment scripts | Microsoft Docs
|
3 | 3 | description: Learn how to use deployment scripts in Azure Resource Manager templates.
|
4 | 4 | services: azure-resource-manager
|
@@ -263,7 +263,7 @@ The deployment script adds a certificate to the key vault. Configure the key vau
|
263 | 263 | * **scriptContent**: Specify the script content. To run an external script, use **primaryScriptURI** instead. For more information, see [Use external script](./deployment-script-template.md#use-external-scripts).
|
264 | 264 | Declaring **$DeploymentScriptOutputs** is only required when testing the script on a local machine. Declaring the variable allows the script to be run on a local machine and in a deploymentScript resource without having to make changes. The value assigned to $DeploymentScriptOutputs is available as outputs in the deployments. For more information, see [Work with outputs from deployment scripts](./deployment-script-template.md#work-with-outputs-from-deployment-scripts).
|
265 | 265 | * **cleanupPreference**: Specify the preference on when to delete the deployment script resources. The default value is **Always**, which means the deployment script resources are deleted despite the terminal state (Succeeded, Failed, canceled). In this tutorial, **OnSuccess** is used so that you get a chance to view the script execution results.
|
266 |
| - * **retentionInterval**: Specify the interval for which the service retains the script resources after it reaches a terminal state. Resources will be deleted when this duration expires. Duration is based on ISO 8601 pattern. This tutorial uses P1D, which means one day. This property is used when **retentionInterval** is set to **OnExpiration**. This property is not enabled currently. |
| 266 | + * **retentionInterval**: Specify the interval for which the service retains the script resources after it reaches a terminal state. Resources will be deleted when this duration expires. Duration is based on ISO 8601 pattern. This tutorial uses P1D, which means one day. This property is used when **cleanupPreference** is set to **OnExpiration**. This property is not enabled currently. |
267 | 267 |
|
268 | 268 | The deployment script takes three parameters: key vault name, certificate name, and subject name. It creates a certificate, and then adds the certificate to the key vault.
|
269 | 269 |
|
@@ -346,4 +346,4 @@ When the Azure resources are no longer needed, clean up the resources you deploy
|
346 | 346 | In this tutorial, you learned how to use deployment script in Azure Resource Manager templates. To learn how to deploy Azure resources based on conditions, see:
|
347 | 347 |
|
348 | 348 | > [!div class="nextstepaction"]
|
349 |
| -> [Use conditions](./template-tutorial-use-conditions.md) |
| 349 | +> [Use conditions](./template-tutorial-use-conditions.md) |
0 commit comments