---
title: Virtual Machine Images Image Template
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > DDSQL Reference > Data Directory > Virtual Machine Images Image
  Template
---

# Virtual Machine Images Image Template

This table represents the virtual_machine_images_image_template resource from Microsoft Azure.

```
azure.virtual_machine_images_image_template
```

## Fields

| Title                        | ID   | Type       | Data Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Description |
| ---------------------------- | ---- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                         | core | string     |
| auto_run                     | core | json       | Indicates whether or not to automatically run the image template build on template creation or update.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| build_timeout_in_minutes     | core | int64      | Maximum duration to wait while building the image template (includes all customizations, optimization, validations, and distributions). Omit or specify 0 to use the default (4 hours).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| customize                    | core | json       | Specifies the properties used to describe the customization steps of the image, like Image source etc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| distribute                   | core | json       | The distribution targets where the image output needs to go to.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| error_handling               | core | json       | Error handling options upon a build failure                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| exact_staging_resource_group | core | string     | The staging resource group id in the same subscription as the image template that will be used to build the image. This read-only field differs from 'stagingResourceGroup' only if the value specified in the 'stagingResourceGroup' field is empty.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| id                           | core | string     | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| identity                     | core | json       | The identity of the image template, if configured.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| last_run_status              | core | json       | State of 'run' that is currently executing or was last executed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| location                     | core | string     | The geo-location where the resource lives                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| name                         | core | string     | The name of the resource                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| optimize                     | core | json       | Specifies optimization to be performed on image.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| provisioning_error           | core | json       | Provisioning error, if any                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| provisioning_state           | core | string     | Provisioning state of the resource                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| resource_group               | core | string     |
| staging_resource_group       | core | string     | The staging resource group id in the same subscription as the image template that will be used to build the image. If this field is empty, a resource group with a random name will be created. If the resource group specified in this field doesn't exist, it will be created with the same name. If the resource group specified exists, it must be empty and in the same region as the image template. The resource group created will be deleted during template deletion if this field is empty or the resource group specified doesn't exist, but if the resource group specified exists the resources created in the resource group will be deleted during template deletion and the resource group itself will remain. |
| subscription_id              | core | string     |
| subscription_name            | core | string     |
| system_data                  | core | json       | Azure Resource Manager metadata containing createdBy and modifiedBy information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| tags                         | core | hstore_csv |
| type                         | core | string     | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| validate                     | core | json       | Configuration options and list of validations to be performed on the resulting image.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| vm_profile                   | core | json       | Describes how virtual machine is set up to build images                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
