We recommend using Azure Native.
azure.compute.RestorePointCollection
Explore with Pulumi AI
Manages a Virtual Machine Restore Point Collection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as std from "@pulumi/std";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
    name: "example-network",
    addressSpaces: ["10.0.0.0/16"],
    location: example.location,
    resourceGroupName: example.name,
});
const exampleSubnet = new azure.network.Subnet("example", {
    name: "internal",
    resourceGroupName: example.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.0.2.0/24"],
});
const exampleNetworkInterface = new azure.network.NetworkInterface("example", {
    name: "example-nic",
    location: example.location,
    resourceGroupName: example.name,
    ipConfigurations: [{
        name: "internal",
        subnetId: exampleSubnet.id,
        privateIpAddressAllocation: "Dynamic",
    }],
});
const exampleLinuxVirtualMachine = new azure.compute.LinuxVirtualMachine("example", {
    name: "example-machine",
    resourceGroupName: example.name,
    location: example.location,
    size: "Standard_F2",
    adminUsername: "adminuser",
    networkInterfaceIds: [exampleNetworkInterface.id],
    adminSshKeys: [{
        username: "adminuser",
        publicKey: std.file({
            input: "~/.ssh/id_rsa.pub",
        }).then(invoke => invoke.result),
    }],
    osDisk: {
        caching: "ReadWrite",
        storageAccountType: "Standard_LRS",
    },
    sourceImageReference: {
        publisher: "Canonical",
        offer: "0001-com-ubuntu-server-jammy",
        sku: "22_04-lts",
        version: "latest",
    },
});
const exampleRestorePointCollection = new azure.compute.RestorePointCollection("example", {
    name: "example-collection",
    resourceGroupName: example.name,
    location: exampleLinuxVirtualMachine.location,
    sourceVirtualMachineId: exampleLinuxVirtualMachine.id,
});
import pulumi
import pulumi_azure as azure
import pulumi_std as std
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("example",
    name="example-network",
    address_spaces=["10.0.0.0/16"],
    location=example.location,
    resource_group_name=example.name)
example_subnet = azure.network.Subnet("example",
    name="internal",
    resource_group_name=example.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.0.2.0/24"])
example_network_interface = azure.network.NetworkInterface("example",
    name="example-nic",
    location=example.location,
    resource_group_name=example.name,
    ip_configurations=[{
        "name": "internal",
        "subnet_id": example_subnet.id,
        "private_ip_address_allocation": "Dynamic",
    }])
example_linux_virtual_machine = azure.compute.LinuxVirtualMachine("example",
    name="example-machine",
    resource_group_name=example.name,
    location=example.location,
    size="Standard_F2",
    admin_username="adminuser",
    network_interface_ids=[example_network_interface.id],
    admin_ssh_keys=[{
        "username": "adminuser",
        "public_key": std.file(input="~/.ssh/id_rsa.pub").result,
    }],
    os_disk={
        "caching": "ReadWrite",
        "storage_account_type": "Standard_LRS",
    },
    source_image_reference={
        "publisher": "Canonical",
        "offer": "0001-com-ubuntu-server-jammy",
        "sku": "22_04-lts",
        "version": "latest",
    })
example_restore_point_collection = azure.compute.RestorePointCollection("example",
    name="example-collection",
    resource_group_name=example.name,
    location=example_linux_virtual_machine.location,
    source_virtual_machine_id=example_linux_virtual_machine.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
	"github.com/pulumi/pulumi-std/sdk/go/std"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
			Name: pulumi.String("example-network"),
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.0.0.0/16"),
			},
			Location:          example.Location,
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
			Name:               pulumi.String("internal"),
			ResourceGroupName:  example.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.0.2.0/24"),
			},
		})
		if err != nil {
			return err
		}
		exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "example", &network.NetworkInterfaceArgs{
			Name:              pulumi.String("example-nic"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			IpConfigurations: network.NetworkInterfaceIpConfigurationArray{
				&network.NetworkInterfaceIpConfigurationArgs{
					Name:                       pulumi.String("internal"),
					SubnetId:                   exampleSubnet.ID(),
					PrivateIpAddressAllocation: pulumi.String("Dynamic"),
				},
			},
		})
		if err != nil {
			return err
		}
		invokeFile, err := std.File(ctx, &std.FileArgs{
			Input: "~/.ssh/id_rsa.pub",
		}, nil)
		if err != nil {
			return err
		}
		exampleLinuxVirtualMachine, err := compute.NewLinuxVirtualMachine(ctx, "example", &compute.LinuxVirtualMachineArgs{
			Name:              pulumi.String("example-machine"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Size:              pulumi.String("Standard_F2"),
			AdminUsername:     pulumi.String("adminuser"),
			NetworkInterfaceIds: pulumi.StringArray{
				exampleNetworkInterface.ID(),
			},
			AdminSshKeys: compute.LinuxVirtualMachineAdminSshKeyArray{
				&compute.LinuxVirtualMachineAdminSshKeyArgs{
					Username:  pulumi.String("adminuser"),
					PublicKey: pulumi.String(invokeFile.Result),
				},
			},
			OsDisk: &compute.LinuxVirtualMachineOsDiskArgs{
				Caching:            pulumi.String("ReadWrite"),
				StorageAccountType: pulumi.String("Standard_LRS"),
			},
			SourceImageReference: &compute.LinuxVirtualMachineSourceImageReferenceArgs{
				Publisher: pulumi.String("Canonical"),
				Offer:     pulumi.String("0001-com-ubuntu-server-jammy"),
				Sku:       pulumi.String("22_04-lts"),
				Version:   pulumi.String("latest"),
			},
		})
		if err != nil {
			return err
		}
		_, err = compute.NewRestorePointCollection(ctx, "example", &compute.RestorePointCollectionArgs{
			Name:                   pulumi.String("example-collection"),
			ResourceGroupName:      example.Name,
			Location:               exampleLinuxVirtualMachine.Location,
			SourceVirtualMachineId: exampleLinuxVirtualMachine.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
    {
        Name = "example-network",
        AddressSpaces = new[]
        {
            "10.0.0.0/16",
        },
        Location = example.Location,
        ResourceGroupName = example.Name,
    });
    var exampleSubnet = new Azure.Network.Subnet("example", new()
    {
        Name = "internal",
        ResourceGroupName = example.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.0.2.0/24",
        },
    });
    var exampleNetworkInterface = new Azure.Network.NetworkInterface("example", new()
    {
        Name = "example-nic",
        Location = example.Location,
        ResourceGroupName = example.Name,
        IpConfigurations = new[]
        {
            new Azure.Network.Inputs.NetworkInterfaceIpConfigurationArgs
            {
                Name = "internal",
                SubnetId = exampleSubnet.Id,
                PrivateIpAddressAllocation = "Dynamic",
            },
        },
    });
    var exampleLinuxVirtualMachine = new Azure.Compute.LinuxVirtualMachine("example", new()
    {
        Name = "example-machine",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Size = "Standard_F2",
        AdminUsername = "adminuser",
        NetworkInterfaceIds = new[]
        {
            exampleNetworkInterface.Id,
        },
        AdminSshKeys = new[]
        {
            new Azure.Compute.Inputs.LinuxVirtualMachineAdminSshKeyArgs
            {
                Username = "adminuser",
                PublicKey = Std.File.Invoke(new()
                {
                    Input = "~/.ssh/id_rsa.pub",
                }).Apply(invoke => invoke.Result),
            },
        },
        OsDisk = new Azure.Compute.Inputs.LinuxVirtualMachineOsDiskArgs
        {
            Caching = "ReadWrite",
            StorageAccountType = "Standard_LRS",
        },
        SourceImageReference = new Azure.Compute.Inputs.LinuxVirtualMachineSourceImageReferenceArgs
        {
            Publisher = "Canonical",
            Offer = "0001-com-ubuntu-server-jammy",
            Sku = "22_04-lts",
            Version = "latest",
        },
    });
    var exampleRestorePointCollection = new Azure.Compute.RestorePointCollection("example", new()
    {
        Name = "example-collection",
        ResourceGroupName = example.Name,
        Location = exampleLinuxVirtualMachine.Location,
        SourceVirtualMachineId = exampleLinuxVirtualMachine.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.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.NetworkInterface;
import com.pulumi.azure.network.NetworkInterfaceArgs;
import com.pulumi.azure.network.inputs.NetworkInterfaceIpConfigurationArgs;
import com.pulumi.azure.compute.LinuxVirtualMachine;
import com.pulumi.azure.compute.LinuxVirtualMachineArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineAdminSshKeyArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineOsDiskArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineSourceImageReferenceArgs;
import com.pulumi.azure.compute.RestorePointCollection;
import com.pulumi.azure.compute.RestorePointCollectionArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
            .name("example-network")
            .addressSpaces("10.0.0.0/16")
            .location(example.location())
            .resourceGroupName(example.name())
            .build());
        var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
            .name("internal")
            .resourceGroupName(example.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.0.2.0/24")
            .build());
        var exampleNetworkInterface = new NetworkInterface("exampleNetworkInterface", NetworkInterfaceArgs.builder()
            .name("example-nic")
            .location(example.location())
            .resourceGroupName(example.name())
            .ipConfigurations(NetworkInterfaceIpConfigurationArgs.builder()
                .name("internal")
                .subnetId(exampleSubnet.id())
                .privateIpAddressAllocation("Dynamic")
                .build())
            .build());
        var exampleLinuxVirtualMachine = new LinuxVirtualMachine("exampleLinuxVirtualMachine", LinuxVirtualMachineArgs.builder()
            .name("example-machine")
            .resourceGroupName(example.name())
            .location(example.location())
            .size("Standard_F2")
            .adminUsername("adminuser")
            .networkInterfaceIds(exampleNetworkInterface.id())
            .adminSshKeys(LinuxVirtualMachineAdminSshKeyArgs.builder()
                .username("adminuser")
                .publicKey(StdFunctions.file(FileArgs.builder()
                    .input("~/.ssh/id_rsa.pub")
                    .build()).result())
                .build())
            .osDisk(LinuxVirtualMachineOsDiskArgs.builder()
                .caching("ReadWrite")
                .storageAccountType("Standard_LRS")
                .build())
            .sourceImageReference(LinuxVirtualMachineSourceImageReferenceArgs.builder()
                .publisher("Canonical")
                .offer("0001-com-ubuntu-server-jammy")
                .sku("22_04-lts")
                .version("latest")
                .build())
            .build());
        var exampleRestorePointCollection = new RestorePointCollection("exampleRestorePointCollection", RestorePointCollectionArgs.builder()
            .name("example-collection")
            .resourceGroupName(example.name())
            .location(exampleLinuxVirtualMachine.location())
            .sourceVirtualMachineId(exampleLinuxVirtualMachine.id())
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    name: example
    properties:
      name: example-network
      addressSpaces:
        - 10.0.0.0/16
      location: ${example.location}
      resourceGroupName: ${example.name}
  exampleSubnet:
    type: azure:network:Subnet
    name: example
    properties:
      name: internal
      resourceGroupName: ${example.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.0.2.0/24
  exampleNetworkInterface:
    type: azure:network:NetworkInterface
    name: example
    properties:
      name: example-nic
      location: ${example.location}
      resourceGroupName: ${example.name}
      ipConfigurations:
        - name: internal
          subnetId: ${exampleSubnet.id}
          privateIpAddressAllocation: Dynamic
  exampleLinuxVirtualMachine:
    type: azure:compute:LinuxVirtualMachine
    name: example
    properties:
      name: example-machine
      resourceGroupName: ${example.name}
      location: ${example.location}
      size: Standard_F2
      adminUsername: adminuser
      networkInterfaceIds:
        - ${exampleNetworkInterface.id}
      adminSshKeys:
        - username: adminuser
          publicKey:
            fn::invoke:
              function: std:file
              arguments:
                input: ~/.ssh/id_rsa.pub
              return: result
      osDisk:
        caching: ReadWrite
        storageAccountType: Standard_LRS
      sourceImageReference:
        publisher: Canonical
        offer: 0001-com-ubuntu-server-jammy
        sku: 22_04-lts
        version: latest
  exampleRestorePointCollection:
    type: azure:compute:RestorePointCollection
    name: example
    properties:
      name: example-collection
      resourceGroupName: ${example.name}
      location: ${exampleLinuxVirtualMachine.location}
      sourceVirtualMachineId: ${exampleLinuxVirtualMachine.id}
Create RestorePointCollection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RestorePointCollection(name: string, args: RestorePointCollectionArgs, opts?: CustomResourceOptions);@overload
def RestorePointCollection(resource_name: str,
                           args: RestorePointCollectionArgs,
                           opts: Optional[ResourceOptions] = None)
@overload
def RestorePointCollection(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           resource_group_name: Optional[str] = None,
                           source_virtual_machine_id: Optional[str] = None,
                           location: Optional[str] = None,
                           name: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None)func NewRestorePointCollection(ctx *Context, name string, args RestorePointCollectionArgs, opts ...ResourceOption) (*RestorePointCollection, error)public RestorePointCollection(string name, RestorePointCollectionArgs args, CustomResourceOptions? opts = null)
public RestorePointCollection(String name, RestorePointCollectionArgs args)
public RestorePointCollection(String name, RestorePointCollectionArgs args, CustomResourceOptions options)
type: azure:compute:RestorePointCollection
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 RestorePointCollectionArgs
- 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 RestorePointCollectionArgs
- 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 RestorePointCollectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RestorePointCollectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RestorePointCollectionArgs
- 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 restorePointCollectionResource = new Azure.Compute.RestorePointCollection("restorePointCollectionResource", new()
{
    ResourceGroupName = "string",
    SourceVirtualMachineId = "string",
    Location = "string",
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := compute.NewRestorePointCollection(ctx, "restorePointCollectionResource", &compute.RestorePointCollectionArgs{
	ResourceGroupName:      pulumi.String("string"),
	SourceVirtualMachineId: pulumi.String("string"),
	Location:               pulumi.String("string"),
	Name:                   pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var restorePointCollectionResource = new RestorePointCollection("restorePointCollectionResource", RestorePointCollectionArgs.builder()
    .resourceGroupName("string")
    .sourceVirtualMachineId("string")
    .location("string")
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
restore_point_collection_resource = azure.compute.RestorePointCollection("restorePointCollectionResource",
    resource_group_name="string",
    source_virtual_machine_id="string",
    location="string",
    name="string",
    tags={
        "string": "string",
    })
const restorePointCollectionResource = new azure.compute.RestorePointCollection("restorePointCollectionResource", {
    resourceGroupName: "string",
    sourceVirtualMachineId: "string",
    location: "string",
    name: "string",
    tags: {
        string: "string",
    },
});
type: azure:compute:RestorePointCollection
properties:
    location: string
    name: string
    resourceGroupName: string
    sourceVirtualMachineId: string
    tags:
        string: string
RestorePointCollection 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 RestorePointCollection resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- SourceVirtual stringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Location string
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- ResourceGroup stringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- SourceVirtual stringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Location string
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- resourceGroup StringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- sourceVirtual StringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- location String
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- resourceGroup stringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- sourceVirtual stringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- location string
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- resource_group_ strname 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- source_virtual_ strmachine_ id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- location str
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- resourceGroup StringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- sourceVirtual StringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- location String
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
Outputs
All input properties are implicitly available as output properties. Additionally, the RestorePointCollection 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 RestorePointCollection Resource
Get an existing RestorePointCollection 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?: RestorePointCollectionState, opts?: CustomResourceOptions): RestorePointCollection@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        source_virtual_machine_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> RestorePointCollectionfunc GetRestorePointCollection(ctx *Context, name string, id IDInput, state *RestorePointCollectionState, opts ...ResourceOption) (*RestorePointCollection, error)public static RestorePointCollection Get(string name, Input<string> id, RestorePointCollectionState? state, CustomResourceOptions? opts = null)public static RestorePointCollection get(String name, Output<String> id, RestorePointCollectionState state, CustomResourceOptions options)resources:  _:    type: azure:compute:RestorePointCollection    get:      id: ${id}- 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.
- Location string
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- SourceVirtual stringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- Location string
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- SourceVirtual stringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- location String
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- sourceVirtual StringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- location string
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- resourceGroup stringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- sourceVirtual stringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- location str
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- resource_group_ strname 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- source_virtual_ strmachine_ id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
- location String
- The Azure location where the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the Resource Group in which the Virtual Machine Restore Point Collection should exist. Changing this forces a new resource to be created.
- sourceVirtual StringMachine Id 
- The ID of the virtual machine that will be associated with this Virtual Machine Restore Point Collection. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags which should be assigned to this Virtual Machine Restore Point Collection.
Import
Virtual Machine Restore Point Collections can be imported using the resource id, e.g.
$ pulumi import azure:compute/restorePointCollection:RestorePointCollection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/restorePointCollections/collection1
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 azurermTerraform Provider.