From cc3b6c722470b4b44b9be4cfb353db8e77bd1354 Mon Sep 17 00:00:00 2001 From: Kofi Forson Date: Wed, 25 May 2022 16:31:57 -0400 Subject: [PATCH] Adding quickstart for validate with a Linux image --- .../validators_with_a_linux_image.json | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 quickquickstarts/Using_Validators_with_a_Linux_image/validators_with_a_linux_image.json 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" + ] + } + ] + } +}