diff --git a/quickquickstarts/Using_Validators_with_a_Linux_image/validators_with_a_linux_image.json b/quickquickstarts/Using_Validators_with_a_Linux_image/validators_with_a_linux_image.json new file mode 100644 index 0000000..eb1f60b --- /dev/null +++ b/quickquickstarts/Using_Validators_with_a_Linux_image/validators_with_a_linux_image.json @@ -0,0 +1,57 @@ +{ + "location": "westus2", + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions//resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/": {} + } + }, + "properties": { + "source": { + "type": "PlatformImage", + "publisher": "Canonical", + "offer": "UbuntuServer", + "sku": "16.04-LTS", + "version": "latest" + }, + "customize": [ + { + "type": "Shell", + "name": "AddBuildArtifacts3", + "inline": [ + "sudo mkdir /buildArtifacts3", + "sudo touch /buildArtifacts3/imageBuilder.md" + ] + } + + ], + "validate": { + "continueDistributeOnFailure": false, + "inVMValidations": [ + { + "type": "Shell", + "name": "test shell validator inline", + "inline": [ + "echo HelloValidate", + "echo ByeValidate" + ] + }, + { + "type": "Shell", + "name": "", + "scriptUri": "" + } + ] + }, + "distribute": [ + { + "type": "SharedImage", + "galleryImageId": "/subscriptions//resourceGroups//providers/Microsoft.Compute/galleries//images/", + "runOutputName": "", + "replicationRegions": [ + "westus2" + ] + } + ] + } +}