Datastore

A datastore resource API Version: 2021-01-01-preview.

Example Usage

Datastores_Create

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var datastore = new AzureNative.AVS.Datastore("datastore", new()
{
ClusterName = "cluster1",
DatastoreName = "datastore1",
NetAppVolume = new AzureNative.AVS.Inputs.NetAppVolumeArgs
{
NfsFilePath = "ANFVol2",
NfsProviderIp = "12.0.0.4",
},
PrivateCloudName = "cloud1",
ResourceGroupName = "group1",
});
});
package main
import (
avs "github.com/pulumi/pulumi-azure-native/sdk/go/azure/avs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avs.NewDatastore(ctx, "datastore", &avs.DatastoreArgs{
ClusterName: pulumi.String("cluster1"),
DatastoreName: pulumi.String("datastore1"),
NetAppVolume: &avs.NetAppVolumeArgs{
NfsFilePath: pulumi.String("ANFVol2"),
NfsProviderIp: pulumi.String("12.0.0.4"),
},
PrivateCloudName: pulumi.String("cloud1"),
ResourceGroupName: pulumi.String("group1"),
})
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.avs.Datastore;
import com.pulumi.azurenative.avs.DatastoreArgs;
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 datastore = new Datastore("datastore", DatastoreArgs.builder()
.clusterName("cluster1")
.datastoreName("datastore1")
.netAppVolume(Map.ofEntries(
Map.entry("nfsFilePath", "ANFVol2"),
Map.entry("nfsProviderIp", "12.0.0.4")
))
.privateCloudName("cloud1")
.resourceGroupName("group1")
.build());
}
}

Import

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

$ pulumi import azure-native:avs:Datastore datastore1 /subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1

Properties

Link copied to clipboard

An iSCSI volume

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

Resource name.

Link copied to clipboard

An Azure NetApp Files volume

Link copied to clipboard

The state of the datastore provisioning

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>