1. Packages
  2. Azure Classic
  3. API Docs
  4. systemcenter
  5. VirtualMachineManagerVirtualMachineTemplate

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.systemcenter.VirtualMachineManagerVirtualMachineTemplate

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages a System Center Virtual Machine Manager Virtual Machine Template.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleVirtualMachineManagerServer = new azure.systemcenter.VirtualMachineManagerServer("example", {
        name: "example-scvmmms",
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        customLocationId: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
        fqdn: "example.labtest",
        username: "testUser",
        password: "H@Sh1CoR3!",
    });
    const example = azure.systemcenter.getVirtualMachineManagerInventoryItemsOutput({
        inventoryType: "VirtualMachineTemplate",
        systemCenterVirtualMachineManagerServerId: exampleVirtualMachineManagerServer.id,
    });
    const exampleVirtualMachineManagerVirtualMachineTemplate = new azure.systemcenter.VirtualMachineManagerVirtualMachineTemplate("example", {
        name: "example-scvmmvmtemplate",
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        customLocationId: exampleVirtualMachineManagerServer.customLocationId,
        systemCenterVirtualMachineManagerServerInventoryItemId: example.apply(example => example.inventoryItems?.[0]?.id),
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_virtual_machine_manager_server = azure.systemcenter.VirtualMachineManagerServer("example",
        name="example-scvmmms",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        custom_location_id="/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
        fqdn="example.labtest",
        username="testUser",
        password="H@Sh1CoR3!")
    example = azure.systemcenter.get_virtual_machine_manager_inventory_items_output(inventory_type="VirtualMachineTemplate",
        system_center_virtual_machine_manager_server_id=example_virtual_machine_manager_server.id)
    example_virtual_machine_manager_virtual_machine_template = azure.systemcenter.VirtualMachineManagerVirtualMachineTemplate("example",
        name="example-scvmmvmtemplate",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        custom_location_id=example_virtual_machine_manager_server.custom_location_id,
        system_center_virtual_machine_manager_server_inventory_item_id=example.inventory_items[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/systemcenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualMachineManagerServer, err := systemcenter.NewVirtualMachineManagerServer(ctx, "example", &systemcenter.VirtualMachineManagerServerArgs{
    			Name:              pulumi.String("example-scvmmms"),
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			CustomLocationId:  pulumi.String("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1"),
    			Fqdn:              pulumi.String("example.labtest"),
    			Username:          pulumi.String("testUser"),
    			Password:          pulumi.String("H@Sh1CoR3!"),
    		})
    		if err != nil {
    			return err
    		}
    		example := systemcenter.GetVirtualMachineManagerInventoryItemsOutput(ctx, systemcenter.GetVirtualMachineManagerInventoryItemsOutputArgs{
    			InventoryType: pulumi.String("VirtualMachineTemplate"),
    			SystemCenterVirtualMachineManagerServerId: exampleVirtualMachineManagerServer.ID(),
    		}, nil)
    		_, err = systemcenter.NewVirtualMachineManagerVirtualMachineTemplate(ctx, "example", &systemcenter.VirtualMachineManagerVirtualMachineTemplateArgs{
    			Name:              pulumi.String("example-scvmmvmtemplate"),
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			CustomLocationId:  exampleVirtualMachineManagerServer.CustomLocationId,
    			SystemCenterVirtualMachineManagerServerInventoryItemId: pulumi.String(example.ApplyT(func(example systemcenter.GetVirtualMachineManagerInventoryItemsResult) (*string, error) {
    				return &example.InventoryItems[0].Id, nil
    			}).(pulumi.StringPtrOutput)),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleVirtualMachineManagerServer = new Azure.SystemCenter.VirtualMachineManagerServer("example", new()
        {
            Name = "example-scvmmms",
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            CustomLocationId = "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
            Fqdn = "example.labtest",
            Username = "testUser",
            Password = "H@Sh1CoR3!",
        });
    
        var example = Azure.SystemCenter.GetVirtualMachineManagerInventoryItems.Invoke(new()
        {
            InventoryType = "VirtualMachineTemplate",
            SystemCenterVirtualMachineManagerServerId = exampleVirtualMachineManagerServer.Id,
        });
    
        var exampleVirtualMachineManagerVirtualMachineTemplate = new Azure.SystemCenter.VirtualMachineManagerVirtualMachineTemplate("example", new()
        {
            Name = "example-scvmmvmtemplate",
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            CustomLocationId = exampleVirtualMachineManagerServer.CustomLocationId,
            SystemCenterVirtualMachineManagerServerInventoryItemId = example.Apply(getVirtualMachineManagerInventoryItemsResult => getVirtualMachineManagerInventoryItemsResult.InventoryItems[0]?.Id),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.systemcenter.VirtualMachineManagerServer;
    import com.pulumi.azure.systemcenter.VirtualMachineManagerServerArgs;
    import com.pulumi.azure.systemcenter.SystemcenterFunctions;
    import com.pulumi.azure.systemcenter.inputs.GetVirtualMachineManagerInventoryItemsArgs;
    import com.pulumi.azure.systemcenter.VirtualMachineManagerVirtualMachineTemplate;
    import com.pulumi.azure.systemcenter.VirtualMachineManagerVirtualMachineTemplateArgs;
    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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleVirtualMachineManagerServer = new VirtualMachineManagerServer("exampleVirtualMachineManagerServer", VirtualMachineManagerServerArgs.builder()
                .name("example-scvmmms")
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .customLocationId("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1")
                .fqdn("example.labtest")
                .username("testUser")
                .password("H@Sh1CoR3!")
                .build());
    
            final var example = SystemcenterFunctions.getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs.builder()
                .inventoryType("VirtualMachineTemplate")
                .systemCenterVirtualMachineManagerServerId(exampleVirtualMachineManagerServer.id())
                .build());
    
            var exampleVirtualMachineManagerVirtualMachineTemplate = new VirtualMachineManagerVirtualMachineTemplate("exampleVirtualMachineManagerVirtualMachineTemplate", VirtualMachineManagerVirtualMachineTemplateArgs.builder()
                .name("example-scvmmvmtemplate")
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .customLocationId(exampleVirtualMachineManagerServer.customLocationId())
                .systemCenterVirtualMachineManagerServerInventoryItemId(example.applyValue(getVirtualMachineManagerInventoryItemsResult -> getVirtualMachineManagerInventoryItemsResult).applyValue(example -> example.applyValue(getVirtualMachineManagerInventoryItemsResult -> getVirtualMachineManagerInventoryItemsResult.inventoryItems()[0].id())))
                .build());
    
        }
    }
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        name: example
        properties:
          name: example-resources
          location: West Europe
      exampleVirtualMachineManagerServer:
        type: azure:systemcenter:VirtualMachineManagerServer
        name: example
        properties:
          name: example-scvmmms
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          customLocationId: /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1
          fqdn: example.labtest
          username: testUser
          password: H@Sh1CoR3!
      exampleVirtualMachineManagerVirtualMachineTemplate:
        type: azure:systemcenter:VirtualMachineManagerVirtualMachineTemplate
        name: example
        properties:
          name: example-scvmmvmtemplate
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          customLocationId: ${exampleVirtualMachineManagerServer.customLocationId}
          systemCenterVirtualMachineManagerServerInventoryItemId: ${example.inventoryItems[0].id}
    variables:
      example:
        fn::invoke:
          Function: azure:systemcenter:getVirtualMachineManagerInventoryItems
          Arguments:
            inventoryType: VirtualMachineTemplate
            systemCenterVirtualMachineManagerServerId: ${exampleVirtualMachineManagerServer.id}
    

    Create VirtualMachineManagerVirtualMachineTemplate Resource

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

    Constructor syntax

    new VirtualMachineManagerVirtualMachineTemplate(name: string, args: VirtualMachineManagerVirtualMachineTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualMachineManagerVirtualMachineTemplate(resource_name: str,
                                                    args: VirtualMachineManagerVirtualMachineTemplateArgs,
                                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualMachineManagerVirtualMachineTemplate(resource_name: str,
                                                    opts: Optional[ResourceOptions] = None,
                                                    custom_location_id: Optional[str] = None,
                                                    resource_group_name: Optional[str] = None,
                                                    system_center_virtual_machine_manager_server_inventory_item_id: Optional[str] = None,
                                                    location: Optional[str] = None,
                                                    name: Optional[str] = None,
                                                    tags: Optional[Mapping[str, str]] = None)
    func NewVirtualMachineManagerVirtualMachineTemplate(ctx *Context, name string, args VirtualMachineManagerVirtualMachineTemplateArgs, opts ...ResourceOption) (*VirtualMachineManagerVirtualMachineTemplate, error)
    public VirtualMachineManagerVirtualMachineTemplate(string name, VirtualMachineManagerVirtualMachineTemplateArgs args, CustomResourceOptions? opts = null)
    public VirtualMachineManagerVirtualMachineTemplate(String name, VirtualMachineManagerVirtualMachineTemplateArgs args)
    public VirtualMachineManagerVirtualMachineTemplate(String name, VirtualMachineManagerVirtualMachineTemplateArgs args, CustomResourceOptions options)
    
    type: azure:systemcenter:VirtualMachineManagerVirtualMachineTemplate
    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 VirtualMachineManagerVirtualMachineTemplateArgs
    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 VirtualMachineManagerVirtualMachineTemplateArgs
    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 VirtualMachineManagerVirtualMachineTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualMachineManagerVirtualMachineTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualMachineManagerVirtualMachineTemplateArgs
    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 virtualMachineManagerVirtualMachineTemplateResource = new Azure.SystemCenter.VirtualMachineManagerVirtualMachineTemplate("virtualMachineManagerVirtualMachineTemplateResource", new()
    {
        CustomLocationId = "string",
        ResourceGroupName = "string",
        SystemCenterVirtualMachineManagerServerInventoryItemId = "string",
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := systemcenter.NewVirtualMachineManagerVirtualMachineTemplate(ctx, "virtualMachineManagerVirtualMachineTemplateResource", &systemcenter.VirtualMachineManagerVirtualMachineTemplateArgs{
    	CustomLocationId:  pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	SystemCenterVirtualMachineManagerServerInventoryItemId: pulumi.String("string"),
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var virtualMachineManagerVirtualMachineTemplateResource = new VirtualMachineManagerVirtualMachineTemplate("virtualMachineManagerVirtualMachineTemplateResource", VirtualMachineManagerVirtualMachineTemplateArgs.builder()
        .customLocationId("string")
        .resourceGroupName("string")
        .systemCenterVirtualMachineManagerServerInventoryItemId("string")
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    virtual_machine_manager_virtual_machine_template_resource = azure.systemcenter.VirtualMachineManagerVirtualMachineTemplate("virtualMachineManagerVirtualMachineTemplateResource",
        custom_location_id="string",
        resource_group_name="string",
        system_center_virtual_machine_manager_server_inventory_item_id="string",
        location="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const virtualMachineManagerVirtualMachineTemplateResource = new azure.systemcenter.VirtualMachineManagerVirtualMachineTemplate("virtualMachineManagerVirtualMachineTemplateResource", {
        customLocationId: "string",
        resourceGroupName: "string",
        systemCenterVirtualMachineManagerServerInventoryItemId: "string",
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:systemcenter:VirtualMachineManagerVirtualMachineTemplate
    properties:
        customLocationId: string
        location: string
        name: string
        resourceGroupName: string
        systemCenterVirtualMachineManagerServerInventoryItemId: string
        tags:
            string: string
    

    VirtualMachineManagerVirtualMachineTemplate 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 VirtualMachineManagerVirtualMachineTemplate resource accepts the following input properties:

    CustomLocationId string
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    SystemCenterVirtualMachineManagerServerInventoryItemId string
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    Location string
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    Name string
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    CustomLocationId string
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    SystemCenterVirtualMachineManagerServerInventoryItemId string
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    Location string
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    Name string
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    customLocationId String
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    systemCenterVirtualMachineManagerServerInventoryItemId String
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    location String
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    name String
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    customLocationId string
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    systemCenterVirtualMachineManagerServerInventoryItemId string
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    location string
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    name string
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    custom_location_id str
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    system_center_virtual_machine_manager_server_inventory_item_id str
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    location str
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    name str
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    customLocationId String
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    systemCenterVirtualMachineManagerServerInventoryItemId String
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    location String
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    name String
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VirtualMachineManagerVirtualMachineTemplate Resource

    Get an existing VirtualMachineManagerVirtualMachineTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VirtualMachineManagerVirtualMachineTemplateState, opts?: CustomResourceOptions): VirtualMachineManagerVirtualMachineTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_location_id: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            system_center_virtual_machine_manager_server_inventory_item_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> VirtualMachineManagerVirtualMachineTemplate
    func GetVirtualMachineManagerVirtualMachineTemplate(ctx *Context, name string, id IDInput, state *VirtualMachineManagerVirtualMachineTemplateState, opts ...ResourceOption) (*VirtualMachineManagerVirtualMachineTemplate, error)
    public static VirtualMachineManagerVirtualMachineTemplate Get(string name, Input<string> id, VirtualMachineManagerVirtualMachineTemplateState? state, CustomResourceOptions? opts = null)
    public static VirtualMachineManagerVirtualMachineTemplate get(String name, Output<String> id, VirtualMachineManagerVirtualMachineTemplateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CustomLocationId string
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    Location string
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    Name string
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    SystemCenterVirtualMachineManagerServerInventoryItemId string
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    CustomLocationId string
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    Location string
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    Name string
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    SystemCenterVirtualMachineManagerServerInventoryItemId string
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    customLocationId String
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    location String
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    name String
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    systemCenterVirtualMachineManagerServerInventoryItemId String
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    customLocationId string
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    location string
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    name string
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    systemCenterVirtualMachineManagerServerInventoryItemId string
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    custom_location_id str
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    location str
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    name str
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    system_center_virtual_machine_manager_server_inventory_item_id str
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.
    customLocationId String
    The ID of the Custom Location for the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    location String
    The Azure Region where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    name String
    The name of the System Center Virtual Machine Manager Virtual Machine Template. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group where the System Center Virtual Machine Manager Virtual Machine Template should exist. Changing this forces a new resource to be created.
    systemCenterVirtualMachineManagerServerInventoryItemId String
    The ID of the System Center Virtual Machine Manager Server Inventory Item. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the System Center Virtual Machine Manager Virtual Machine Template.

    Import

    System Center Virtual Machine Manager Virtual Machine Templates can be imported into Pulumi using the resource id, e.g.

    $ pulumi import azure:systemcenter/virtualMachineManagerVirtualMachineTemplate:VirtualMachineManagerVirtualMachineTemplate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ScVmm/virtualMachineTemplates/virtualMachineTemplate1
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi