diff --git a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/preview/2019-02-01-preview/imagebuilder.json b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/preview/2019-02-01-preview/imagebuilder.json index 79fab2ca9990..c0cc8c4fc6e2 100644 --- a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/preview/2019-02-01-preview/imagebuilder.json +++ b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/preview/2019-02-01-preview/imagebuilder.json @@ -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": [ { @@ -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" + } } } }, @@ -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": [ { @@ -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" } @@ -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",