azure-native.storage.FileShare
Explore with Pulumi AI
Properties of the file share, including Id, resource name, resource type, Etag. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2021-02-01.
Other available API versions: 2023-01-01, 2023-04-01, 2023-05-01, 2024-01-01.
Example Usage
Create NFS Shares
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var fileShare = new AzureNative.Storage.FileShare("fileShare", new()
    {
        AccountName = "sto666",
        EnabledProtocols = AzureNative.Storage.EnabledProtocols.NFS,
        ResourceGroupName = "res346",
        ShareName = "share1235",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewFileShare(ctx, "fileShare", &storage.FileShareArgs{
			AccountName:       pulumi.String("sto666"),
			EnabledProtocols:  pulumi.String(storage.EnabledProtocolsNFS),
			ResourceGroupName: pulumi.String("res346"),
			ShareName:         pulumi.String("share1235"),
		})
		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.storage.FileShare;
import com.pulumi.azurenative.storage.FileShareArgs;
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 fileShare = new FileShare("fileShare", FileShareArgs.builder()
            .accountName("sto666")
            .enabledProtocols("NFS")
            .resourceGroupName("res346")
            .shareName("share1235")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const fileShare = new azure_native.storage.FileShare("fileShare", {
    accountName: "sto666",
    enabledProtocols: azure_native.storage.EnabledProtocols.NFS,
    resourceGroupName: "res346",
    shareName: "share1235",
});
import pulumi
import pulumi_azure_native as azure_native
file_share = azure_native.storage.FileShare("fileShare",
    account_name="sto666",
    enabled_protocols=azure_native.storage.EnabledProtocols.NFS,
    resource_group_name="res346",
    share_name="share1235")
resources:
  fileShare:
    type: azure-native:storage:FileShare
    properties:
      accountName: sto666
      enabledProtocols: NFS
      resourceGroupName: res346
      shareName: share1235
PutShares
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var fileShare = new AzureNative.Storage.FileShare("fileShare", new()
    {
        AccountName = "sto328",
        ResourceGroupName = "res3376",
        ShareName = "share6185",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewFileShare(ctx, "fileShare", &storage.FileShareArgs{
			AccountName:       pulumi.String("sto328"),
			ResourceGroupName: pulumi.String("res3376"),
			ShareName:         pulumi.String("share6185"),
		})
		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.storage.FileShare;
import com.pulumi.azurenative.storage.FileShareArgs;
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 fileShare = new FileShare("fileShare", FileShareArgs.builder()
            .accountName("sto328")
            .resourceGroupName("res3376")
            .shareName("share6185")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const fileShare = new azure_native.storage.FileShare("fileShare", {
    accountName: "sto328",
    resourceGroupName: "res3376",
    shareName: "share6185",
});
import pulumi
import pulumi_azure_native as azure_native
file_share = azure_native.storage.FileShare("fileShare",
    account_name="sto328",
    resource_group_name="res3376",
    share_name="share6185")
resources:
  fileShare:
    type: azure-native:storage:FileShare
    properties:
      accountName: sto328
      resourceGroupName: res3376
      shareName: share6185
PutShares with Access Tier
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var fileShare = new AzureNative.Storage.FileShare("fileShare", new()
    {
        AccessTier = AzureNative.Storage.ShareAccessTier.Hot,
        AccountName = "sto666",
        ResourceGroupName = "res346",
        ShareName = "share1235",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewFileShare(ctx, "fileShare", &storage.FileShareArgs{
			AccessTier:        pulumi.String(storage.ShareAccessTierHot),
			AccountName:       pulumi.String("sto666"),
			ResourceGroupName: pulumi.String("res346"),
			ShareName:         pulumi.String("share1235"),
		})
		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.storage.FileShare;
import com.pulumi.azurenative.storage.FileShareArgs;
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 fileShare = new FileShare("fileShare", FileShareArgs.builder()
            .accessTier("Hot")
            .accountName("sto666")
            .resourceGroupName("res346")
            .shareName("share1235")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const fileShare = new azure_native.storage.FileShare("fileShare", {
    accessTier: azure_native.storage.ShareAccessTier.Hot,
    accountName: "sto666",
    resourceGroupName: "res346",
    shareName: "share1235",
});
import pulumi
import pulumi_azure_native as azure_native
file_share = azure_native.storage.FileShare("fileShare",
    access_tier=azure_native.storage.ShareAccessTier.HOT,
    account_name="sto666",
    resource_group_name="res346",
    share_name="share1235")
resources:
  fileShare:
    type: azure-native:storage:FileShare
    properties:
      accessTier: Hot
      accountName: sto666
      resourceGroupName: res346
      shareName: share1235
Create FileShare Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FileShare(name: string, args: FileShareArgs, opts?: CustomResourceOptions);@overload
def FileShare(resource_name: str,
              args: FileShareArgs,
              opts: Optional[ResourceOptions] = None)
@overload
def FileShare(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              account_name: Optional[str] = None,
              resource_group_name: Optional[str] = None,
              access_tier: Optional[Union[str, ShareAccessTier]] = None,
              enabled_protocols: Optional[Union[str, EnabledProtocols]] = None,
              expand: Optional[str] = None,
              metadata: Optional[Mapping[str, str]] = None,
              root_squash: Optional[Union[str, RootSquashType]] = None,
              share_name: Optional[str] = None,
              share_quota: Optional[int] = None,
              signed_identifiers: Optional[Sequence[SignedIdentifierArgs]] = None)func NewFileShare(ctx *Context, name string, args FileShareArgs, opts ...ResourceOption) (*FileShare, error)public FileShare(string name, FileShareArgs args, CustomResourceOptions? opts = null)
public FileShare(String name, FileShareArgs args)
public FileShare(String name, FileShareArgs args, CustomResourceOptions options)
type: azure-native:storage:FileShare
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FileShareArgs
- 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 FileShareArgs
- 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 FileShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FileShareArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var fileShareResource = new AzureNative.Storage.FileShare("fileShareResource", new()
{
    AccountName = "string",
    ResourceGroupName = "string",
    AccessTier = "string",
    EnabledProtocols = "string",
    Expand = "string",
    Metadata = 
    {
        { "string", "string" },
    },
    RootSquash = "string",
    ShareName = "string",
    ShareQuota = 0,
    SignedIdentifiers = new[]
    {
        new AzureNative.Storage.Inputs.SignedIdentifierArgs
        {
            AccessPolicy = new AzureNative.Storage.Inputs.AccessPolicyArgs
            {
                ExpiryTime = "string",
                Permission = "string",
                StartTime = "string",
            },
            Id = "string",
        },
    },
});
example, err := storage.NewFileShare(ctx, "fileShareResource", &storage.FileShareArgs{
	AccountName:       pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	AccessTier:        pulumi.String("string"),
	EnabledProtocols:  pulumi.String("string"),
	Expand:            pulumi.String("string"),
	Metadata: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	RootSquash: pulumi.String("string"),
	ShareName:  pulumi.String("string"),
	ShareQuota: pulumi.Int(0),
	SignedIdentifiers: storage.SignedIdentifierArray{
		&storage.SignedIdentifierArgs{
			AccessPolicy: &storage.AccessPolicyArgs{
				ExpiryTime: pulumi.String("string"),
				Permission: pulumi.String("string"),
				StartTime:  pulumi.String("string"),
			},
			Id: pulumi.String("string"),
		},
	},
})
var fileShareResource = new FileShare("fileShareResource", FileShareArgs.builder()
    .accountName("string")
    .resourceGroupName("string")
    .accessTier("string")
    .enabledProtocols("string")
    .expand("string")
    .metadata(Map.of("string", "string"))
    .rootSquash("string")
    .shareName("string")
    .shareQuota(0)
    .signedIdentifiers(SignedIdentifierArgs.builder()
        .accessPolicy(AccessPolicyArgs.builder()
            .expiryTime("string")
            .permission("string")
            .startTime("string")
            .build())
        .id("string")
        .build())
    .build());
file_share_resource = azure_native.storage.FileShare("fileShareResource",
    account_name="string",
    resource_group_name="string",
    access_tier="string",
    enabled_protocols="string",
    expand="string",
    metadata={
        "string": "string",
    },
    root_squash="string",
    share_name="string",
    share_quota=0,
    signed_identifiers=[{
        "access_policy": {
            "expiry_time": "string",
            "permission": "string",
            "start_time": "string",
        },
        "id": "string",
    }])
const fileShareResource = new azure_native.storage.FileShare("fileShareResource", {
    accountName: "string",
    resourceGroupName: "string",
    accessTier: "string",
    enabledProtocols: "string",
    expand: "string",
    metadata: {
        string: "string",
    },
    rootSquash: "string",
    shareName: "string",
    shareQuota: 0,
    signedIdentifiers: [{
        accessPolicy: {
            expiryTime: "string",
            permission: "string",
            startTime: "string",
        },
        id: "string",
    }],
});
type: azure-native:storage:FileShare
properties:
    accessTier: string
    accountName: string
    enabledProtocols: string
    expand: string
    metadata:
        string: string
    resourceGroupName: string
    rootSquash: string
    shareName: string
    shareQuota: 0
    signedIdentifiers:
        - accessPolicy:
            expiryTime: string
            permission: string
            startTime: string
          id: string
FileShare Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FileShare resource accepts the following input properties:
- AccountName string
- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- ResourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- AccessTier string | Pulumi.Azure Native. Storage. Share Access Tier 
- Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- EnabledProtocols string | Pulumi.Azure Native. Storage. Enabled Protocols 
- The authentication protocol that is used for the file share. Can only be specified when creating a share.
- Expand string
- Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','
- Metadata Dictionary<string, string>
- A name-value pair to associate with the share as metadata.
- RootSquash string | Pulumi.Azure Native. Storage. Root Squash Type 
- The property is for NFS share only. The default is NoRootSquash.
- string
- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- int
- The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
- SignedIdentifiers List<Pulumi.Azure Native. Storage. Inputs. Signed Identifier> 
- List of stored access policies specified on the share.
- AccountName string
- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- ResourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- AccessTier string | ShareAccess Tier 
- Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- EnabledProtocols string | EnabledProtocols 
- The authentication protocol that is used for the file share. Can only be specified when creating a share.
- Expand string
- Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','
- Metadata map[string]string
- A name-value pair to associate with the share as metadata.
- RootSquash string | RootSquash Type 
- The property is for NFS share only. The default is NoRootSquash.
- string
- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- int
- The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
- SignedIdentifiers []SignedIdentifier Args 
- List of stored access policies specified on the share.
- accountName String
- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- resourceGroup StringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- accessTier String | ShareAccess Tier 
- Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- enabledProtocols String | EnabledProtocols 
- The authentication protocol that is used for the file share. Can only be specified when creating a share.
- expand String
- Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','
- metadata Map<String,String>
- A name-value pair to associate with the share as metadata.
- rootSquash String | RootSquash Type 
- The property is for NFS share only. The default is NoRootSquash.
- String
- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- Integer
- The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
- signedIdentifiers List<SignedIdentifier> 
- List of stored access policies specified on the share.
- accountName string
- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- resourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- accessTier string | ShareAccess Tier 
- Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- enabledProtocols string | EnabledProtocols 
- The authentication protocol that is used for the file share. Can only be specified when creating a share.
- expand string
- Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','
- metadata {[key: string]: string}
- A name-value pair to associate with the share as metadata.
- rootSquash string | RootSquash Type 
- The property is for NFS share only. The default is NoRootSquash.
- string
- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- number
- The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
- signedIdentifiers SignedIdentifier[] 
- List of stored access policies specified on the share.
- account_name str
- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- resource_group_ strname 
- The name of the resource group within the user's subscription. The name is case insensitive.
- access_tier str | ShareAccess Tier 
- Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- enabled_protocols str | EnabledProtocols 
- The authentication protocol that is used for the file share. Can only be specified when creating a share.
- expand str
- Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','
- metadata Mapping[str, str]
- A name-value pair to associate with the share as metadata.
- root_squash str | RootSquash Type 
- The property is for NFS share only. The default is NoRootSquash.
- str
- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- int
- The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
- signed_identifiers Sequence[SignedIdentifier Args] 
- List of stored access policies specified on the share.
- accountName String
- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- resourceGroup StringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- accessTier String | "TransactionOptimized" | "Hot" | "Cool" | "Premium" 
- Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- enabledProtocols String | "SMB" | "NFS"
- The authentication protocol that is used for the file share. Can only be specified when creating a share.
- expand String
- Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','
- metadata Map<String>
- A name-value pair to associate with the share as metadata.
- rootSquash String | "NoRoot Squash" | "Root Squash" | "All Squash" 
- The property is for NFS share only. The default is NoRootSquash.
- String
- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
- Number
- The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
- signedIdentifiers List<Property Map>
- List of stored access policies specified on the share.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileShare resource produces the following output properties:
- AccessTier stringChange Time 
- Indicates the last modification time for share access tier.
- AccessTier stringStatus 
- Indicates if there is a pending transition for access tier.
- Deleted bool
- Indicates whether the share was deleted.
- DeletedTime string
- The deleted time if the share was deleted.
- Etag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringTime 
- Returns the date and time the share was last modified.
- LeaseDuration string
- Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- LeaseState string
- Lease state of the share.
- LeaseStatus string
- The lease status of the share.
- Name string
- The name of the resource
- RemainingRetention intDays 
- Remaining retention days for share that was soft deleted.
- double
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- SnapshotTime string
- Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Version string
- The version of the share.
- AccessTier stringChange Time 
- Indicates the last modification time for share access tier.
- AccessTier stringStatus 
- Indicates if there is a pending transition for access tier.
- Deleted bool
- Indicates whether the share was deleted.
- DeletedTime string
- The deleted time if the share was deleted.
- Etag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringTime 
- Returns the date and time the share was last modified.
- LeaseDuration string
- Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- LeaseState string
- Lease state of the share.
- LeaseStatus string
- The lease status of the share.
- Name string
- The name of the resource
- RemainingRetention intDays 
- Remaining retention days for share that was soft deleted.
- float64
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- SnapshotTime string
- Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Version string
- The version of the share.
- accessTier StringChange Time 
- Indicates the last modification time for share access tier.
- accessTier StringStatus 
- Indicates if there is a pending transition for access tier.
- deleted Boolean
- Indicates whether the share was deleted.
- deletedTime String
- The deleted time if the share was deleted.
- etag String
- Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringTime 
- Returns the date and time the share was last modified.
- leaseDuration String
- Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- leaseState String
- Lease state of the share.
- leaseStatus String
- The lease status of the share.
- name String
- The name of the resource
- remainingRetention IntegerDays 
- Remaining retention days for share that was soft deleted.
- Double
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- snapshotTime String
- Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version String
- The version of the share.
- accessTier stringChange Time 
- Indicates the last modification time for share access tier.
- accessTier stringStatus 
- Indicates if there is a pending transition for access tier.
- deleted boolean
- Indicates whether the share was deleted.
- deletedTime string
- The deleted time if the share was deleted.
- etag string
- Resource Etag.
- id string
- The provider-assigned unique ID for this managed resource.
- lastModified stringTime 
- Returns the date and time the share was last modified.
- leaseDuration string
- Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- leaseState string
- Lease state of the share.
- leaseStatus string
- The lease status of the share.
- name string
- The name of the resource
- remainingRetention numberDays 
- Remaining retention days for share that was soft deleted.
- number
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- snapshotTime string
- Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version string
- The version of the share.
- access_tier_ strchange_ time 
- Indicates the last modification time for share access tier.
- access_tier_ strstatus 
- Indicates if there is a pending transition for access tier.
- deleted bool
- Indicates whether the share was deleted.
- deleted_time str
- The deleted time if the share was deleted.
- etag str
- Resource Etag.
- id str
- The provider-assigned unique ID for this managed resource.
- last_modified_ strtime 
- Returns the date and time the share was last modified.
- lease_duration str
- Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- lease_state str
- Lease state of the share.
- lease_status str
- The lease status of the share.
- name str
- The name of the resource
- remaining_retention_ intdays 
- Remaining retention days for share that was soft deleted.
- float
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- snapshot_time str
- Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version str
- The version of the share.
- accessTier StringChange Time 
- Indicates the last modification time for share access tier.
- accessTier StringStatus 
- Indicates if there is a pending transition for access tier.
- deleted Boolean
- Indicates whether the share was deleted.
- deletedTime String
- The deleted time if the share was deleted.
- etag String
- Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringTime 
- Returns the date and time the share was last modified.
- leaseDuration String
- Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
- leaseState String
- Lease state of the share.
- leaseStatus String
- The lease status of the share.
- name String
- The name of the resource
- remainingRetention NumberDays 
- Remaining retention days for share that was soft deleted.
- Number
- The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- snapshotTime String
- Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version String
- The version of the share.
Supporting Types
AccessPolicy, AccessPolicyArgs    
- ExpiryTime string
- Expiry time of the access policy
- Permission string
- List of abbreviated permissions.
- StartTime string
- Start time of the access policy
- ExpiryTime string
- Expiry time of the access policy
- Permission string
- List of abbreviated permissions.
- StartTime string
- Start time of the access policy
- expiryTime String
- Expiry time of the access policy
- permission String
- List of abbreviated permissions.
- startTime String
- Start time of the access policy
- expiryTime string
- Expiry time of the access policy
- permission string
- List of abbreviated permissions.
- startTime string
- Start time of the access policy
- expiry_time str
- Expiry time of the access policy
- permission str
- List of abbreviated permissions.
- start_time str
- Start time of the access policy
- expiryTime String
- Expiry time of the access policy
- permission String
- List of abbreviated permissions.
- startTime String
- Start time of the access policy
AccessPolicyResponse, AccessPolicyResponseArgs      
- ExpiryTime string
- Expiry time of the access policy
- Permission string
- List of abbreviated permissions.
- StartTime string
- Start time of the access policy
- ExpiryTime string
- Expiry time of the access policy
- Permission string
- List of abbreviated permissions.
- StartTime string
- Start time of the access policy
- expiryTime String
- Expiry time of the access policy
- permission String
- List of abbreviated permissions.
- startTime String
- Start time of the access policy
- expiryTime string
- Expiry time of the access policy
- permission string
- List of abbreviated permissions.
- startTime string
- Start time of the access policy
- expiry_time str
- Expiry time of the access policy
- permission str
- List of abbreviated permissions.
- start_time str
- Start time of the access policy
- expiryTime String
- Expiry time of the access policy
- permission String
- List of abbreviated permissions.
- startTime String
- Start time of the access policy
EnabledProtocols, EnabledProtocolsArgs    
- SMB
- SMB
- NFS
- NFS
- EnabledProtocols SMB 
- SMB
- EnabledProtocols NFS 
- NFS
- SMB
- SMB
- NFS
- NFS
- SMB
- SMB
- NFS
- NFS
- SMB
- SMB
- NFS
- NFS
- "SMB"
- SMB
- "NFS"
- NFS
RootSquashType, RootSquashTypeArgs      
- NoRoot Squash 
- NoRootSquash
- RootSquash 
- RootSquash
- AllSquash 
- AllSquash
- RootSquash Type No Root Squash 
- NoRootSquash
- RootSquash Type Root Squash 
- RootSquash
- RootSquash Type All Squash 
- AllSquash
- NoRoot Squash 
- NoRootSquash
- RootSquash 
- RootSquash
- AllSquash 
- AllSquash
- NoRoot Squash 
- NoRootSquash
- RootSquash 
- RootSquash
- AllSquash 
- AllSquash
- NO_ROOT_SQUASH
- NoRootSquash
- ROOT_SQUASH
- RootSquash
- ALL_SQUASH
- AllSquash
- "NoRoot Squash" 
- NoRootSquash
- "RootSquash" 
- RootSquash
- "AllSquash" 
- AllSquash
ShareAccessTier, ShareAccessTierArgs      
- TransactionOptimized 
- TransactionOptimized
- Hot
- Hot
- Cool
- Cool
- Premium
- Premium
- ShareAccess Tier Transaction Optimized 
- TransactionOptimized
- ShareAccess Tier Hot 
- Hot
- ShareAccess Tier Cool 
- Cool
- ShareAccess Tier Premium 
- Premium
- TransactionOptimized 
- TransactionOptimized
- Hot
- Hot
- Cool
- Cool
- Premium
- Premium
- TransactionOptimized 
- TransactionOptimized
- Hot
- Hot
- Cool
- Cool
- Premium
- Premium
- TRANSACTION_OPTIMIZED
- TransactionOptimized
- HOT
- Hot
- COOL
- Cool
- PREMIUM
- Premium
- "TransactionOptimized" 
- TransactionOptimized
- "Hot"
- Hot
- "Cool"
- Cool
- "Premium"
- Premium
SignedIdentifier, SignedIdentifierArgs    
- AccessPolicy Pulumi.Azure Native. Storage. Inputs. Access Policy 
- Access policy
- Id string
- An unique identifier of the stored access policy.
- AccessPolicy AccessPolicy 
- Access policy
- Id string
- An unique identifier of the stored access policy.
- accessPolicy AccessPolicy 
- Access policy
- id String
- An unique identifier of the stored access policy.
- accessPolicy AccessPolicy 
- Access policy
- id string
- An unique identifier of the stored access policy.
- access_policy AccessPolicy 
- Access policy
- id str
- An unique identifier of the stored access policy.
- accessPolicy Property Map
- Access policy
- id String
- An unique identifier of the stored access policy.
SignedIdentifierResponse, SignedIdentifierResponseArgs      
- AccessPolicy Pulumi.Azure Native. Storage. Inputs. Access Policy Response 
- Access policy
- Id string
- An unique identifier of the stored access policy.
- AccessPolicy AccessPolicy Response 
- Access policy
- Id string
- An unique identifier of the stored access policy.
- accessPolicy AccessPolicy Response 
- Access policy
- id String
- An unique identifier of the stored access policy.
- accessPolicy AccessPolicy Response 
- Access policy
- id string
- An unique identifier of the stored access policy.
- access_policy AccessPolicy Response 
- Access policy
- id str
- An unique identifier of the stored access policy.
- accessPolicy Property Map
- Access policy
- id String
- An unique identifier of the stored access policy.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storage:FileShare share1235 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0