Azure Native

v1.87.0 published on Tuesday, Nov 22, 2022 by Pulumi

Volume

This type describes a volume resource. API Version: 2018-09-01-preview.

Example Usage

CreateOrUpdateVolume

using System.Collections.Generic;
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 = "SFAzureFile",
        ResourceGroupName = "sbz_demo",
        Tags = null,
        VolumeResourceName = "sampleVolume",
    });

});
package main

import (
	servicefabricmesh "github.com/pulumi/pulumi-azure-native/sdk/go/azure/servicefabricmesh"
	"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.VolumeProviderParametersAzureFileResponse{
				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("SFAzureFile"),
			ResourceGroupName:  pulumi.String("sbz_demo"),
			Tags:               nil,
			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 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(Map.ofEntries(
                Map.entry("accountKey", "provide-account-key-here"),
                Map.entry("accountName", "sbzdemoaccount"),
                Map.entry("shareName", "sharel")
            ))
            .description("Service Fabric Mesh sample volume.")
            .location("EastUS")
            .provider("SFAzureFile")
            .resourceGroupName("sbz_demo")
            .tags()
            .volumeResourceName("sampleVolume")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

volume = azure_native.servicefabricmesh.Volume("volume",
    azure_file_parameters=azure_native.servicefabricmesh.VolumeProviderParametersAzureFileResponseArgs(
        account_key="provide-account-key-here",
        account_name="sbzdemoaccount",
        share_name="sharel",
    ),
    description="Service Fabric Mesh sample volume.",
    location="EastUS",
    provider="SFAzureFile",
    resource_group_name="sbz_demo",
    tags={},
    volume_resource_name="sampleVolume")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const volume = new azure_native.servicefabricmesh.Volume("volume", {
    azureFileParameters: {
        accountKey: "provide-account-key-here",
        accountName: "sbzdemoaccount",
        shareName: "sharel",
    },
    description: "Service Fabric Mesh sample volume.",
    location: "EastUS",
    provider: "SFAzureFile",
    resourceGroupName: "sbz_demo",
    tags: {},
    volumeResourceName: "sampleVolume",
});
resources:
  volume:
    type: azure-native:servicefabricmesh:Volume
    properties:
      azureFileParameters:
        accountKey: provide-account-key-here
        accountName: sbzdemoaccount
        shareName: sharel
      description: Service Fabric Mesh sample volume.
      location: EastUS
      provider: SFAzureFile
      resourceGroupName: sbz_demo
      tags: {}
      volumeResourceName: sampleVolume

Create Volume Resource

new Volume(name: string, args: VolumeArgs, opts?: CustomResourceOptions);
@overload
def Volume(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           azure_file_parameters: Optional[VolumeProviderParametersAzureFileArgs] = None,
           description: Optional[str] = None,
           location: Optional[str] = None,
           provider: Optional[Union[str, VolumeProvider]] = None,
           resource_group_name: Optional[str] = None,
           tags: Optional[Mapping[str, str]] = None,
           volume_resource_name: Optional[str] = None)
@overload
def Volume(resource_name: str,
           args: VolumeArgs,
           opts: Optional[ResourceOptions] = None)
func NewVolume(ctx *Context, name string, args VolumeArgs, opts ...ResourceOption) (*Volume, error)
public Volume(string name, VolumeArgs args, CustomResourceOptions? opts = null)
public Volume(String name, VolumeArgs args)
public Volume(String name, VolumeArgs args, CustomResourceOptions options)
type: azure-native:servicefabricmesh:Volume
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VolumeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args VolumeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args VolumeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VolumeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VolumeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Volume Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Volume resource accepts the following input properties:

Provider string | Pulumi.AzureNative.ServiceFabricMesh.VolumeProvider

Provider of the volume.

ResourceGroupName string

Azure resource group name

AzureFileParameters Pulumi.AzureNative.ServiceFabricMesh.Inputs.VolumeProviderParametersAzureFileArgs

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

Description string

User readable description of the volume.

Location string

The geo-location where the resource lives

Tags Dictionary<string, string>

Resource tags.

VolumeResourceName string

The identity of the volume.

Provider string | VolumeProvider

Provider of the volume.

ResourceGroupName string

Azure resource group name

AzureFileParameters VolumeProviderParametersAzureFileArgs

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

Description string

User readable description of the volume.

Location string

The geo-location where the resource lives

Tags map[string]string

Resource tags.

VolumeResourceName string

The identity of the volume.

provider String | VolumeProvider

Provider of the volume.

resourceGroupName String

Azure resource group name

azureFileParameters VolumeProviderParametersAzureFileArgs

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

description String

User readable description of the volume.

location String

The geo-location where the resource lives

tags Map<String,String>

Resource tags.

volumeResourceName String

The identity of the volume.

provider string | VolumeProvider

Provider of the volume.

resourceGroupName string

Azure resource group name

azureFileParameters VolumeProviderParametersAzureFileArgs

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

description string

User readable description of the volume.

location string

The geo-location where the resource lives

tags {[key: string]: string}

Resource tags.

volumeResourceName string

The identity of the volume.

provider str | VolumeProvider

Provider of the volume.

resource_group_name str

Azure resource group name

azure_file_parameters VolumeProviderParametersAzureFileArgs

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

description str

User readable description of the volume.

location str

The geo-location where the resource lives

tags Mapping[str, str]

Resource tags.

volume_resource_name str

The identity of the volume.

provider String | "SFAzureFile"

Provider of the volume.

resourceGroupName String

Azure resource group name

azureFileParameters Property Map

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

description String

User readable description of the volume.

location String

The geo-location where the resource lives

tags Map<String>

Resource tags.

volumeResourceName String

The identity of the volume.

Outputs

All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

State of the resource.

Status string

Status of the volume.

StatusDetails string

Gives additional information about the current status of the volume.

Type string

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

State of the resource.

Status string

Status of the volume.

StatusDetails string

Gives additional information about the current status of the volume.

Type string

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

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

State of the resource.

status String

Status of the volume.

statusDetails String

Gives additional information about the current status of the volume.

type String

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

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

provisioningState string

State of the resource.

status string

Status of the volume.

statusDetails string

Gives additional information about the current status of the volume.

type string

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

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

provisioning_state str

State of the resource.

status str

Status of the volume.

status_details str

Gives additional information about the current status of the volume.

type str

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

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

State of the resource.

status String

Status of the volume.

statusDetails String

Gives additional information about the current status of the volume.

type String

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

Supporting Types

VolumeProvider

SFAzureFile
SFAzureFile

Provides volumes that are backed by Azure Files.

VolumeProviderSFAzureFile
SFAzureFile

Provides volumes that are backed by Azure Files.

SFAzureFile
SFAzureFile

Provides volumes that are backed by Azure Files.

SFAzureFile
SFAzureFile

Provides volumes that are backed by Azure Files.

SF_AZURE_FILE
SFAzureFile

Provides volumes that are backed by Azure Files.

"SFAzureFile"
SFAzureFile

Provides volumes that are backed by Azure Files.

VolumeProviderParametersAzureFile

AccountName string

Name of the Azure storage account for the File Share.

ShareName string

Name of the Azure Files file share that provides storage for the volume.

AccountKey string

Access key of the Azure storage account for the File Share.

AccountName string

Name of the Azure storage account for the File Share.

ShareName string

Name of the Azure Files file share that provides storage for the volume.

AccountKey string

Access key of the Azure storage account for the File Share.

accountName String

Name of the Azure storage account for the File Share.

shareName String

Name of the Azure Files file share that provides storage for the volume.

accountKey String

Access key of the Azure storage account for the File Share.

accountName string

Name of the Azure storage account for the File Share.

shareName string

Name of the Azure Files file share that provides storage for the volume.

accountKey string

Access key of the Azure storage account for the File Share.

account_name str

Name of the Azure storage account for the File Share.

share_name str

Name of the Azure Files file share that provides storage for the volume.

account_key str

Access key of the Azure storage account for the File Share.

accountName String

Name of the Azure storage account for the File Share.

shareName String

Name of the Azure Files file share that provides storage for the volume.

accountKey String

Access key of the Azure storage account for the File Share.

VolumeProviderParametersAzureFileResponse

AccountName string

Name of the Azure storage account for the File Share.

ShareName string

Name of the Azure Files file share that provides storage for the volume.

AccountKey string

Access key of the Azure storage account for the File Share.

AccountName string

Name of the Azure storage account for the File Share.

ShareName string

Name of the Azure Files file share that provides storage for the volume.

AccountKey string

Access key of the Azure storage account for the File Share.

accountName String

Name of the Azure storage account for the File Share.

shareName String

Name of the Azure Files file share that provides storage for the volume.

accountKey String

Access key of the Azure storage account for the File Share.

accountName string

Name of the Azure storage account for the File Share.

shareName string

Name of the Azure Files file share that provides storage for the volume.

accountKey string

Access key of the Azure storage account for the File Share.

account_name str

Name of the Azure storage account for the File Share.

share_name str

Name of the Azure Files file share that provides storage for the volume.

account_key str

Access key of the Azure storage account for the File Share.

accountName String

Name of the Azure storage account for the File Share.

shareName String

Name of the Azure Files file share that provides storage for the volume.

accountKey String

Access key of the Azure storage account for the File Share.

Import

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

$ pulumi import azure-native:servicefabricmesh:Volume sampleVolume /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/volumes/sampleVolume 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0