Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.VirtualMachineImages to …
Browse files Browse the repository at this point in the history
…add version preview/2019-02-01-preview (#5512)

* Add inline scripts

* Fix bug: "artifactLocation" -> "artifactUri"
  • Loading branch information
paulmey authored and dsgouda committed Apr 1, 2019
1 parent 012facd commit 223f0cb
Showing 1 changed file with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
]
},
"ImageTemplateShellCustomizer": {
"description": "Runs a shell script during the customization phase (Linux)",
"description": "Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'script' or 'inline' can be specified.",
"x-ms-discriminator-value": "Shell",
"allOf": [
{
Expand All @@ -603,6 +603,13 @@
"script": {
"type": "string",
"description": "The shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc"
},
"inline": {
"type": "array",
"description": "Array of shell commands to execute",
"items": {
"type": "string"
}
}
}
},
Expand Down Expand Up @@ -630,7 +637,7 @@
}
},
"ImageTemplatePowerShellCustomizer": {
"description": "Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner",
"description": "Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'script' or 'inline' can be specified.",
"x-ms-discriminator-value": "PowerShell",
"allOf": [
{
Expand All @@ -642,8 +649,16 @@
"type": "string",
"description": "The PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc"
},
"inline": {
"type": "array",
"description": "Array of PowerShell commands to execute",
"items": {
"type": "string"
}
},
"validExitCodes" : {
"type": "array",
"description": "Valid exit codes for the PowerShell script. [Default: 0]",
"items": {
"type": "integer"
}
Expand Down Expand Up @@ -857,9 +872,9 @@
"type": "string",
"description": "The resource id of the artifact."
},
"artifactLocation": {
"artifactUri": {
"type": "string",
"description": "The URL location of the artifact."
"description": "The location URI of the artifact."
},
"provisioningState": {
"$ref": "#/definitions/ProvisioningState",
Expand Down

0 comments on commit 223f0cb

Please sign in to comment.