RestorePointArgs

data class RestorePointArgs(val consistencyMode: Output<Either<String, ConsistencyModeTypes>>? = null, val excludeDisks: Output<List<ApiEntityReferenceArgs>>? = null, val resourceGroupName: Output<String>? = null, val restorePointCollectionName: Output<String>? = null, val restorePointName: Output<String>? = null, val sourceMetadata: Output<RestorePointSourceMetadataArgs>? = null, val sourceRestorePoint: Output<ApiEntityReferenceArgs>? = null, val timeCreated: Output<String>? = null) : ConvertibleToJava<RestorePointArgs>

Restore Point details. Uses Azure REST API version 2023-03-01. In version 1.x of the Azure Native provider, it used API version 2021-03-01. Other available API versions: 2021-11-01, 2022-11-01, 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01, 2024-11-01.

Example Usage

Copy a restore point to a different region

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()
{
ResourceGroupName = "myResourceGroup",
RestorePointCollectionName = "rpcName",
RestorePointName = "rpName",
SourceRestorePoint = new AzureNative.Compute.Inputs.ApiEntityReferenceArgs
{
Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName",
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewRestorePoint(ctx, "restorePoint", &compute.RestorePointArgs{
ResourceGroupName: pulumi.String("myResourceGroup"),
RestorePointCollectionName: pulumi.String("rpcName"),
RestorePointName: pulumi.String("rpName"),
SourceRestorePoint: &compute.ApiEntityReferenceArgs{
Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName"),
},
})
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 com.pulumi.azurenative.compute.inputs.ApiEntityReferenceArgs;
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()
.resourceGroupName("myResourceGroup")
.restorePointCollectionName("rpcName")
.restorePointName("rpName")
.sourceRestorePoint(ApiEntityReferenceArgs.builder()
.id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName")
.build())
.build());
}
}

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/v2"
"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.ApiEntityReferenceArray{
&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 com.pulumi.azurenative.compute.inputs.ApiEntityReferenceArgs;
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(ApiEntityReferenceArgs.builder()
.id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123")
.build())
.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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}

Constructors

Link copied to clipboard
constructor(consistencyMode: Output<Either<String, ConsistencyModeTypes>>? = null, excludeDisks: Output<List<ApiEntityReferenceArgs>>? = null, resourceGroupName: Output<String>? = null, restorePointCollectionName: Output<String>? = null, restorePointName: Output<String>? = null, sourceMetadata: Output<RestorePointSourceMetadataArgs>? = null, sourceRestorePoint: Output<ApiEntityReferenceArgs>? = null, timeCreated: Output<String>? = null)

Properties

Link copied to clipboard
val consistencyMode: Output<Either<String, ConsistencyModeTypes>>? = null

ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. 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 resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val restorePointCollectionName: Output<String>? = null

The name of the restore point collection.

Link copied to clipboard
val restorePointName: Output<String>? = null

The name of the restore point.

Link copied to clipboard

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

Link copied to clipboard

Resource Id of the source restore point from which a copy needs to be created.

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

Gets the creation time of the restore point.

Functions

Link copied to clipboard
open override fun toJava(): RestorePointArgs