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
> 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.
151
151
152
152
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 templates](#sample-templates).
153
153
154
-
To run the script, select **Try it** to open Azure Cloud Shell, and then paste the following code into the shell pane.
154
+
To run the script, select **Try it** to open the Cloud Shell, and then paste the following code into the shell pane.
155
155
156
156
```azurepowershell-interactive
157
157
$resourceGroupName = Read-Host -Prompt "Enter the name of the resource group to be created"
@@ -205,7 +205,7 @@ The supporting files are copied to azscripts/azscriptinput at the runtime. Use r
205
205
206
206
The following template shows how to pass values between two deploymentScripts resources:
In the first resource, you define a variable called **$DeploymentScriptOutputs**, and use it to store the output values. To access the output value from another resource within the template, use:
211
211
@@ -219,7 +219,7 @@ Different from the PowerShell deployment script, CLI/bash support does not expos
219
219
220
220
Deployment script outputs must be saved in the AZ_SCRIPTS_OUTPUT_PATH location, and the outputs must be a valid JSON string object. The contents of the file must be saved as a key-value pair. For example, an array of strings is stored as { "MyResult": [ "foo", "bar"] }. Storing just the array results, for example [ "foo", "bar" ], is invalid.
[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).
225
225
@@ -263,7 +263,7 @@ armclient get /subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourcegroups
0 commit comments