Skip to content

Instantly share code, notes, and snippets.

@rooftop90
Last active December 3, 2022 03:05
Show Gist options
  • Save rooftop90/fde35f56338ba0fac2f26370b0de9365 to your computer and use it in GitHub Desktop.
Save rooftop90/fde35f56338ba0fac2f26370b0de9365 to your computer and use it in GitHub Desktop.
mngImgLinux.json
{
"type": "Microsoft.VirtualMachineImages/imageTemplates",
"apiVersion": "2019-05-01-preview",
"location": "<location>",
"dependsOn": [],
"tags": {
"imagebuilderTemplate": "ubuntu1804",
"userIdentity": "enabled"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"<imgBuilderUri>": {}
}
},
"properties": {
"buildTimeoutInMinutes" : 80,
"vmProfile":
{
"vmSize": "Standard_D1_v2",
"osDiskSizeGB": 30
},
"source": {
"type": "PlatformImage",
"publisher": "Canonical",
"offer": "UbuntuServer",
"sku": "18.04-LTS",
"version": "latest"
},
"customize": [
{
"type": "Shell",
"name": "RunScriptFromSource",
"inline": ["apt-get update -y"]
}
],
"distribute":
[
{ "type":"ManagedImage",
"imageId": "/subscriptions/<subscriptionId>/resourceGroups/<rg>/providers/Microsoft.Compute/images/<imgName>",
"location": "<location>",
"runOutputName": "<outputName>",
"artifactTags": {
"source": "azVmImageBuilder",
"baseosimg": "ubuntu1804"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment