Skip to content

Commit f7c24a6

Browse files
authored
Updating template reference with new properties
1 parent 77a04ad commit f7c24a6

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

articles/virtual-machines/linux/image-builder-json.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,38 @@ This field can be specified only if `subnetId` is also specified and must meet t
17451745
#### proxyVmSize (optional)
17461746
Size of the proxy virtual machine used to pass traffic to the build VM and validation VM. This field must not be specified if `containerInstanceSubnetId` is specified because no proxy virtual machine is deployed in that case. Omit or specify empty string to use the default (Standard_A1_v2).
17471747

1748-
---
1748+
## Properties: autoRun
1749+
1750+
You can use the `autoRun` property allows you to control whether the image template build process should automatically start when the template is created or updated. It's an enum with two possible values:
1751+
- **Enabled** - Auto run is enabled, so your image template build process will automatically start when the template is created or updated.
1752+
- **Disabled** - Auto run is disabled, so you will have to manually start the image build process after the template is created or updated.
1753+
1754+
```json
1755+
"properties": {
1756+
"autoRun": "Enabled"
1757+
}
1758+
```
1759+
1760+
> [!NOTE]
1761+
> When you set `autoRun` to "Enabled," the image build process runs **once** upon template creation or update. It ensures that the initial image build occurs seamlessly. However, it does not provide consistent and ongoing image builds. For consistent and ongoing image builds that run once an image template is updated, see [How to use Azure Image Builder triggers to set up an automatic image build](../image-builder-triggers-how-to.md).
1762+
>
1763+
> Unlike `autoRun`, automatic image creation via the Azure Image Builder trigger resource ensures that image builds occur consistently. Whenever there are changes to the template, the Azure Image Builder service will automatically trigger the image build process.
1764+
>
1765+
> Choose `autoRun` for immediate image builds upon template creation or update. Opt for automatic image creation when you need ongoing consistency in image builds. Consider your specific requirements and use the appropriate option based on your workflow.
1766+
1767+
## Properties: managedResourceTags
1768+
1769+
You can use the `managedResourceTags` property to apply tags to the resource group and/or resources created by the Azure Image Builder service.
1770+
1771+
```json
1772+
"properties": {
1773+
"managedResourceTags": {
1774+
"tag1": "value1",
1775+
"tag2": "value2"
1776+
}
1777+
}
1778+
```
1779+
17491780

17501781
## Image Template Operations
17511782

0 commit comments

Comments
 (0)