RestorePoint

class RestorePoint : KotlinCustomResource

Restore Point details. API Version: 2021-03-01.

Example Usage

Create a restore point

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var restorePoint = new AzureNative.Compute.RestorePoint("restorePoint", new()
{
ExcludeDisks = new[]
{
new AzureNative.Compute.Inputs.ApiEntityReferenceArgs
{
Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123",
},
},
ResourceGroupName = "myResourceGroup",
RestorePointCollectionName = "rpcName",
RestorePointName = "rpName",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewRestorePoint(ctx, "restorePoint", &compute.RestorePointArgs{
ExcludeDisks: []compute.ApiEntityReferenceArgs{
{
Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123"),
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
RestorePointCollectionName: pulumi.String("rpcName"),
RestorePointName: pulumi.String("rpName"),
})
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.compute.RestorePoint;
import com.pulumi.azurenative.compute.RestorePointArgs;
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 restorePoint = new RestorePoint("restorePoint", RestorePointArgs.builder()
.excludeDisks(Map.of("id", "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123"))
.resourceGroupName("myResourceGroup")
.restorePointCollectionName("rpcName")
.restorePointName("rpName")
.build());
}
}

Import

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

$ pulumi import azure-native:compute:RestorePoint rpName /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/rpcName/restorePoints/rpName

Properties

Link copied to clipboard
val consistencyMode: Output<String>

Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details.

Link copied to clipboard

List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Resource name

Link copied to clipboard

Gets the provisioning state of the restore point.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets the details of the VM captured at the time of the restore point creation.

Link copied to clipboard
val timeCreated: Output<String>?

Gets the creation time of the restore point.

Link copied to clipboard
val type: Output<String>

Resource type

Link copied to clipboard
val urn: Output<String>