Managed Cluster Snapshot
A managed cluster snapshot resource. API Version: 2022-02-02-preview.
Example Usage
Create/Update Managed Cluster Snapshot
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedClusterSnapshot = new AzureNative.ContainerService.ManagedClusterSnapshot("managedClusterSnapshot", new()
{
CreationData = new AzureNative.ContainerService.Inputs.CreationDataArgs
{
SourceResourceId = "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1",
},
Location = "westus",
ResourceGroupName = "rg1",
ResourceName = "snapshot1",
Tags =
{
{ "key1", "val1" },
{ "key2", "val2" },
},
});
});
Content copied to clipboard
package main
import (
containerservice "github.com/pulumi/pulumi-azure-native-sdk/containerservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerservice.NewManagedClusterSnapshot(ctx, "managedClusterSnapshot", &containerservice.ManagedClusterSnapshotArgs{
CreationData: &containerservice.CreationDataArgs{
SourceResourceId: pulumi.String("/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1"),
},
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("rg1"),
ResourceName: pulumi.String("snapshot1"),
Tags: pulumi.StringMap{
"key1": pulumi.String("val1"),
"key2": pulumi.String("val2"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerservice.ManagedClusterSnapshot;
import com.pulumi.azurenative.containerservice.ManagedClusterSnapshotArgs;
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 managedClusterSnapshot = new ManagedClusterSnapshot("managedClusterSnapshot", ManagedClusterSnapshotArgs.builder()
.creationData(Map.of("sourceResourceId", "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1"))
.location("westus")
.resourceGroupName("rg1")
.resourceName("snapshot1")
.tags(Map.ofEntries(
Map.entry("key1", "val1"),
Map.entry("key2", "val2")
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:containerservice:ManagedClusterSnapshot snapshot1 /subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedclustersnapshots/snapshot1
Content copied to clipboard
Properties
Link copied to clipboard
CreationData to be used to specify the source resource ID to create this snapshot.
Link copied to clipboard
What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The type of a snapshot. The default is NodePool.
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.