Volume

class Volume : KotlinCustomResource

This type describes a volume resource. Uses Azure REST API version 2018-09-01-preview. In version 2.x of the Azure Native provider, it used API version 2018-09-01-preview.

Example Usage

CreateOrUpdateVolume

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var volume = new AzureNative.ServiceFabricMesh.Volume("volume", new()
{
AzureFileParameters = new AzureNative.ServiceFabricMesh.Inputs.VolumeProviderParametersAzureFileArgs
{
AccountKey = "provide-account-key-here",
AccountName = "sbzdemoaccount",
ShareName = "sharel",
},
Description = "Service Fabric Mesh sample volume.",
Location = "EastUS",
Provider = AzureNative.ServiceFabricMesh.VolumeProvider.SFAzureFile,
ResourceGroupName = "sbz_demo",
Tags = null,
VolumeResourceName = "sampleVolume",
});
});
package main
import (
servicefabricmesh "github.com/pulumi/pulumi-azure-native-sdk/servicefabricmesh/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicefabricmesh.NewVolume(ctx, "volume", &servicefabricmesh.VolumeArgs{
AzureFileParameters: &servicefabricmesh.VolumeProviderParametersAzureFileArgs{
AccountKey: pulumi.String("provide-account-key-here"),
AccountName: pulumi.String("sbzdemoaccount"),
ShareName: pulumi.String("sharel"),
},
Description: pulumi.String("Service Fabric Mesh sample volume."),
Location: pulumi.String("EastUS"),
Provider: pulumi.String(servicefabricmesh.VolumeProviderSFAzureFile),
ResourceGroupName: pulumi.String("sbz_demo"),
Tags: pulumi.StringMap{},
VolumeResourceName: pulumi.String("sampleVolume"),
})
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.servicefabricmesh.Volume;
import com.pulumi.azurenative.servicefabricmesh.VolumeArgs;
import com.pulumi.azurenative.servicefabricmesh.inputs.VolumeProviderParametersAzureFileArgs;
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 volume = new Volume("volume", VolumeArgs.builder()
.azureFileParameters(VolumeProviderParametersAzureFileArgs.builder()
.accountKey("provide-account-key-here")
.accountName("sbzdemoaccount")
.shareName("sharel")
.build())
.description("Service Fabric Mesh sample volume.")
.location("EastUS")
.provider("SFAzureFile")
.resourceGroupName("sbz_demo")
.tags()
.volumeResourceName("sampleVolume")
.build());
}
}

Import

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

$ pulumi import azure-native:servicefabricmesh:Volume sampleVolume /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeResourceName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

This type describes a volume provided by an Azure Files file share.

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

User readable description of the volume.

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

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val provider: Output<String>

Provider of the volume.

Link copied to clipboard

State of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

Status of the volume.

Link copied to clipboard
val statusDetails: Output<String>

Gives additional information about the current status of the volume.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

Link copied to clipboard
val urn: Output<String>