1. Packages
  2. Azure Native v1
  3. API Docs
  4. virtualmachineimages
  5. VirtualMachineImageTemplate
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.virtualmachineimages.VirtualMachineImageTemplate

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider API Version: 2020-02-14.

    Example Usage

    Create an Image Template for Linux.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var virtualMachineImageTemplate = new AzureNative.VirtualMachineImages.VirtualMachineImageTemplate("virtualMachineImageTemplate", new()
        {
            Customize = new[]
            {
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplateShellCustomizerArgs
                {
                    Name = "Shell Customizer Example",
                    ScriptUri = "https://example.com/path/to/script.sh",
                    Type = "Shell",
                },
            },
            Distribute = new[]
            {
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageDistributorArgs
                {
                    ArtifactTags = 
                    {
                        { "tagName", "value" },
                    },
                    ImageId = "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
                    Location = "1_location",
                    RunOutputName = "image_it_pir_1",
                    Type = "ManagedImage",
                },
            },
            Identity = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateIdentityArgs
            {
                Type = AzureNative.VirtualMachineImages.ResourceIdentityType.UserAssigned,
                UserAssignedIdentities = 
                {
                    { "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1", null },
                },
            },
            ImageTemplateName = "myImageTemplate",
            Location = "westus",
            ResourceGroupName = "myResourceGroup",
            Source = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageSourceArgs
            {
                ImageId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
                Type = "ManagedImage",
            },
            Tags = 
            {
                { "imagetemplate_tag1", "IT_T1" },
                { "imagetemplate_tag2", "IT_T2" },
            },
            VmProfile = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateVmProfileArgs
            {
                OsDiskSizeGB = 64,
                VmSize = "Standard_D2s_v3",
                VnetConfig = new AzureNative.VirtualMachineImages.Inputs.VirtualNetworkConfigArgs
                {
                    SubnetId = "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	virtualmachineimages "github.com/pulumi/pulumi-azure-native-sdk/virtualmachineimages"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := virtualmachineimages.NewVirtualMachineImageTemplate(ctx, "virtualMachineImageTemplate", &virtualmachineimages.VirtualMachineImageTemplateArgs{
    			Customize: pulumi.AnyArray{
    				virtualmachineimages.ImageTemplateShellCustomizer{
    					Name:      "Shell Customizer Example",
    					ScriptUri: "https://example.com/path/to/script.sh",
    					Type:      "Shell",
    				},
    			},
    			Distribute: pulumi.AnyArray{
    				virtualmachineimages.ImageTemplateManagedImageDistributor{
    					ArtifactTags: map[string]interface{}{
    						"tagName": "value",
    					},
    					ImageId:       "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
    					Location:      "1_location",
    					RunOutputName: "image_it_pir_1",
    					Type:          "ManagedImage",
    				},
    			},
    			Identity: &virtualmachineimages.ImageTemplateIdentityArgs{
    				Type: virtualmachineimages.ResourceIdentityTypeUserAssigned,
    				UserAssignedIdentities: pulumi.AnyMap{
    					"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": nil,
    				},
    			},
    			ImageTemplateName: pulumi.String("myImageTemplate"),
    			Location:          pulumi.String("westus"),
    			ResourceGroupName: pulumi.String("myResourceGroup"),
    			Source: virtualmachineimages.ImageTemplateManagedImageSource{
    				ImageId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
    				Type:    "ManagedImage",
    			},
    			Tags: pulumi.StringMap{
    				"imagetemplate_tag1": pulumi.String("IT_T1"),
    				"imagetemplate_tag2": pulumi.String("IT_T2"),
    			},
    			VmProfile: virtualmachineimages.ImageTemplateVmProfileResponse{
    				OsDiskSizeGB: pulumi.Int(64),
    				VmSize:       pulumi.String("Standard_D2s_v3"),
    				VnetConfig: &virtualmachineimages.VirtualNetworkConfigArgs{
    					SubnetId: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.virtualmachineimages.VirtualMachineImageTemplate;
    import com.pulumi.azurenative.virtualmachineimages.VirtualMachineImageTemplateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var virtualMachineImageTemplate = new VirtualMachineImageTemplate("virtualMachineImageTemplate", VirtualMachineImageTemplateArgs.builder()        
                .customize(Map.ofEntries(
                    Map.entry("name", "Shell Customizer Example"),
                    Map.entry("scriptUri", "https://example.com/path/to/script.sh"),
                    Map.entry("type", "Shell")
                ))
                .distribute(Map.ofEntries(
                    Map.entry("artifactTags", ImageTemplateManagedImageDistributorArgs.builder()
                        .tagName("value")
                        .build()),
                    Map.entry("imageId", "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1"),
                    Map.entry("location", "1_location"),
                    Map.entry("runOutputName", "image_it_pir_1"),
                    Map.entry("type", "ManagedImage")
                ))
                .identity(Map.ofEntries(
                    Map.entry("type", "UserAssigned"),
                    Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1", ))
                ))
                .imageTemplateName("myImageTemplate")
                .location("westus")
                .resourceGroupName("myResourceGroup")
                .source(Map.ofEntries(
                    Map.entry("imageId", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image"),
                    Map.entry("type", "ManagedImage")
                ))
                .tags(Map.ofEntries(
                    Map.entry("imagetemplate_tag1", "IT_T1"),
                    Map.entry("imagetemplate_tag2", "IT_T2")
                ))
                .vmProfile(Map.ofEntries(
                    Map.entry("osDiskSizeGB", 64),
                    Map.entry("vmSize", "Standard_D2s_v3"),
                    Map.entry("vnetConfig", Map.of("subnetId", "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name"))
                ))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    virtual_machine_image_template = azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplate",
        customize=[azure_native.virtualmachineimages.ImageTemplateShellCustomizerArgs(
            name="Shell Customizer Example",
            script_uri="https://example.com/path/to/script.sh",
            type="Shell",
        )],
        distribute=[azure_native.virtualmachineimages.ImageTemplateManagedImageDistributorArgs(
            artifact_tags={
                "tagName": "value",
            },
            image_id="/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
            location="1_location",
            run_output_name="image_it_pir_1",
            type="ManagedImage",
        )],
        identity=azure_native.virtualmachineimages.ImageTemplateIdentityArgs(
            type=azure_native.virtualmachineimages.ResourceIdentityType.USER_ASSIGNED,
            user_assigned_identities={
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {},
            },
        ),
        image_template_name="myImageTemplate",
        location="westus",
        resource_group_name="myResourceGroup",
        source=azure_native.virtualmachineimages.ImageTemplateManagedImageSourceArgs(
            image_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
            type="ManagedImage",
        ),
        tags={
            "imagetemplate_tag1": "IT_T1",
            "imagetemplate_tag2": "IT_T2",
        },
        vm_profile=azure_native.virtualmachineimages.ImageTemplateVmProfileResponseArgs(
            os_disk_size_gb=64,
            vm_size="Standard_D2s_v3",
            vnet_config=azure_native.virtualmachineimages.VirtualNetworkConfigArgs(
                subnet_id="/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
            ),
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const virtualMachineImageTemplate = new azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplate", {
        customize: [{
            name: "Shell Customizer Example",
            scriptUri: "https://example.com/path/to/script.sh",
            type: "Shell",
        }],
        distribute: [{
            artifactTags: {
                tagName: "value",
            },
            imageId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
            location: "1_location",
            runOutputName: "image_it_pir_1",
            type: "ManagedImage",
        }],
        identity: {
            type: azure_native.virtualmachineimages.ResourceIdentityType.UserAssigned,
            userAssignedIdentities: {
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {},
            },
        },
        imageTemplateName: "myImageTemplate",
        location: "westus",
        resourceGroupName: "myResourceGroup",
        source: {
            imageId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
            type: "ManagedImage",
        },
        tags: {
            imagetemplate_tag1: "IT_T1",
            imagetemplate_tag2: "IT_T2",
        },
        vmProfile: {
            osDiskSizeGB: 64,
            vmSize: "Standard_D2s_v3",
            vnetConfig: {
                subnetId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
            },
        },
    });
    
    resources:
      virtualMachineImageTemplate:
        type: azure-native:virtualmachineimages:VirtualMachineImageTemplate
        properties:
          customize:
            - name: Shell Customizer Example
              scriptUri: https://example.com/path/to/script.sh
              type: Shell
          distribute:
            - artifactTags:
                tagName: value
              imageId: /subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1
              location: 1_location
              runOutputName: image_it_pir_1
              type: ManagedImage
          identity:
            type: UserAssigned
            userAssignedIdentities:
              ? /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1
              : {}
          imageTemplateName: myImageTemplate
          location: westus
          resourceGroupName: myResourceGroup
          source:
            imageId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image
            type: ManagedImage
          tags:
            imagetemplate_tag1: IT_T1
            imagetemplate_tag2: IT_T2
          vmProfile:
            osDiskSizeGB: 64
            vmSize: Standard_D2s_v3
            vnetConfig:
              subnetId: /subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name
    

    Create an Image Template for Windows.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var virtualMachineImageTemplate = new AzureNative.VirtualMachineImages.VirtualMachineImageTemplate("virtualMachineImageTemplate", new()
        {
            Customize = new[]
            {
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
                {
                    Inline = new[]
                    {
                        "Powershell command-1",
                        "Powershell command-2",
                        "Powershell command-3",
                    },
                    Name = "PowerShell (inline) Customizer Example",
                    Type = "PowerShell",
                },
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
                {
                    Inline = new[]
                    {
                        "Powershell command-1",
                        "Powershell command-2",
                        "Powershell command-3",
                    },
                    Name = "PowerShell (inline) Customizer Elevated user Example",
                    RunElevated = true,
                    Type = "PowerShell",
                },
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
                {
                    Inline = new[]
                    {
                        "Powershell command-1",
                        "Powershell command-2",
                        "Powershell command-3",
                    },
                    Name = "PowerShell (inline) Customizer Elevated Local System user Example",
                    RunAsSystem = true,
                    RunElevated = true,
                    Type = "PowerShell",
                },
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
                {
                    Name = "PowerShell (script) Customizer Example",
                    ScriptUri = "https://example.com/path/to/script.ps1",
                    Type = "PowerShell",
                    ValidExitCodes = new[]
                    {
                        0,
                        1,
                    },
                },
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
                {
                    Name = "PowerShell (script) Customizer Elevated Local System user Example",
                    RunElevated = true,
                    ScriptUri = "https://example.com/path/to/script.ps1",
                    Type = "PowerShell",
                    ValidExitCodes = new[]
                    {
                        0,
                        1,
                    },
                },
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
                {
                    Name = "PowerShell (script) Customizer Elevated Local System user Example",
                    RunAsSystem = true,
                    RunElevated = true,
                    ScriptUri = "https://example.com/path/to/script.ps1",
                    Type = "PowerShell",
                    ValidExitCodes = new[]
                    {
                        0,
                        1,
                    },
                },
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplateRestartCustomizerArgs
                {
                    Name = "Restart Customizer Example",
                    RestartCheckCommand = "powershell -command \"& {Write-Output 'restarted.'}\"",
                    RestartCommand = "shutdown /f /r /t 0 /c \"packer restart\"",
                    RestartTimeout = "10m",
                    Type = "WindowsRestart",
                },
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplateWindowsUpdateCustomizerArgs
                {
                    Filters = new[]
                    {
                        "$_.BrowseOnly",
                    },
                    Name = "Windows Update Customizer Example",
                    SearchCriteria = "BrowseOnly=0 and IsInstalled=0",
                    Type = "WindowsUpdate",
                    UpdateLimit = 100,
                },
            },
            Distribute = new[]
            {
                new AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageDistributorArgs
                {
                    ArtifactTags = 
                    {
                        { "tagName", "value" },
                    },
                    ImageId = "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
                    Location = "1_location",
                    RunOutputName = "image_it_pir_1",
                    Type = "ManagedImage",
                },
            },
            Identity = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateIdentityArgs
            {
                Type = AzureNative.VirtualMachineImages.ResourceIdentityType.UserAssigned,
                UserAssignedIdentities = 
                {
                    { "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1", null },
                },
            },
            ImageTemplateName = "myImageTemplate",
            Location = "westus",
            ResourceGroupName = "myResourceGroup",
            Source = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageSourceArgs
            {
                ImageId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
                Type = "ManagedImage",
            },
            Tags = 
            {
                { "imagetemplate_tag1", "IT_T1" },
                { "imagetemplate_tag2", "IT_T2" },
            },
            VmProfile = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateVmProfileArgs
            {
                OsDiskSizeGB = 64,
                VmSize = "Standard_D2s_v3",
                VnetConfig = new AzureNative.VirtualMachineImages.Inputs.VirtualNetworkConfigArgs
                {
                    SubnetId = "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
                },
            },
        });
    
    });
    

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.virtualmachineimages.VirtualMachineImageTemplate;
    import com.pulumi.azurenative.virtualmachineimages.VirtualMachineImageTemplateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var virtualMachineImageTemplate = new VirtualMachineImageTemplate("virtualMachineImageTemplate", VirtualMachineImageTemplateArgs.builder()        
                .customize(            
                    Map.ofEntries(
                        Map.entry("inline",                     
                            "Powershell command-1",
                            "Powershell command-2",
                            "Powershell command-3"),
                        Map.entry("name", "PowerShell (inline) Customizer Example"),
                        Map.entry("type", "PowerShell")
                    ),
                    Map.ofEntries(
                        Map.entry("inline",                     
                            "Powershell command-1",
                            "Powershell command-2",
                            "Powershell command-3"),
                        Map.entry("name", "PowerShell (inline) Customizer Elevated user Example"),
                        Map.entry("runElevated", true),
                        Map.entry("type", "PowerShell")
                    ),
                    Map.ofEntries(
                        Map.entry("inline",                     
                            "Powershell command-1",
                            "Powershell command-2",
                            "Powershell command-3"),
                        Map.entry("name", "PowerShell (inline) Customizer Elevated Local System user Example"),
                        Map.entry("runAsSystem", true),
                        Map.entry("runElevated", true),
                        Map.entry("type", "PowerShell")
                    ),
                    Map.ofEntries(
                        Map.entry("name", "PowerShell (script) Customizer Example"),
                        Map.entry("scriptUri", "https://example.com/path/to/script.ps1"),
                        Map.entry("type", "PowerShell"),
                        Map.entry("validExitCodes",                     
                            0,
                            1)
                    ),
                    Map.ofEntries(
                        Map.entry("name", "PowerShell (script) Customizer Elevated Local System user Example"),
                        Map.entry("runElevated", true),
                        Map.entry("scriptUri", "https://example.com/path/to/script.ps1"),
                        Map.entry("type", "PowerShell"),
                        Map.entry("validExitCodes",                     
                            0,
                            1)
                    ),
                    Map.ofEntries(
                        Map.entry("name", "PowerShell (script) Customizer Elevated Local System user Example"),
                        Map.entry("runAsSystem", true),
                        Map.entry("runElevated", true),
                        Map.entry("scriptUri", "https://example.com/path/to/script.ps1"),
                        Map.entry("type", "PowerShell"),
                        Map.entry("validExitCodes",                     
                            0,
                            1)
                    ),
                    Map.ofEntries(
                        Map.entry("name", "Restart Customizer Example"),
                        Map.entry("restartCheckCommand", "powershell -command \"& {Write-Output 'restarted.'}\""),
                        Map.entry("restartCommand", "shutdown /f /r /t 0 /c \"packer restart\""),
                        Map.entry("restartTimeout", "10m"),
                        Map.entry("type", "WindowsRestart")
                    ),
                    Map.ofEntries(
                        Map.entry("filters", "$_.BrowseOnly"),
                        Map.entry("name", "Windows Update Customizer Example"),
                        Map.entry("searchCriteria", "BrowseOnly=0 and IsInstalled=0"),
                        Map.entry("type", "WindowsUpdate"),
                        Map.entry("updateLimit", 100)
                    ))
                .distribute(Map.ofEntries(
                    Map.entry("artifactTags", ImageTemplateManagedImageDistributorArgs.builder()
                        .tagName("value")
                        .build()),
                    Map.entry("imageId", "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1"),
                    Map.entry("location", "1_location"),
                    Map.entry("runOutputName", "image_it_pir_1"),
                    Map.entry("type", "ManagedImage")
                ))
                .identity(Map.ofEntries(
                    Map.entry("type", "UserAssigned"),
                    Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1", ))
                ))
                .imageTemplateName("myImageTemplate")
                .location("westus")
                .resourceGroupName("myResourceGroup")
                .source(Map.ofEntries(
                    Map.entry("imageId", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image"),
                    Map.entry("type", "ManagedImage")
                ))
                .tags(Map.ofEntries(
                    Map.entry("imagetemplate_tag1", "IT_T1"),
                    Map.entry("imagetemplate_tag2", "IT_T2")
                ))
                .vmProfile(Map.ofEntries(
                    Map.entry("osDiskSizeGB", 64),
                    Map.entry("vmSize", "Standard_D2s_v3"),
                    Map.entry("vnetConfig", Map.of("subnetId", "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name"))
                ))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    virtual_machine_image_template = azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplate",
        customize=[
            azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
                inline=[
                    "Powershell command-1",
                    "Powershell command-2",
                    "Powershell command-3",
                ],
                name="PowerShell (inline) Customizer Example",
                type="PowerShell",
            ),
            azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
                inline=[
                    "Powershell command-1",
                    "Powershell command-2",
                    "Powershell command-3",
                ],
                name="PowerShell (inline) Customizer Elevated user Example",
                run_elevated=True,
                type="PowerShell",
            ),
            azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
                inline=[
                    "Powershell command-1",
                    "Powershell command-2",
                    "Powershell command-3",
                ],
                name="PowerShell (inline) Customizer Elevated Local System user Example",
                run_as_system=True,
                run_elevated=True,
                type="PowerShell",
            ),
            azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
                name="PowerShell (script) Customizer Example",
                script_uri="https://example.com/path/to/script.ps1",
                type="PowerShell",
                valid_exit_codes=[
                    0,
                    1,
                ],
            ),
            azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
                name="PowerShell (script) Customizer Elevated Local System user Example",
                run_elevated=True,
                script_uri="https://example.com/path/to/script.ps1",
                type="PowerShell",
                valid_exit_codes=[
                    0,
                    1,
                ],
            ),
            azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
                name="PowerShell (script) Customizer Elevated Local System user Example",
                run_as_system=True,
                run_elevated=True,
                script_uri="https://example.com/path/to/script.ps1",
                type="PowerShell",
                valid_exit_codes=[
                    0,
                    1,
                ],
            ),
            azure_native.virtualmachineimages.ImageTemplateRestartCustomizerArgs(
                name="Restart Customizer Example",
                restart_check_command="powershell -command \"& {Write-Output 'restarted.'}\"",
                restart_command="shutdown /f /r /t 0 /c \"packer restart\"",
                restart_timeout="10m",
                type="WindowsRestart",
            ),
            azure_native.virtualmachineimages.ImageTemplateWindowsUpdateCustomizerArgs(
                filters=["$_.BrowseOnly"],
                name="Windows Update Customizer Example",
                search_criteria="BrowseOnly=0 and IsInstalled=0",
                type="WindowsUpdate",
                update_limit=100,
            ),
        ],
        distribute=[azure_native.virtualmachineimages.ImageTemplateManagedImageDistributorArgs(
            artifact_tags={
                "tagName": "value",
            },
            image_id="/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
            location="1_location",
            run_output_name="image_it_pir_1",
            type="ManagedImage",
        )],
        identity=azure_native.virtualmachineimages.ImageTemplateIdentityArgs(
            type=azure_native.virtualmachineimages.ResourceIdentityType.USER_ASSIGNED,
            user_assigned_identities={
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {},
            },
        ),
        image_template_name="myImageTemplate",
        location="westus",
        resource_group_name="myResourceGroup",
        source=azure_native.virtualmachineimages.ImageTemplateManagedImageSourceArgs(
            image_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
            type="ManagedImage",
        ),
        tags={
            "imagetemplate_tag1": "IT_T1",
            "imagetemplate_tag2": "IT_T2",
        },
        vm_profile=azure_native.virtualmachineimages.ImageTemplateVmProfileResponseArgs(
            os_disk_size_gb=64,
            vm_size="Standard_D2s_v3",
            vnet_config=azure_native.virtualmachineimages.VirtualNetworkConfigArgs(
                subnet_id="/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
            ),
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const virtualMachineImageTemplate = new azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplate", {
        customize: [
            {
                inline: [
                    "Powershell command-1",
                    "Powershell command-2",
                    "Powershell command-3",
                ],
                name: "PowerShell (inline) Customizer Example",
                type: "PowerShell",
            },
            {
                inline: [
                    "Powershell command-1",
                    "Powershell command-2",
                    "Powershell command-3",
                ],
                name: "PowerShell (inline) Customizer Elevated user Example",
                runElevated: true,
                type: "PowerShell",
            },
            {
                inline: [
                    "Powershell command-1",
                    "Powershell command-2",
                    "Powershell command-3",
                ],
                name: "PowerShell (inline) Customizer Elevated Local System user Example",
                runAsSystem: true,
                runElevated: true,
                type: "PowerShell",
            },
            {
                name: "PowerShell (script) Customizer Example",
                scriptUri: "https://example.com/path/to/script.ps1",
                type: "PowerShell",
                validExitCodes: [
                    0,
                    1,
                ],
            },
            {
                name: "PowerShell (script) Customizer Elevated Local System user Example",
                runElevated: true,
                scriptUri: "https://example.com/path/to/script.ps1",
                type: "PowerShell",
                validExitCodes: [
                    0,
                    1,
                ],
            },
            {
                name: "PowerShell (script) Customizer Elevated Local System user Example",
                runAsSystem: true,
                runElevated: true,
                scriptUri: "https://example.com/path/to/script.ps1",
                type: "PowerShell",
                validExitCodes: [
                    0,
                    1,
                ],
            },
            {
                name: "Restart Customizer Example",
                restartCheckCommand: "powershell -command \"& {Write-Output 'restarted.'}\"",
                restartCommand: "shutdown /f /r /t 0 /c \"packer restart\"",
                restartTimeout: "10m",
                type: "WindowsRestart",
            },
            {
                filters: ["$_.BrowseOnly"],
                name: "Windows Update Customizer Example",
                searchCriteria: "BrowseOnly=0 and IsInstalled=0",
                type: "WindowsUpdate",
                updateLimit: 100,
            },
        ],
        distribute: [{
            artifactTags: {
                tagName: "value",
            },
            imageId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
            location: "1_location",
            runOutputName: "image_it_pir_1",
            type: "ManagedImage",
        }],
        identity: {
            type: azure_native.virtualmachineimages.ResourceIdentityType.UserAssigned,
            userAssignedIdentities: {
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {},
            },
        },
        imageTemplateName: "myImageTemplate",
        location: "westus",
        resourceGroupName: "myResourceGroup",
        source: {
            imageId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
            type: "ManagedImage",
        },
        tags: {
            imagetemplate_tag1: "IT_T1",
            imagetemplate_tag2: "IT_T2",
        },
        vmProfile: {
            osDiskSizeGB: 64,
            vmSize: "Standard_D2s_v3",
            vnetConfig: {
                subnetId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
            },
        },
    });
    
    resources:
      virtualMachineImageTemplate:
        type: azure-native:virtualmachineimages:VirtualMachineImageTemplate
        properties:
          customize:
            - inline:
                - Powershell command-1
                - Powershell command-2
                - Powershell command-3
              name: PowerShell (inline) Customizer Example
              type: PowerShell
            - inline:
                - Powershell command-1
                - Powershell command-2
                - Powershell command-3
              name: PowerShell (inline) Customizer Elevated user Example
              runElevated: true
              type: PowerShell
            - inline:
                - Powershell command-1
                - Powershell command-2
                - Powershell command-3
              name: PowerShell (inline) Customizer Elevated Local System user Example
              runAsSystem: true
              runElevated: true
              type: PowerShell
            - name: PowerShell (script) Customizer Example
              scriptUri: https://example.com/path/to/script.ps1
              type: PowerShell
              validExitCodes:
                - 0
                - 1
            - name: PowerShell (script) Customizer Elevated Local System user Example
              runElevated: true
              scriptUri: https://example.com/path/to/script.ps1
              type: PowerShell
              validExitCodes:
                - 0
                - 1
            - name: PowerShell (script) Customizer Elevated Local System user Example
              runAsSystem: true
              runElevated: true
              scriptUri: https://example.com/path/to/script.ps1
              type: PowerShell
              validExitCodes:
                - 0
                - 1
            - name: Restart Customizer Example
              restartCheckCommand: powershell -command "& {Write-Output 'restarted.'}"
              restartCommand: shutdown /f /r /t 0 /c "packer restart"
              restartTimeout: 10m
              type: WindowsRestart
            - filters:
                - $_.BrowseOnly
              name: Windows Update Customizer Example
              searchCriteria: BrowseOnly=0 and IsInstalled=0
              type: WindowsUpdate
              updateLimit: 100
          distribute:
            - artifactTags:
                tagName: value
              imageId: /subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1
              location: 1_location
              runOutputName: image_it_pir_1
              type: ManagedImage
          identity:
            type: UserAssigned
            userAssignedIdentities:
              ? /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1
              : {}
          imageTemplateName: myImageTemplate
          location: westus
          resourceGroupName: myResourceGroup
          source:
            imageId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image
            type: ManagedImage
          tags:
            imagetemplate_tag1: IT_T1
            imagetemplate_tag2: IT_T2
          vmProfile:
            osDiskSizeGB: 64
            vmSize: Standard_D2s_v3
            vnetConfig:
              subnetId: /subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name
    

    Create VirtualMachineImageTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualMachineImageTemplate(name: string, args: VirtualMachineImageTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualMachineImageTemplate(resource_name: str,
                                    args: VirtualMachineImageTemplateArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualMachineImageTemplate(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    distribute: Optional[Sequence[Union[ImageTemplateManagedImageDistributorArgs, ImageTemplateSharedImageDistributorArgs, ImageTemplateVhdDistributorArgs]]] = None,
                                    identity: Optional[ImageTemplateIdentityArgs] = None,
                                    resource_group_name: Optional[str] = None,
                                    source: Optional[Union[ImageTemplateManagedImageSourceArgs, ImageTemplatePlatformImageSourceArgs, ImageTemplateSharedImageVersionSourceArgs]] = None,
                                    build_timeout_in_minutes: Optional[int] = None,
                                    customize: Optional[Sequence[Union[ImageTemplateFileCustomizerArgs, ImageTemplatePowerShellCustomizerArgs, ImageTemplateRestartCustomizerArgs, ImageTemplateShellCustomizerArgs, ImageTemplateWindowsUpdateCustomizerArgs]]] = None,
                                    image_template_name: Optional[str] = None,
                                    location: Optional[str] = None,
                                    tags: Optional[Mapping[str, str]] = None,
                                    vm_profile: Optional[ImageTemplateVmProfileArgs] = None)
    func NewVirtualMachineImageTemplate(ctx *Context, name string, args VirtualMachineImageTemplateArgs, opts ...ResourceOption) (*VirtualMachineImageTemplate, error)
    public VirtualMachineImageTemplate(string name, VirtualMachineImageTemplateArgs args, CustomResourceOptions? opts = null)
    public VirtualMachineImageTemplate(String name, VirtualMachineImageTemplateArgs args)
    public VirtualMachineImageTemplate(String name, VirtualMachineImageTemplateArgs args, CustomResourceOptions options)
    
    type: azure-native:virtualmachineimages:VirtualMachineImageTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VirtualMachineImageTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VirtualMachineImageTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VirtualMachineImageTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualMachineImageTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualMachineImageTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var virtualMachineImageTemplateResource = new AzureNative.Virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplateResource", new()
    {
        Distribute = new[]
        {
            
            {
                { "imageId", "string" },
                { "location", "string" },
                { "runOutputName", "string" },
                { "type", "ManagedImage" },
                { "artifactTags", 
                {
                    { "string", "string" },
                } },
            },
        },
        Identity = 
        {
            { "type", "UserAssigned" },
            { "userAssignedIdentities", 
            {
                { "string", "any" },
            } },
        },
        ResourceGroupName = "string",
        Source = 
        {
            { "imageId", "string" },
            { "type", "ManagedImage" },
        },
        BuildTimeoutInMinutes = 0,
        Customize = new[]
        {
            
            {
                { "type", "File" },
                { "destination", "string" },
                { "name", "string" },
                { "sha256Checksum", "string" },
                { "sourceUri", "string" },
            },
        },
        ImageTemplateName = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
        VmProfile = 
        {
            { "osDiskSizeGB", 0 },
            { "vmSize", "string" },
            { "vnetConfig", 
            {
                { "subnetId", "string" },
            } },
        },
    });
    
    example, err := virtualmachineimages.NewVirtualMachineImageTemplate(ctx, "virtualMachineImageTemplateResource", &virtualmachineimages.VirtualMachineImageTemplateArgs{
    	Distribute: []map[string]interface{}{
    		map[string]interface{}{
    			"imageId":       "string",
    			"location":      "string",
    			"runOutputName": "string",
    			"type":          "ManagedImage",
    			"artifactTags": map[string]interface{}{
    				"string": "string",
    			},
    		},
    	},
    	Identity: map[string]interface{}{
    		"type": "UserAssigned",
    		"userAssignedIdentities": map[string]interface{}{
    			"string": "any",
    		},
    	},
    	ResourceGroupName: "string",
    	Source: map[string]interface{}{
    		"imageId": "string",
    		"type":    "ManagedImage",
    	},
    	BuildTimeoutInMinutes: 0,
    	Customize: []map[string]interface{}{
    		map[string]interface{}{
    			"type":           "File",
    			"destination":    "string",
    			"name":           "string",
    			"sha256Checksum": "string",
    			"sourceUri":      "string",
    		},
    	},
    	ImageTemplateName: "string",
    	Location:          "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    	VmProfile: map[string]interface{}{
    		"osDiskSizeGB": 0,
    		"vmSize":       "string",
    		"vnetConfig": map[string]interface{}{
    			"subnetId": "string",
    		},
    	},
    })
    
    var virtualMachineImageTemplateResource = new VirtualMachineImageTemplate("virtualMachineImageTemplateResource", VirtualMachineImageTemplateArgs.builder()
        .distribute(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .resourceGroupName("string")
        .source(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .buildTimeoutInMinutes(0)
        .customize(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .imageTemplateName("string")
        .location("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .vmProfile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    virtual_machine_image_template_resource = azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplateResource",
        distribute=[{
            imageId: string,
            location: string,
            runOutputName: string,
            type: ManagedImage,
            artifactTags: {
                string: string,
            },
        }],
        identity={
            type: UserAssigned,
            userAssignedIdentities: {
                string: any,
            },
        },
        resource_group_name=string,
        source={
            imageId: string,
            type: ManagedImage,
        },
        build_timeout_in_minutes=0,
        customize=[{
            type: File,
            destination: string,
            name: string,
            sha256Checksum: string,
            sourceUri: string,
        }],
        image_template_name=string,
        location=string,
        tags={
            string: string,
        },
        vm_profile={
            osDiskSizeGB: 0,
            vmSize: string,
            vnetConfig: {
                subnetId: string,
            },
        })
    
    const virtualMachineImageTemplateResource = new azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplateResource", {
        distribute: [{
            imageId: "string",
            location: "string",
            runOutputName: "string",
            type: "ManagedImage",
            artifactTags: {
                string: "string",
            },
        }],
        identity: {
            type: "UserAssigned",
            userAssignedIdentities: {
                string: "any",
            },
        },
        resourceGroupName: "string",
        source: {
            imageId: "string",
            type: "ManagedImage",
        },
        buildTimeoutInMinutes: 0,
        customize: [{
            type: "File",
            destination: "string",
            name: "string",
            sha256Checksum: "string",
            sourceUri: "string",
        }],
        imageTemplateName: "string",
        location: "string",
        tags: {
            string: "string",
        },
        vmProfile: {
            osDiskSizeGB: 0,
            vmSize: "string",
            vnetConfig: {
                subnetId: "string",
            },
        },
    });
    
    type: azure-native:virtualmachineimages:VirtualMachineImageTemplate
    properties:
        buildTimeoutInMinutes: 0
        customize:
            - destination: string
              name: string
              sha256Checksum: string
              sourceUri: string
              type: File
        distribute:
            - artifactTags:
                string: string
              imageId: string
              location: string
              runOutputName: string
              type: ManagedImage
        identity:
            type: UserAssigned
            userAssignedIdentities:
                string: any
        imageTemplateName: string
        location: string
        resourceGroupName: string
        source:
            imageId: string
            type: ManagedImage
        tags:
            string: string
        vmProfile:
            osDiskSizeGB: 0
            vmSize: string
            vnetConfig:
                subnetId: string
    

    VirtualMachineImageTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualMachineImageTemplate resource accepts the following input properties:

    Distribute List<object>
    The distribution targets where the image output needs to go to.
    Identity Pulumi.AzureNative.VirtualMachineImages.Inputs.ImageTemplateIdentity
    The identity of the image template, if configured.
    ResourceGroupName string
    The name of the resource group.
    Source Pulumi.AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageSource | Pulumi.AzureNative.VirtualMachineImages.Inputs.ImageTemplatePlatformImageSource | Pulumi.AzureNative.VirtualMachineImages.Inputs.ImageTemplateSharedImageVersionSource
    Specifies the properties used to describe the source image.
    BuildTimeoutInMinutes int
    Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
    Customize List<object>
    Specifies the properties used to describe the customization steps of the image, like Image source etc
    ImageTemplateName string
    The name of the image Template
    Location string
    Resource location
    Tags Dictionary<string, string>
    Resource tags
    VmProfile Pulumi.AzureNative.VirtualMachineImages.Inputs.ImageTemplateVmProfile
    Describes how virtual machine is set up to build images
    Distribute []interface{}
    The distribution targets where the image output needs to go to.
    Identity ImageTemplateIdentityArgs
    The identity of the image template, if configured.
    ResourceGroupName string
    The name of the resource group.
    Source ImageTemplateManagedImageSourceArgs | ImageTemplatePlatformImageSourceArgs | ImageTemplateSharedImageVersionSourceArgs
    Specifies the properties used to describe the source image.
    BuildTimeoutInMinutes int
    Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
    Customize []interface{}
    Specifies the properties used to describe the customization steps of the image, like Image source etc
    ImageTemplateName string
    The name of the image Template
    Location string
    Resource location
    Tags map[string]string
    Resource tags
    VmProfile ImageTemplateVmProfileArgs
    Describes how virtual machine is set up to build images
    distribute List<Object>
    The distribution targets where the image output needs to go to.
    identity ImageTemplateIdentity
    The identity of the image template, if configured.
    resourceGroupName String
    The name of the resource group.
    source ImageTemplateManagedImageSource | ImageTemplatePlatformImageSource | ImageTemplateSharedImageVersionSource
    Specifies the properties used to describe the source image.
    buildTimeoutInMinutes Integer
    Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
    customize List<Object>
    Specifies the properties used to describe the customization steps of the image, like Image source etc
    imageTemplateName String
    The name of the image Template
    location String
    Resource location
    tags Map<String,String>
    Resource tags
    vmProfile ImageTemplateVmProfile
    Describes how virtual machine is set up to build images
    distribute (ImageTemplateManagedImageDistributor | ImageTemplateSharedImageDistributorArgs | ImageTemplateVhdDistributorArgs)[]
    The distribution targets where the image output needs to go to.
    identity ImageTemplateIdentity
    The identity of the image template, if configured.
    resourceGroupName string
    The name of the resource group.
    source ImageTemplateManagedImageSource | ImageTemplatePlatformImageSource | ImageTemplateSharedImageVersionSource
    Specifies the properties used to describe the source image.
    buildTimeoutInMinutes number
    Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
    customize (ImageTemplateFileCustomizer | ImageTemplatePowerShellCustomizerArgs | ImageTemplateRestartCustomizerArgs | ImageTemplateShellCustomizerArgs | ImageTemplateWindowsUpdateCustomizerArgs)[]
    Specifies the properties used to describe the customization steps of the image, like Image source etc
    imageTemplateName string
    The name of the image Template
    location string
    Resource location
    tags {[key: string]: string}
    Resource tags
    vmProfile ImageTemplateVmProfile
    Describes how virtual machine is set up to build images
    distribute Sequence[Union[ImageTemplateManagedImageDistributorArgs, ImageTemplateSharedImageDistributorArgs, ImageTemplateVhdDistributorArgs]]
    The distribution targets where the image output needs to go to.
    identity ImageTemplateIdentityArgs
    The identity of the image template, if configured.
    resource_group_name str
    The name of the resource group.
    source ImageTemplateManagedImageSourceArgs | ImageTemplatePlatformImageSourceArgs | ImageTemplateSharedImageVersionSourceArgs
    Specifies the properties used to describe the source image.
    build_timeout_in_minutes int
    Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
    customize Sequence[Union[ImageTemplateFileCustomizerArgs, ImageTemplatePowerShellCustomizerArgs, ImageTemplateRestartCustomizerArgs, ImageTemplateShellCustomizerArgs, ImageTemplateWindowsUpdateCustomizerArgs]]
    Specifies the properties used to describe the customization steps of the image, like Image source etc
    image_template_name str
    The name of the image Template
    location str
    Resource location
    tags Mapping[str, str]
    Resource tags
    vm_profile ImageTemplateVmProfileArgs
    Describes how virtual machine is set up to build images
    distribute List<Property Map | Property Map | Property Map>
    The distribution targets where the image output needs to go to.
    identity Property Map
    The identity of the image template, if configured.
    resourceGroupName String
    The name of the resource group.
    source Property Map | Property Map | Property Map
    Specifies the properties used to describe the source image.
    buildTimeoutInMinutes Number
    Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
    customize List<Property Map | Property Map | Property Map | Property Map | Property Map>
    Specifies the properties used to describe the customization steps of the image, like Image source etc
    imageTemplateName String
    The name of the image Template
    location String
    Resource location
    tags Map<String>
    Resource tags
    vmProfile Property Map
    Describes how virtual machine is set up to build images

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualMachineImageTemplate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LastRunStatus Pulumi.AzureNative.VirtualMachineImages.Outputs.ImageTemplateLastRunStatusResponse
    State of 'run' that is currently executing or was last executed.
    Name string
    Resource name
    ProvisioningError Pulumi.AzureNative.VirtualMachineImages.Outputs.ProvisioningErrorResponse
    Provisioning error, if any
    ProvisioningState string
    Provisioning state of the resource
    Type string
    Resource type
    Id string
    The provider-assigned unique ID for this managed resource.
    LastRunStatus ImageTemplateLastRunStatusResponse
    State of 'run' that is currently executing or was last executed.
    Name string
    Resource name
    ProvisioningError ProvisioningErrorResponse
    Provisioning error, if any
    ProvisioningState string
    Provisioning state of the resource
    Type string
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    lastRunStatus ImageTemplateLastRunStatusResponse
    State of 'run' that is currently executing or was last executed.
    name String
    Resource name
    provisioningError ProvisioningErrorResponse
    Provisioning error, if any
    provisioningState String
    Provisioning state of the resource
    type String
    Resource type
    id string
    The provider-assigned unique ID for this managed resource.
    lastRunStatus ImageTemplateLastRunStatusResponse
    State of 'run' that is currently executing or was last executed.
    name string
    Resource name
    provisioningError ProvisioningErrorResponse
    Provisioning error, if any
    provisioningState string
    Provisioning state of the resource
    type string
    Resource type
    id str
    The provider-assigned unique ID for this managed resource.
    last_run_status ImageTemplateLastRunStatusResponse
    State of 'run' that is currently executing or was last executed.
    name str
    Resource name
    provisioning_error ProvisioningErrorResponse
    Provisioning error, if any
    provisioning_state str
    Provisioning state of the resource
    type str
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    lastRunStatus Property Map
    State of 'run' that is currently executing or was last executed.
    name String
    Resource name
    provisioningError Property Map
    Provisioning error, if any
    provisioningState String
    Provisioning state of the resource
    type String
    Resource type

    Supporting Types

    ImageTemplateFileCustomizer, ImageTemplateFileCustomizerArgs

    Destination string
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    Name string
    Friendly Name to provide context on what this customization step does
    Sha256Checksum string
    SHA256 checksum of the file provided in the sourceUri field above
    SourceUri string
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    Destination string
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    Name string
    Friendly Name to provide context on what this customization step does
    Sha256Checksum string
    SHA256 checksum of the file provided in the sourceUri field above
    SourceUri string
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    destination String
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    name String
    Friendly Name to provide context on what this customization step does
    sha256Checksum String
    SHA256 checksum of the file provided in the sourceUri field above
    sourceUri String
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    destination string
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    name string
    Friendly Name to provide context on what this customization step does
    sha256Checksum string
    SHA256 checksum of the file provided in the sourceUri field above
    sourceUri string
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    destination str
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    name str
    Friendly Name to provide context on what this customization step does
    sha256_checksum str
    SHA256 checksum of the file provided in the sourceUri field above
    source_uri str
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    destination String
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    name String
    Friendly Name to provide context on what this customization step does
    sha256Checksum String
    SHA256 checksum of the file provided in the sourceUri field above
    sourceUri String
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc

    ImageTemplateFileCustomizerResponse, ImageTemplateFileCustomizerResponseArgs

    Destination string
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    Name string
    Friendly Name to provide context on what this customization step does
    Sha256Checksum string
    SHA256 checksum of the file provided in the sourceUri field above
    SourceUri string
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    Destination string
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    Name string
    Friendly Name to provide context on what this customization step does
    Sha256Checksum string
    SHA256 checksum of the file provided in the sourceUri field above
    SourceUri string
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    destination String
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    name String
    Friendly Name to provide context on what this customization step does
    sha256Checksum String
    SHA256 checksum of the file provided in the sourceUri field above
    sourceUri String
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    destination string
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    name string
    Friendly Name to provide context on what this customization step does
    sha256Checksum string
    SHA256 checksum of the file provided in the sourceUri field above
    sourceUri string
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    destination str
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    name str
    Friendly Name to provide context on what this customization step does
    sha256_checksum str
    SHA256 checksum of the file provided in the sourceUri field above
    source_uri str
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
    destination String
    The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
    name String
    Friendly Name to provide context on what this customization step does
    sha256Checksum String
    SHA256 checksum of the file provided in the sourceUri field above
    sourceUri String
    The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc

    ImageTemplateIdentity, ImageTemplateIdentityArgs

    Type Pulumi.AzureNative.VirtualMachineImages.ResourceIdentityType
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    UserAssignedIdentities Dictionary<string, object>
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    Type ResourceIdentityType
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    UserAssignedIdentities map[string]interface{}
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    type ResourceIdentityType
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    userAssignedIdentities Map<String,Object>
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    type ResourceIdentityType
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    userAssignedIdentities {[key: string]: any}
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    type ResourceIdentityType
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    user_assigned_identities Mapping[str, Any]
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    type "UserAssigned" | "None"
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    userAssignedIdentities Map<Any>
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

    ImageTemplateIdentityResponse, ImageTemplateIdentityResponseArgs

    Type string
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    UserAssignedIdentities Dictionary<string, Pulumi.AzureNative.VirtualMachineImages.Inputs.ImageTemplateIdentityResponseUserAssignedIdentities>
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    Type string
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    UserAssignedIdentities map[string]ImageTemplateIdentityResponseUserAssignedIdentities
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    type String
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    userAssignedIdentities Map<String,ImageTemplateIdentityResponseUserAssignedIdentities>
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    type string
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    userAssignedIdentities {[key: string]: ImageTemplateIdentityResponseUserAssignedIdentities}
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    type str
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    user_assigned_identities Mapping[str, ImageTemplateIdentityResponseUserAssignedIdentities]
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
    type String
    The type of identity used for the image template. The type 'None' will remove any identities from the image template.
    userAssignedIdentities Map<Property Map>
    The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

    ImageTemplateIdentityResponseUserAssignedIdentities, ImageTemplateIdentityResponseUserAssignedIdentitiesArgs

    ClientId string
    The client id of user assigned identity.
    PrincipalId string
    The principal id of user assigned identity.
    ClientId string
    The client id of user assigned identity.
    PrincipalId string
    The principal id of user assigned identity.
    clientId String
    The client id of user assigned identity.
    principalId String
    The principal id of user assigned identity.
    clientId string
    The client id of user assigned identity.
    principalId string
    The principal id of user assigned identity.
    client_id str
    The client id of user assigned identity.
    principal_id str
    The principal id of user assigned identity.
    clientId String
    The client id of user assigned identity.
    principalId String
    The principal id of user assigned identity.

    ImageTemplateLastRunStatusResponse, ImageTemplateLastRunStatusResponseArgs

    EndTime string
    End time of the last run (UTC)
    Message string
    Verbose information about the last run state
    RunState string
    State of the last run
    RunSubState string
    Sub-state of the last run
    StartTime string
    Start time of the last run (UTC)
    EndTime string
    End time of the last run (UTC)
    Message string
    Verbose information about the last run state
    RunState string
    State of the last run
    RunSubState string
    Sub-state of the last run
    StartTime string
    Start time of the last run (UTC)
    endTime String
    End time of the last run (UTC)
    message String
    Verbose information about the last run state
    runState String
    State of the last run
    runSubState String
    Sub-state of the last run
    startTime String
    Start time of the last run (UTC)
    endTime string
    End time of the last run (UTC)
    message string
    Verbose information about the last run state
    runState string
    State of the last run
    runSubState string
    Sub-state of the last run
    startTime string
    Start time of the last run (UTC)
    end_time str
    End time of the last run (UTC)
    message str
    Verbose information about the last run state
    run_state str
    State of the last run
    run_sub_state str
    Sub-state of the last run
    start_time str
    Start time of the last run (UTC)
    endTime String
    End time of the last run (UTC)
    message String
    Verbose information about the last run state
    runState String
    State of the last run
    runSubState String
    Sub-state of the last run
    startTime String
    Start time of the last run (UTC)

    ImageTemplateManagedImageDistributor, ImageTemplateManagedImageDistributorArgs

    ImageId string
    Resource Id of the Managed Disk Image
    Location string
    Azure location for the image, should match if image already exists
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags Dictionary<string, string>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    ImageId string
    Resource Id of the Managed Disk Image
    Location string
    Azure location for the image, should match if image already exists
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags map[string]string
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    imageId String
    Resource Id of the Managed Disk Image
    location String
    Azure location for the image, should match if image already exists
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String,String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    imageId string
    Resource Id of the Managed Disk Image
    location string
    Azure location for the image, should match if image already exists
    runOutputName string
    The name to be used for the associated RunOutput.
    artifactTags {[key: string]: string}
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    image_id str
    Resource Id of the Managed Disk Image
    location str
    Azure location for the image, should match if image already exists
    run_output_name str
    The name to be used for the associated RunOutput.
    artifact_tags Mapping[str, str]
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    imageId String
    Resource Id of the Managed Disk Image
    location String
    Azure location for the image, should match if image already exists
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.

    ImageTemplateManagedImageDistributorResponse, ImageTemplateManagedImageDistributorResponseArgs

    ImageId string
    Resource Id of the Managed Disk Image
    Location string
    Azure location for the image, should match if image already exists
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags Dictionary<string, string>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    ImageId string
    Resource Id of the Managed Disk Image
    Location string
    Azure location for the image, should match if image already exists
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags map[string]string
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    imageId String
    Resource Id of the Managed Disk Image
    location String
    Azure location for the image, should match if image already exists
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String,String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    imageId string
    Resource Id of the Managed Disk Image
    location string
    Azure location for the image, should match if image already exists
    runOutputName string
    The name to be used for the associated RunOutput.
    artifactTags {[key: string]: string}
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    image_id str
    Resource Id of the Managed Disk Image
    location str
    Azure location for the image, should match if image already exists
    run_output_name str
    The name to be used for the associated RunOutput.
    artifact_tags Mapping[str, str]
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    imageId String
    Resource Id of the Managed Disk Image
    location String
    Azure location for the image, should match if image already exists
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.

    ImageTemplateManagedImageSource, ImageTemplateManagedImageSourceArgs

    ImageId string
    ARM resource id of the managed image in customer subscription
    ImageId string
    ARM resource id of the managed image in customer subscription
    imageId String
    ARM resource id of the managed image in customer subscription
    imageId string
    ARM resource id of the managed image in customer subscription
    image_id str
    ARM resource id of the managed image in customer subscription
    imageId String
    ARM resource id of the managed image in customer subscription

    ImageTemplateManagedImageSourceResponse, ImageTemplateManagedImageSourceResponseArgs

    ImageId string
    ARM resource id of the managed image in customer subscription
    ImageId string
    ARM resource id of the managed image in customer subscription
    imageId String
    ARM resource id of the managed image in customer subscription
    imageId string
    ARM resource id of the managed image in customer subscription
    image_id str
    ARM resource id of the managed image in customer subscription
    imageId String
    ARM resource id of the managed image in customer subscription

    ImageTemplatePlatformImageSource, ImageTemplatePlatformImageSourceArgs

    Offer string
    Image offer from the Azure Gallery Images.
    PlanInfo Pulumi.AzureNative.VirtualMachineImages.Inputs.PlatformImagePurchasePlan
    Optional configuration of purchase plan for platform image.
    Publisher string
    Image Publisher in Azure Gallery Images.
    Sku string
    Image sku from the Azure Gallery Images.
    Version string
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    Offer string
    Image offer from the Azure Gallery Images.
    PlanInfo PlatformImagePurchasePlan
    Optional configuration of purchase plan for platform image.
    Publisher string
    Image Publisher in Azure Gallery Images.
    Sku string
    Image sku from the Azure Gallery Images.
    Version string
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    offer String
    Image offer from the Azure Gallery Images.
    planInfo PlatformImagePurchasePlan
    Optional configuration of purchase plan for platform image.
    publisher String
    Image Publisher in Azure Gallery Images.
    sku String
    Image sku from the Azure Gallery Images.
    version String
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    offer string
    Image offer from the Azure Gallery Images.
    planInfo PlatformImagePurchasePlan
    Optional configuration of purchase plan for platform image.
    publisher string
    Image Publisher in Azure Gallery Images.
    sku string
    Image sku from the Azure Gallery Images.
    version string
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    offer str
    Image offer from the Azure Gallery Images.
    plan_info PlatformImagePurchasePlan
    Optional configuration of purchase plan for platform image.
    publisher str
    Image Publisher in Azure Gallery Images.
    sku str
    Image sku from the Azure Gallery Images.
    version str
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    offer String
    Image offer from the Azure Gallery Images.
    planInfo Property Map
    Optional configuration of purchase plan for platform image.
    publisher String
    Image Publisher in Azure Gallery Images.
    sku String
    Image sku from the Azure Gallery Images.
    version String
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.

    ImageTemplatePlatformImageSourceResponse, ImageTemplatePlatformImageSourceResponseArgs

    Offer string
    Image offer from the Azure Gallery Images.
    PlanInfo Pulumi.AzureNative.VirtualMachineImages.Inputs.PlatformImagePurchasePlanResponse
    Optional configuration of purchase plan for platform image.
    Publisher string
    Image Publisher in Azure Gallery Images.
    Sku string
    Image sku from the Azure Gallery Images.
    Version string
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    Offer string
    Image offer from the Azure Gallery Images.
    PlanInfo PlatformImagePurchasePlanResponse
    Optional configuration of purchase plan for platform image.
    Publisher string
    Image Publisher in Azure Gallery Images.
    Sku string
    Image sku from the Azure Gallery Images.
    Version string
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    offer String
    Image offer from the Azure Gallery Images.
    planInfo PlatformImagePurchasePlanResponse
    Optional configuration of purchase plan for platform image.
    publisher String
    Image Publisher in Azure Gallery Images.
    sku String
    Image sku from the Azure Gallery Images.
    version String
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    offer string
    Image offer from the Azure Gallery Images.
    planInfo PlatformImagePurchasePlanResponse
    Optional configuration of purchase plan for platform image.
    publisher string
    Image Publisher in Azure Gallery Images.
    sku string
    Image sku from the Azure Gallery Images.
    version string
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    offer str
    Image offer from the Azure Gallery Images.
    plan_info PlatformImagePurchasePlanResponse
    Optional configuration of purchase plan for platform image.
    publisher str
    Image Publisher in Azure Gallery Images.
    sku str
    Image sku from the Azure Gallery Images.
    version str
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
    offer String
    Image offer from the Azure Gallery Images.
    planInfo Property Map
    Optional configuration of purchase plan for platform image.
    publisher String
    Image Publisher in Azure Gallery Images.
    sku String
    Image sku from the Azure Gallery Images.
    version String
    Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.

    ImageTemplatePowerShellCustomizer, ImageTemplatePowerShellCustomizerArgs

    Inline List<string>
    Array of PowerShell commands to execute
    Name string
    Friendly Name to provide context on what this customization step does
    RunAsSystem bool
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    RunElevated bool
    If specified, the PowerShell script will be run with elevated privileges
    ScriptUri string
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    Sha256Checksum string
    SHA256 checksum of the power shell script provided in the scriptUri field above
    ValidExitCodes List<int>
    Valid exit codes for the PowerShell script. [Default: 0]
    Inline []string
    Array of PowerShell commands to execute
    Name string
    Friendly Name to provide context on what this customization step does
    RunAsSystem bool
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    RunElevated bool
    If specified, the PowerShell script will be run with elevated privileges
    ScriptUri string
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    Sha256Checksum string
    SHA256 checksum of the power shell script provided in the scriptUri field above
    ValidExitCodes []int
    Valid exit codes for the PowerShell script. [Default: 0]
    inline List<String>
    Array of PowerShell commands to execute
    name String
    Friendly Name to provide context on what this customization step does
    runAsSystem Boolean
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    runElevated Boolean
    If specified, the PowerShell script will be run with elevated privileges
    scriptUri String
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum String
    SHA256 checksum of the power shell script provided in the scriptUri field above
    validExitCodes List<Integer>
    Valid exit codes for the PowerShell script. [Default: 0]
    inline string[]
    Array of PowerShell commands to execute
    name string
    Friendly Name to provide context on what this customization step does
    runAsSystem boolean
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    runElevated boolean
    If specified, the PowerShell script will be run with elevated privileges
    scriptUri string
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum string
    SHA256 checksum of the power shell script provided in the scriptUri field above
    validExitCodes number[]
    Valid exit codes for the PowerShell script. [Default: 0]
    inline Sequence[str]
    Array of PowerShell commands to execute
    name str
    Friendly Name to provide context on what this customization step does
    run_as_system bool
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    run_elevated bool
    If specified, the PowerShell script will be run with elevated privileges
    script_uri str
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256_checksum str
    SHA256 checksum of the power shell script provided in the scriptUri field above
    valid_exit_codes Sequence[int]
    Valid exit codes for the PowerShell script. [Default: 0]
    inline List<String>
    Array of PowerShell commands to execute
    name String
    Friendly Name to provide context on what this customization step does
    runAsSystem Boolean
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    runElevated Boolean
    If specified, the PowerShell script will be run with elevated privileges
    scriptUri String
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum String
    SHA256 checksum of the power shell script provided in the scriptUri field above
    validExitCodes List<Number>
    Valid exit codes for the PowerShell script. [Default: 0]

    ImageTemplatePowerShellCustomizerResponse, ImageTemplatePowerShellCustomizerResponseArgs

    Inline List<string>
    Array of PowerShell commands to execute
    Name string
    Friendly Name to provide context on what this customization step does
    RunAsSystem bool
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    RunElevated bool
    If specified, the PowerShell script will be run with elevated privileges
    ScriptUri string
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    Sha256Checksum string
    SHA256 checksum of the power shell script provided in the scriptUri field above
    ValidExitCodes List<int>
    Valid exit codes for the PowerShell script. [Default: 0]
    Inline []string
    Array of PowerShell commands to execute
    Name string
    Friendly Name to provide context on what this customization step does
    RunAsSystem bool
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    RunElevated bool
    If specified, the PowerShell script will be run with elevated privileges
    ScriptUri string
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    Sha256Checksum string
    SHA256 checksum of the power shell script provided in the scriptUri field above
    ValidExitCodes []int
    Valid exit codes for the PowerShell script. [Default: 0]
    inline List<String>
    Array of PowerShell commands to execute
    name String
    Friendly Name to provide context on what this customization step does
    runAsSystem Boolean
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    runElevated Boolean
    If specified, the PowerShell script will be run with elevated privileges
    scriptUri String
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum String
    SHA256 checksum of the power shell script provided in the scriptUri field above
    validExitCodes List<Integer>
    Valid exit codes for the PowerShell script. [Default: 0]
    inline string[]
    Array of PowerShell commands to execute
    name string
    Friendly Name to provide context on what this customization step does
    runAsSystem boolean
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    runElevated boolean
    If specified, the PowerShell script will be run with elevated privileges
    scriptUri string
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum string
    SHA256 checksum of the power shell script provided in the scriptUri field above
    validExitCodes number[]
    Valid exit codes for the PowerShell script. [Default: 0]
    inline Sequence[str]
    Array of PowerShell commands to execute
    name str
    Friendly Name to provide context on what this customization step does
    run_as_system bool
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    run_elevated bool
    If specified, the PowerShell script will be run with elevated privileges
    script_uri str
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256_checksum str
    SHA256 checksum of the power shell script provided in the scriptUri field above
    valid_exit_codes Sequence[int]
    Valid exit codes for the PowerShell script. [Default: 0]
    inline List<String>
    Array of PowerShell commands to execute
    name String
    Friendly Name to provide context on what this customization step does
    runAsSystem Boolean
    If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
    runElevated Boolean
    If specified, the PowerShell script will be run with elevated privileges
    scriptUri String
    URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum String
    SHA256 checksum of the power shell script provided in the scriptUri field above
    validExitCodes List<Number>
    Valid exit codes for the PowerShell script. [Default: 0]

    ImageTemplateRestartCustomizer, ImageTemplateRestartCustomizerArgs

    Name string
    Friendly Name to provide context on what this customization step does
    RestartCheckCommand string
    Command to check if restart succeeded [Default: '']
    RestartCommand string
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    RestartTimeout string
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    Name string
    Friendly Name to provide context on what this customization step does
    RestartCheckCommand string
    Command to check if restart succeeded [Default: '']
    RestartCommand string
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    RestartTimeout string
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    name String
    Friendly Name to provide context on what this customization step does
    restartCheckCommand String
    Command to check if restart succeeded [Default: '']
    restartCommand String
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    restartTimeout String
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    name string
    Friendly Name to provide context on what this customization step does
    restartCheckCommand string
    Command to check if restart succeeded [Default: '']
    restartCommand string
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    restartTimeout string
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    name str
    Friendly Name to provide context on what this customization step does
    restart_check_command str
    Command to check if restart succeeded [Default: '']
    restart_command str
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    restart_timeout str
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    name String
    Friendly Name to provide context on what this customization step does
    restartCheckCommand String
    Command to check if restart succeeded [Default: '']
    restartCommand String
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    restartTimeout String
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']

    ImageTemplateRestartCustomizerResponse, ImageTemplateRestartCustomizerResponseArgs

    Name string
    Friendly Name to provide context on what this customization step does
    RestartCheckCommand string
    Command to check if restart succeeded [Default: '']
    RestartCommand string
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    RestartTimeout string
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    Name string
    Friendly Name to provide context on what this customization step does
    RestartCheckCommand string
    Command to check if restart succeeded [Default: '']
    RestartCommand string
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    RestartTimeout string
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    name String
    Friendly Name to provide context on what this customization step does
    restartCheckCommand String
    Command to check if restart succeeded [Default: '']
    restartCommand String
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    restartTimeout String
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    name string
    Friendly Name to provide context on what this customization step does
    restartCheckCommand string
    Command to check if restart succeeded [Default: '']
    restartCommand string
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    restartTimeout string
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    name str
    Friendly Name to provide context on what this customization step does
    restart_check_command str
    Command to check if restart succeeded [Default: '']
    restart_command str
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    restart_timeout str
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
    name String
    Friendly Name to provide context on what this customization step does
    restartCheckCommand String
    Command to check if restart succeeded [Default: '']
    restartCommand String
    Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
    restartTimeout String
    Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']

    ImageTemplateSharedImageDistributor, ImageTemplateSharedImageDistributorArgs

    GalleryImageId string
    Resource Id of the Shared Image Gallery image
    ReplicationRegions List<string>
    A list of regions that the image will be replicated to
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags Dictionary<string, string>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    ExcludeFromLatest bool
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    StorageAccountType string | Pulumi.AzureNative.VirtualMachineImages.SharedImageStorageAccountType
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    GalleryImageId string
    Resource Id of the Shared Image Gallery image
    ReplicationRegions []string
    A list of regions that the image will be replicated to
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags map[string]string
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    ExcludeFromLatest bool
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    StorageAccountType string | SharedImageStorageAccountType
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    galleryImageId String
    Resource Id of the Shared Image Gallery image
    replicationRegions List<String>
    A list of regions that the image will be replicated to
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String,String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    excludeFromLatest Boolean
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    storageAccountType String | SharedImageStorageAccountType
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    galleryImageId string
    Resource Id of the Shared Image Gallery image
    replicationRegions string[]
    A list of regions that the image will be replicated to
    runOutputName string
    The name to be used for the associated RunOutput.
    artifactTags {[key: string]: string}
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    excludeFromLatest boolean
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    storageAccountType string | SharedImageStorageAccountType
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    gallery_image_id str
    Resource Id of the Shared Image Gallery image
    replication_regions Sequence[str]
    A list of regions that the image will be replicated to
    run_output_name str
    The name to be used for the associated RunOutput.
    artifact_tags Mapping[str, str]
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    exclude_from_latest bool
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    storage_account_type str | SharedImageStorageAccountType
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    galleryImageId String
    Resource Id of the Shared Image Gallery image
    replicationRegions List<String>
    A list of regions that the image will be replicated to
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    excludeFromLatest Boolean
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    storageAccountType String | "Standard_LRS" | "Standard_ZRS"
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).

    ImageTemplateSharedImageDistributorResponse, ImageTemplateSharedImageDistributorResponseArgs

    GalleryImageId string
    Resource Id of the Shared Image Gallery image
    ReplicationRegions List<string>
    A list of regions that the image will be replicated to
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags Dictionary<string, string>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    ExcludeFromLatest bool
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    StorageAccountType string
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    GalleryImageId string
    Resource Id of the Shared Image Gallery image
    ReplicationRegions []string
    A list of regions that the image will be replicated to
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags map[string]string
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    ExcludeFromLatest bool
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    StorageAccountType string
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    galleryImageId String
    Resource Id of the Shared Image Gallery image
    replicationRegions List<String>
    A list of regions that the image will be replicated to
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String,String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    excludeFromLatest Boolean
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    storageAccountType String
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    galleryImageId string
    Resource Id of the Shared Image Gallery image
    replicationRegions string[]
    A list of regions that the image will be replicated to
    runOutputName string
    The name to be used for the associated RunOutput.
    artifactTags {[key: string]: string}
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    excludeFromLatest boolean
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    storageAccountType string
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    gallery_image_id str
    Resource Id of the Shared Image Gallery image
    replication_regions Sequence[str]
    A list of regions that the image will be replicated to
    run_output_name str
    The name to be used for the associated RunOutput.
    artifact_tags Mapping[str, str]
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    exclude_from_latest bool
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    storage_account_type str
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
    galleryImageId String
    Resource Id of the Shared Image Gallery image
    replicationRegions List<String>
    A list of regions that the image will be replicated to
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    excludeFromLatest Boolean
    Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
    storageAccountType String
    Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).

    ImageTemplateSharedImageVersionSource, ImageTemplateSharedImageVersionSourceArgs

    ImageVersionId string
    ARM resource id of the image version in the shared image gallery
    ImageVersionId string
    ARM resource id of the image version in the shared image gallery
    imageVersionId String
    ARM resource id of the image version in the shared image gallery
    imageVersionId string
    ARM resource id of the image version in the shared image gallery
    image_version_id str
    ARM resource id of the image version in the shared image gallery
    imageVersionId String
    ARM resource id of the image version in the shared image gallery

    ImageTemplateSharedImageVersionSourceResponse, ImageTemplateSharedImageVersionSourceResponseArgs

    ImageVersionId string
    ARM resource id of the image version in the shared image gallery
    ImageVersionId string
    ARM resource id of the image version in the shared image gallery
    imageVersionId String
    ARM resource id of the image version in the shared image gallery
    imageVersionId string
    ARM resource id of the image version in the shared image gallery
    image_version_id str
    ARM resource id of the image version in the shared image gallery
    imageVersionId String
    ARM resource id of the image version in the shared image gallery

    ImageTemplateShellCustomizer, ImageTemplateShellCustomizerArgs

    Inline List<string>
    Array of shell commands to execute
    Name string
    Friendly Name to provide context on what this customization step does
    ScriptUri string
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    Sha256Checksum string
    SHA256 checksum of the shell script provided in the scriptUri field
    Inline []string
    Array of shell commands to execute
    Name string
    Friendly Name to provide context on what this customization step does
    ScriptUri string
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    Sha256Checksum string
    SHA256 checksum of the shell script provided in the scriptUri field
    inline List<String>
    Array of shell commands to execute
    name String
    Friendly Name to provide context on what this customization step does
    scriptUri String
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum String
    SHA256 checksum of the shell script provided in the scriptUri field
    inline string[]
    Array of shell commands to execute
    name string
    Friendly Name to provide context on what this customization step does
    scriptUri string
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum string
    SHA256 checksum of the shell script provided in the scriptUri field
    inline Sequence[str]
    Array of shell commands to execute
    name str
    Friendly Name to provide context on what this customization step does
    script_uri str
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256_checksum str
    SHA256 checksum of the shell script provided in the scriptUri field
    inline List<String>
    Array of shell commands to execute
    name String
    Friendly Name to provide context on what this customization step does
    scriptUri String
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum String
    SHA256 checksum of the shell script provided in the scriptUri field

    ImageTemplateShellCustomizerResponse, ImageTemplateShellCustomizerResponseArgs

    Inline List<string>
    Array of shell commands to execute
    Name string
    Friendly Name to provide context on what this customization step does
    ScriptUri string
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    Sha256Checksum string
    SHA256 checksum of the shell script provided in the scriptUri field
    Inline []string
    Array of shell commands to execute
    Name string
    Friendly Name to provide context on what this customization step does
    ScriptUri string
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    Sha256Checksum string
    SHA256 checksum of the shell script provided in the scriptUri field
    inline List<String>
    Array of shell commands to execute
    name String
    Friendly Name to provide context on what this customization step does
    scriptUri String
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum String
    SHA256 checksum of the shell script provided in the scriptUri field
    inline string[]
    Array of shell commands to execute
    name string
    Friendly Name to provide context on what this customization step does
    scriptUri string
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum string
    SHA256 checksum of the shell script provided in the scriptUri field
    inline Sequence[str]
    Array of shell commands to execute
    name str
    Friendly Name to provide context on what this customization step does
    script_uri str
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256_checksum str
    SHA256 checksum of the shell script provided in the scriptUri field
    inline List<String>
    Array of shell commands to execute
    name String
    Friendly Name to provide context on what this customization step does
    scriptUri String
    URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
    sha256Checksum String
    SHA256 checksum of the shell script provided in the scriptUri field

    ImageTemplateVhdDistributor, ImageTemplateVhdDistributorArgs

    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags Dictionary<string, string>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags map[string]string
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String,String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    runOutputName string
    The name to be used for the associated RunOutput.
    artifactTags {[key: string]: string}
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    run_output_name str
    The name to be used for the associated RunOutput.
    artifact_tags Mapping[str, str]
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.

    ImageTemplateVhdDistributorResponse, ImageTemplateVhdDistributorResponseArgs

    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags Dictionary<string, string>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    RunOutputName string
    The name to be used for the associated RunOutput.
    ArtifactTags map[string]string
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String,String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    runOutputName string
    The name to be used for the associated RunOutput.
    artifactTags {[key: string]: string}
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    run_output_name str
    The name to be used for the associated RunOutput.
    artifact_tags Mapping[str, str]
    Tags that will be applied to the artifact once it has been created/updated by the distributor.
    runOutputName String
    The name to be used for the associated RunOutput.
    artifactTags Map<String>
    Tags that will be applied to the artifact once it has been created/updated by the distributor.

    ImageTemplateVmProfile, ImageTemplateVmProfileArgs

    OsDiskSizeGB int
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    VmSize string
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    VnetConfig Pulumi.AzureNative.VirtualMachineImages.Inputs.VirtualNetworkConfig
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    OsDiskSizeGB int
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    VmSize string
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    VnetConfig VirtualNetworkConfig
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    osDiskSizeGB Integer
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    vmSize String
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    vnetConfig VirtualNetworkConfig
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    osDiskSizeGB number
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    vmSize string
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    vnetConfig VirtualNetworkConfig
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    os_disk_size_gb int
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    vm_size str
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    vnet_config VirtualNetworkConfig
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    osDiskSizeGB Number
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    vmSize String
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    vnetConfig Property Map
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.

    ImageTemplateVmProfileResponse, ImageTemplateVmProfileResponseArgs

    OsDiskSizeGB int
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    VmSize string
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    VnetConfig Pulumi.AzureNative.VirtualMachineImages.Inputs.VirtualNetworkConfigResponse
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    OsDiskSizeGB int
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    VmSize string
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    VnetConfig VirtualNetworkConfigResponse
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    osDiskSizeGB Integer
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    vmSize String
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    vnetConfig VirtualNetworkConfigResponse
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    osDiskSizeGB number
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    vmSize string
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    vnetConfig VirtualNetworkConfigResponse
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    os_disk_size_gb int
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    vm_size str
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    vnet_config VirtualNetworkConfigResponse
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
    osDiskSizeGB Number
    Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
    vmSize String
    Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
    vnetConfig Property Map
    Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.

    ImageTemplateWindowsUpdateCustomizer, ImageTemplateWindowsUpdateCustomizerArgs

    Filters List<string>
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    Name string
    Friendly Name to provide context on what this customization step does
    SearchCriteria string
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    UpdateLimit int
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    Filters []string
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    Name string
    Friendly Name to provide context on what this customization step does
    SearchCriteria string
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    UpdateLimit int
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    filters List<String>
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    name String
    Friendly Name to provide context on what this customization step does
    searchCriteria String
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    updateLimit Integer
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    filters string[]
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    name string
    Friendly Name to provide context on what this customization step does
    searchCriteria string
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    updateLimit number
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    filters Sequence[str]
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    name str
    Friendly Name to provide context on what this customization step does
    search_criteria str
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    update_limit int
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    filters List<String>
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    name String
    Friendly Name to provide context on what this customization step does
    searchCriteria String
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    updateLimit Number
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)

    ImageTemplateWindowsUpdateCustomizerResponse, ImageTemplateWindowsUpdateCustomizerResponseArgs

    Filters List<string>
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    Name string
    Friendly Name to provide context on what this customization step does
    SearchCriteria string
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    UpdateLimit int
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    Filters []string
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    Name string
    Friendly Name to provide context on what this customization step does
    SearchCriteria string
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    UpdateLimit int
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    filters List<String>
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    name String
    Friendly Name to provide context on what this customization step does
    searchCriteria String
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    updateLimit Integer
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    filters string[]
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    name string
    Friendly Name to provide context on what this customization step does
    searchCriteria string
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    updateLimit number
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    filters Sequence[str]
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    name str
    Friendly Name to provide context on what this customization step does
    search_criteria str
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    update_limit int
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
    filters List<String>
    Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
    name String
    Friendly Name to provide context on what this customization step does
    searchCriteria String
    Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
    updateLimit Number
    Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)

    PlatformImagePurchasePlan, PlatformImagePurchasePlanArgs

    PlanName string
    Name of the purchase plan.
    PlanProduct string
    Product of the purchase plan.
    PlanPublisher string
    Publisher of the purchase plan.
    PlanName string
    Name of the purchase plan.
    PlanProduct string
    Product of the purchase plan.
    PlanPublisher string
    Publisher of the purchase plan.
    planName String
    Name of the purchase plan.
    planProduct String
    Product of the purchase plan.
    planPublisher String
    Publisher of the purchase plan.
    planName string
    Name of the purchase plan.
    planProduct string
    Product of the purchase plan.
    planPublisher string
    Publisher of the purchase plan.
    plan_name str
    Name of the purchase plan.
    plan_product str
    Product of the purchase plan.
    plan_publisher str
    Publisher of the purchase plan.
    planName String
    Name of the purchase plan.
    planProduct String
    Product of the purchase plan.
    planPublisher String
    Publisher of the purchase plan.

    PlatformImagePurchasePlanResponse, PlatformImagePurchasePlanResponseArgs

    PlanName string
    Name of the purchase plan.
    PlanProduct string
    Product of the purchase plan.
    PlanPublisher string
    Publisher of the purchase plan.
    PlanName string
    Name of the purchase plan.
    PlanProduct string
    Product of the purchase plan.
    PlanPublisher string
    Publisher of the purchase plan.
    planName String
    Name of the purchase plan.
    planProduct String
    Product of the purchase plan.
    planPublisher String
    Publisher of the purchase plan.
    planName string
    Name of the purchase plan.
    planProduct string
    Product of the purchase plan.
    planPublisher string
    Publisher of the purchase plan.
    plan_name str
    Name of the purchase plan.
    plan_product str
    Product of the purchase plan.
    plan_publisher str
    Publisher of the purchase plan.
    planName String
    Name of the purchase plan.
    planProduct String
    Product of the purchase plan.
    planPublisher String
    Publisher of the purchase plan.

    ProvisioningErrorResponse, ProvisioningErrorResponseArgs

    Message string
    Verbose error message about the provisioning failure
    ProvisioningErrorCode string
    Error code of the provisioning failure
    Message string
    Verbose error message about the provisioning failure
    ProvisioningErrorCode string
    Error code of the provisioning failure
    message String
    Verbose error message about the provisioning failure
    provisioningErrorCode String
    Error code of the provisioning failure
    message string
    Verbose error message about the provisioning failure
    provisioningErrorCode string
    Error code of the provisioning failure
    message str
    Verbose error message about the provisioning failure
    provisioning_error_code str
    Error code of the provisioning failure
    message String
    Verbose error message about the provisioning failure
    provisioningErrorCode String
    Error code of the provisioning failure

    ResourceIdentityType, ResourceIdentityTypeArgs

    UserAssigned
    UserAssigned
    None
    None
    ResourceIdentityTypeUserAssigned
    UserAssigned
    ResourceIdentityTypeNone
    None
    UserAssigned
    UserAssigned
    None
    None
    UserAssigned
    UserAssigned
    None
    None
    USER_ASSIGNED
    UserAssigned
    NONE
    None
    "UserAssigned"
    UserAssigned
    "None"
    None

    SharedImageStorageAccountType, SharedImageStorageAccountTypeArgs

    Standard_LRS
    Standard_LRS
    Standard_ZRS
    Standard_ZRS
    SharedImageStorageAccountType_Standard_LRS
    Standard_LRS
    SharedImageStorageAccountType_Standard_ZRS
    Standard_ZRS
    Standard_LRS
    Standard_LRS
    Standard_ZRS
    Standard_ZRS
    Standard_LRS
    Standard_LRS
    Standard_ZRS
    Standard_ZRS
    STANDARD_LRS
    Standard_LRS
    STANDARD_ZRS
    Standard_ZRS
    "Standard_LRS"
    Standard_LRS
    "Standard_ZRS"
    Standard_ZRS

    VirtualNetworkConfig, VirtualNetworkConfigArgs

    SubnetId string
    Resource id of a pre-existing subnet.
    SubnetId string
    Resource id of a pre-existing subnet.
    subnetId String
    Resource id of a pre-existing subnet.
    subnetId string
    Resource id of a pre-existing subnet.
    subnet_id str
    Resource id of a pre-existing subnet.
    subnetId String
    Resource id of a pre-existing subnet.

    VirtualNetworkConfigResponse, VirtualNetworkConfigResponseArgs

    SubnetId string
    Resource id of a pre-existing subnet.
    SubnetId string
    Resource id of a pre-existing subnet.
    subnetId String
    Resource id of a pre-existing subnet.
    subnetId string
    Resource id of a pre-existing subnet.
    subnet_id str
    Resource id of a pre-existing subnet.
    subnetId String
    Resource id of a pre-existing subnet.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:virtualmachineimages:VirtualMachineImageTemplate myImageTemplate /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi