RestorePoint

class RestorePoint : KotlinCustomResource

Restore Point details. Uses Azure REST API version 2024-11-01. In version 2.x of the Azure Native provider, it used API version 2023-03-01. Other available API versions: 2022-08-01, 2022-11-01, 2023-03-01, 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native compute [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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/v3"
"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/v3"
"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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

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 id: Output<String>
Link copied to clipboard

The restore point instance view.

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

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

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>