From b52d68cb33f5c247355887d844409bebdf95fa96 Mon Sep 17 00:00:00 2001 From: Kofi Forson Date: Fri, 28 Oct 2022 18:56:46 -0400 Subject: [PATCH] Adding build VM MSI quickstart --- .../helloImageTemplateBuildVMMSI.json | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 quickquickstarts/9_Creating_a_Custom_Linux_Shared_Image_Gallery_Image_with_build_VM_MSI/helloImageTemplateBuildVMMSI.json diff --git a/quickquickstarts/9_Creating_a_Custom_Linux_Shared_Image_Gallery_Image_with_build_VM_MSI/helloImageTemplateBuildVMMSI.json b/quickquickstarts/9_Creating_a_Custom_Linux_Shared_Image_Gallery_Image_with_build_VM_MSI/helloImageTemplateBuildVMMSI.json new file mode 100644 index 0000000..3b23b98 --- /dev/null +++ b/quickquickstarts/9_Creating_a_Custom_Linux_Shared_Image_Gallery_Image_with_build_VM_MSI/helloImageTemplateBuildVMMSI.json @@ -0,0 +1,84 @@ +{ + "properties": { + "source": { + "exactVersion": "18.04.202210180", + "offer": "UbuntuServer", + "publisher": "Canonical", + "sku": "18.04-LTS", + "type": "PlatformImage", + "version": "latest" + }, + "customize": [ + { + "name": "RunScriptFromSource", + "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript.sh", + "sha256Checksum": "2c6ff6902a4a52deee69e8db26d0036a53388651008aaf31795bb20dabd21fd8", + "type": "Shell" + }, + { + "name": "CheckSumCompareShellScript", + "scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/customizeScript2.sh", + "sha256Checksum": "ade4c5214c3c675e92c66e2d067a870c5b81b9844b3de3cc72c49ff36425fc93", + "type": "Shell" + }, + { + "destination": "/tmp/index.html", + "name": "downloadBuildArtifacts", + "sha256Checksum": "d9715d72889fb1a0463d06ce9e89d1d2bd33b2c5e5362a736db6f5a25e601a58", + "sourceUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/exampleArtifacts/buildArtifacts/index.html", + "type": "File" + }, + { + "inline": [ + "sudo mkdir /buildArtifacts", + "\nsudo cp /tmp/index.html /buildArtifacts/index.html" + ], + "name": "setupBuildPath", + "type": "Shell" + }, + { + "inline": [ + "sudo apt install unattended-upgrades" + ], + "name": "InstallUpgrades", + "type": "Shell" + } + ], + "distribute": [ + { + "artifactTags": {}, + "excludeFromLatest": false, + "galleryImageId": "/subscriptions//resourceGroups//providers/Microsoft.Compute/galleries//images//versions/", + "replicationRegions": [ + "", + "" + ], + "runOutputName": "", + "type": "SharedImage" + } + ], + "provisioningState": "Succeeded", + "buildTimeoutInMinutes": 0, + "vmProfile": { + "vmSize": "Standard_DS1_v2", + "osDiskSizeGB": 32, + "userAssignedIdentities": [ + "/subscriptions//resourcegroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/" + ] + }, + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions//resourcegroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/": { + "principalId": "", + "clientId": "" + } + } + }, + "tags": {}, + "location": "", + "id": "/subscriptions//resourcegroups//providers/Microsoft.VirtualMachineImages/imageTemplates/", + "name": "", + "type": "Microsoft.VirtualMachineImages/imageTemplates" +}