Skip to content

Commit 09ca0d3

Browse files
authored
Merge pull request #104415 from mumian/0214-ds-mi
custom feedback
2 parents 44347dc + 19d3154 commit 09ca0d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The benefits of deployment script:
2525

2626
- 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.
2727
- 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.
2929
- Allow passing command-line arguments to the script.
3030
- Can specify script outputs and pass them back to the deployment.
3131

@@ -54,7 +54,7 @@ The benefits of deployment script:
5454

5555
- **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).
5656

57-
## Resource schema
57+
## Sample template
5858

5959
The following json is an example. The latest template schema can be found [here](/azure/templates/microsoft.resources/deploymentscripts).
6060

@@ -82,7 +82,7 @@ The following json is an example. The latest template schema can be found [here
8282
$DeploymentScriptOutputs = @{}
8383
$DeploymentScriptOutputs['text'] = $output
8484
",
85-
"primaryScriptUri": "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.json",
85+
"primaryScriptUri": "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.ps1",
8686
"supportingScriptUris":[],
8787
"timeout": "PT30M",
8888
"cleanupPreference": "OnSuccess",
@@ -117,7 +117,7 @@ The following template has one resource defined with the `Microsoft.Resources/de
117117
> [!NOTE]
118118
> 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.
119119
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).
121121

122122
To run the script, select **Try it** to open the Cloud shell, and then paste the following code into the shell pane.
123123

0 commit comments

Comments
 (0)