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
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/deployment-script-template.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The benefits of deployment script:
25
25
26
26
- Easy to code, use, and debug. You can develop deployment scripts in your favorite development environments. The scripts can be embedded in templates or in external script files.
27
27
- You can specify the script language and platform. Currently, only Azure PowerShell deployment scripts on the Linux environment are supported.
28
-
- Allow specifying the identities that are used to execute the scripts. Currently, only [Azure user-assigned managed identity](../../active-directory/managed-identities-azure-resources/overview.md) is supported.
28
+
- Allow specifying the identities that are used to execute the scripts. Currently, only [Azure user-assigned managed identity](../../active-directory/managed-identities-azure-resources/how-to-manage-ua-identity-portal.md) is supported.
29
29
- Allow passing command-line arguments to the script.
30
30
- Can specify script outputs and pass them back to the deployment.
31
31
@@ -54,7 +54,7 @@ The benefits of deployment script:
54
54
55
55
-**Azure PowerShell version 2.7.0, 2.8.0 or 3.0.0**. You don't need these versions for deploying templates. But these versions are needed for testing deployment scripts locally. See [Install the Azure PowerShell module](/powershell/azure/install-az-ps). You can use a preconfigured Docker image. See [Configure development environment](#configure-development-environment).
56
56
57
-
## Resource schema
57
+
## Sample template
58
58
59
59
The following json is an example. The latest template schema can be found [here](/azure/templates/microsoft.resources/deploymentscripts).
60
60
@@ -82,7 +82,7 @@ The following json is an example. The latest template schema can be found [here
@@ -117,7 +117,7 @@ The following template has one resource defined with the `Microsoft.Resources/de
117
117
> [!NOTE]
118
118
> Because the inline deployment scripts are enclosed in double quotes, the strings inside the deployment scripts need to be enclosed in single quotes instead. The escape character for PowerShell is **\**. You can also consider using string substitution as it is shown in the previous JSON sample. See the default value of the name parameter.
119
119
120
-
The script takes one parameter, and output the parameter value. **DeploymentScriptOutputs** is used for storing outputs. In the outputs section, the **value** line shows how to access the stored values. `Write-Output` is used for debugging purpose. To learn how to access the output file, see [Debug deployment scripts](#debug-deployment-scripts). For the property descriptions, see [Resource schema](#resource-schema).
120
+
The script takes one parameter, and output the parameter value. **DeploymentScriptOutputs** is used for storing outputs. In the outputs section, the **value** line shows how to access the stored values. `Write-Output` is used for debugging purpose. To learn how to access the output file, see [Debug deployment scripts](#debug-deployment-scripts). For the property descriptions, see [Sample template](#sample-template).
121
121
122
122
To run the script, select **Try it** to open the Cloud shell, and then paste the following code into the shell pane.
0 commit comments