Skip to content

Commit 223f0cb

Browse files
paulmeydsgouda
authored andcommitted
[Hub Generated] Review request for Microsoft.VirtualMachineImages to add version preview/2019-02-01-preview (#5512)
* Add inline scripts * Fix bug: "artifactLocation" -> "artifactUri"
1 parent 012facd commit 223f0cb

File tree

1 file changed

+19
-4
lines changed
  • specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/preview/2019-02-01-preview

1 file changed

+19
-4
lines changed

specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/preview/2019-02-01-preview/imagebuilder.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@
592592
]
593593
},
594594
"ImageTemplateShellCustomizer": {
595-
"description": "Runs a shell script during the customization phase (Linux)",
595+
"description": "Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'script' or 'inline' can be specified.",
596596
"x-ms-discriminator-value": "Shell",
597597
"allOf": [
598598
{
@@ -603,6 +603,13 @@
603603
"script": {
604604
"type": "string",
605605
"description": "The shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc"
606+
},
607+
"inline": {
608+
"type": "array",
609+
"description": "Array of shell commands to execute",
610+
"items": {
611+
"type": "string"
612+
}
606613
}
607614
}
608615
},
@@ -630,7 +637,7 @@
630637
}
631638
},
632639
"ImageTemplatePowerShellCustomizer": {
633-
"description": "Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner",
640+
"description": "Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'script' or 'inline' can be specified.",
634641
"x-ms-discriminator-value": "PowerShell",
635642
"allOf": [
636643
{
@@ -642,8 +649,16 @@
642649
"type": "string",
643650
"description": "The PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc"
644651
},
652+
"inline": {
653+
"type": "array",
654+
"description": "Array of PowerShell commands to execute",
655+
"items": {
656+
"type": "string"
657+
}
658+
},
645659
"validExitCodes" : {
646660
"type": "array",
661+
"description": "Valid exit codes for the PowerShell script. [Default: 0]",
647662
"items": {
648663
"type": "integer"
649664
}
@@ -857,9 +872,9 @@
857872
"type": "string",
858873
"description": "The resource id of the artifact."
859874
},
860-
"artifactLocation": {
875+
"artifactUri": {
861876
"type": "string",
862-
"description": "The URL location of the artifact."
877+
"description": "The location URI of the artifact."
863878
},
864879
"provisioningState": {
865880
"$ref": "#/definitions/ProvisioningState",

0 commit comments

Comments
 (0)