Skip to content

Commit e62b2dc

Browse files
authored
Merge pull request #106321 from mumian/0303-env-variable
add the environment variable information
2 parents 15eb6fb + d3cb2e9 commit e62b2dc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: azure-resource-manager
55
author: mumian
66
ms.service: azure-resource-manager
77
ms.topic: conceptual
8-
ms.date: 02/24/2020
8+
ms.date: 03/03/2020
99
ms.author: jgao
1010

1111
---
@@ -217,11 +217,17 @@ Deployment script outputs must be saved in the AZ_SCRIPTS_OUTPUT_PATH location,
217217

218218
[jq](https://stedolan.github.io/jq/) is used in the previous sample. It comes with the container images. See [Configure development environment](#configure-development-environment).
219219

220-
## Handle non-terminating errors
220+
## Develop deployment scripts
221+
222+
### Handle non-terminating errors
221223

222224
You can control how PowerShell responds to non-terminating errors by using the [**$ErrorActionPreference**](/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-7#erroractionpreference
223225
) variable in your deployment script. The deployment script engine doesn't set/change the value. Despite the value you set for $ErrorActionPreference, deployment script sets the resource provisioning state to *Failed* when the script encounters an error.
224226

227+
### Pass secured strings to deployment script
228+
229+
Setting environment variables in your container instances allows you to provide dynamic configuration of the application or script run by the container. Deployment script handles non-secured and secured environment variables in the same way as Azure Container Instance. For more information, see [Set environment variables in container instances](../../container-instances/container-instances-environment-variables.md#secure-values).
230+
225231
## Debug deployment scripts
226232

227233
The script service creates a [storage account](../../storage/common/storage-account-overview.md) and a [container instance](../../container-instances/container-instances-overview.md) for script execution. Both resources have the **azscripts** suffix in the resource names.

0 commit comments

Comments
 (0)