Skip to content

Commit 561ce15

Browse files
committed
update the json article
1 parent ff5439a commit 561ce15

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ services: azure-resource-manager
55
author: mumian
66
ms.service: azure-resource-manager
77
ms.topic: conceptual
8-
ms.date: 10/26/2022
8+
ms.date: 11/01/2022
99
ms.author: jgao
1010
ms.custom: devx-track-azurepowershell
11-
1211
---
12+
1313
# Use deployment scripts in ARM templates
1414

1515
Learn how to use deployment scripts in Azure Resource templates (ARM templates). With a new resource type called `Microsoft.Resources/deploymentScripts`, users can execute scripts in template deployments and review execution results. These scripts can be used for performing custom steps such as:
@@ -106,7 +106,7 @@ The following JSON is an example. For more information, see the latest [template
106106
"storageAccountName": "myStorageAccount",
107107
"storageAccountKey": "myKey"
108108
},
109-
"azPowerShellVersion": "6.4", // or "azCliVersion": "2.28.0",
109+
"azPowerShellVersion": "8.3", // or "azCliVersion": "2.40.0",
110110
"arguments": "-name \\\"John Dole\\\"",
111111
"environmentVariables": [
112112
{
@@ -386,10 +386,10 @@ SubscriptionId : 01234567-89AB-CDEF-0123-456789ABCDEF
386386
ProvisioningState : Succeeded
387387
Identity : /subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourceGroups/mydentity1008rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuami
388388
ScriptKind : AzurePowerShell
389-
AzPowerShellVersion : 3.0
390-
StartTime : 6/18/2020 7:46:45 PM
391-
EndTime : 6/18/2020 7:49:45 PM
392-
ExpirationDate : 6/19/2020 7:49:45 PM
389+
AzPowerShellVersion : 8.3
390+
StartTime : 6/18/2022 7:46:45 PM
391+
EndTime : 6/18/2022 7:49:45 PM
392+
ExpirationDate : 6/19/2022 7:49:45 PM
393393
CleanupPreference : OnSuccess
394394
StorageAccountId : /subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourceGroups/myds0618rg/providers/Microsoft.Storage/storageAccounts/ftnlvo6rlrvo2azscripts
395395
ContainerInstanceId : /subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourceGroups/myds0618rg/providers/Microsoft.ContainerInstance/containerGroups/ftnlvo6rlrvo2azscripts
@@ -417,13 +417,13 @@ The list command output is similar to:
417417
[
418418
{
419419
"arguments": "-name \\\"John Dole\\\"",
420-
"azPowerShellVersion": "3.0",
420+
"azPowerShellVersion": "8.3",
421421
"cleanupPreference": "OnSuccess",
422422
"containerSettings": {
423423
"containerGroupName": null
424424
},
425425
"environmentVariables": null,
426-
"forceUpdateTag": "20200625T025902Z",
426+
"forceUpdateTag": "20220625T025902Z",
427427
"id": "/subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourceGroups/myds0624rg/providers/Microsoft.Resources/deploymentScripts/runPowerShellInlineWithOutput",
428428
"identity": {
429429
"tenantId": "01234567-89AB-CDEF-0123-456789ABCDEF",
@@ -448,19 +448,19 @@ The list command output is similar to:
448448
"scriptContent": "\r\n param([string] $name)\r\n $output = \"Hello {0}\" -f $name\r\n Write-Output $output\r\n $DeploymentScriptOutputs = @{}\r\n $DeploymentScriptOutputs['text'] = $output\r\n ",
449449
"status": {
450450
"containerInstanceId": "/subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourceGroups/myds0624rg/providers/Microsoft.ContainerInstance/containerGroups/64lxews2qfa5uazscripts",
451-
"endTime": "2020-06-25T03:00:16.796923+00:00",
451+
"endTime": "2022-06-25T03:00:16.796923+00:00",
452452
"error": null,
453-
"expirationTime": "2020-06-26T03:00:16.796923+00:00",
454-
"startTime": "2020-06-25T02:59:07.595140+00:00",
453+
"expirationTime": "2022-06-26T03:00:16.796923+00:00",
454+
"startTime": "2022-06-25T02:59:07.595140+00:00",
455455
"storageAccountId": "/subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourceGroups/myds0624rg/providers/Microsoft.Storage/storageAccounts/64lxews2qfa5uazscripts"
456456
},
457457
"storageAccountSettings": null,
458458
"supportingScriptUris": null,
459459
"systemData": {
460-
"createdAt": "2020-06-25T02:59:04.750195+00:00",
460+
"createdAt": "2022-06-25T02:59:04.750195+00:00",
461461
"createdBy": "[email protected]",
462462
"createdByType": "User",
463-
"lastModifiedAt": "2020-06-25T02:59:04.750195+00:00",
463+
"lastModifiedAt": "2022-06-25T02:59:04.750195+00:00",
464464
"lastModifiedBy": "[email protected]",
465465
"lastModifiedByType": "User"
466466
},
@@ -509,15 +509,15 @@ The output is similar to:
509509
"systemData": {
510510
"createdBy": "[email protected]",
511511
"createdByType": "User",
512-
"createdAt": "2020-06-25T02:59:04.7501955Z",
512+
"createdAt": "2022-06-25T02:59:04.7501955Z",
513513
"lastModifiedBy": "[email protected]",
514514
"lastModifiedByType": "User",
515-
"lastModifiedAt": "2020-06-25T02:59:04.7501955Z"
515+
"lastModifiedAt": "2022-06-25T02:59:04.7501955Z"
516516
},
517517
"properties": {
518518
"provisioningState": "Succeeded",
519-
"forceUpdateTag": "20200625T025902Z",
520-
"azPowerShellVersion": "3.0",
519+
"forceUpdateTag": "20220625T025902Z",
520+
"azPowerShellVersion": "8.3",
521521
"scriptContent": "\r\n param([string] $name)\r\n $output = \"Hello {0}\" -f $name\r\n Write-Output $output\r\n $DeploymentScriptOutputs = @{}\r\n $DeploymentScriptOutputs['text'] = $output\r\n ",
522522
"arguments": "-name \\\"John Dole\\\"",
523523
"retentionInterval": "P1D",
@@ -526,9 +526,9 @@ The output is similar to:
526526
"status": {
527527
"containerInstanceId": "/subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourceGroups/myds0624rg/providers/Microsoft.ContainerInstance/containerGroups/64lxews2qfa5uazscripts",
528528
"storageAccountId": "/subscriptions/01234567-89AB-CDEF-0123-456789ABCDEF/resourceGroups/myds0624rg/providers/Microsoft.Storage/storageAccounts/64lxews2qfa5uazscripts",
529-
"startTime": "2020-06-25T02:59:07.5951401Z",
530-
"endTime": "2020-06-25T03:00:16.7969234Z",
531-
"expirationTime": "2020-06-26T03:00:16.7969234Z"
529+
"startTime": "2022-06-25T02:59:07.5951401Z",
530+
"endTime": "2022-06-25T03:00:16.7969234Z",
531+
"expirationTime": "2022-06-26T03:00:16.7969234Z"
532532
},
533533
"outputs": {
534534
"text": "Hello John Dole"

0 commit comments

Comments
 (0)