Skip to content

Commit e8b4533

Browse files
authored
Merge pull request #101932 from john-par/patch-10
Update template-tutorial-deployment-script.md
2 parents 80af2de + f9ce6e9 commit e8b4533

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-resource-manager/templates/template-tutorial-deployment-script.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
title: Use template deployment scripts | Microsoft Docs
33
description: Learn how to use deployment scripts in Azure Resource Manager templates.
44
services: azure-resource-manager
@@ -263,7 +263,7 @@ The deployment script adds a certificate to the key vault. Configure the key vau
263263
* **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).
264264
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).
265265
* **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.
267267
268268
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.
269269
@@ -346,4 +346,4 @@ When the Azure resources are no longer needed, clean up the resources you deploy
346346
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:
347347
348348
> [!div class="nextstepaction"]
349-
> [Use conditions](./template-tutorial-use-conditions.md)
349+
> [Use conditions](./template-tutorial-use-conditions.md)

0 commit comments

Comments
 (0)