1. Packages
  2. Packages
  3. Azure Native
  4. API Docs
  5. storage
  6. DataShare
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi

    A DataShare is a tracked ARM resource modeled as a sub-resource of a Storage Account.

    Uses Azure REST API version 2025-08-01.

    Other available API versions: 2026-04-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storage [ApiVersion]. See the version guide for details.

    Example Usage

    CreateDataShare

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var dataShare = new AzureNative.Storage.DataShare("dataShare", new()
        {
            AccountName = "teststorageaccount",
            DataShareName = "testdatashare",
            Location = "eastus",
            Properties = new AzureNative.Storage.Inputs.StorageDataSharePropertiesArgs
            {
                AccessPolicies = new[]
                {
                    new AzureNative.Storage.Inputs.StorageDataShareAccessPolicyArgs
                    {
                        Permission = AzureNative.Storage.StorageDataShareAccessPolicyPermission.Read,
                        PrincipalId = "00000000-0000-0000-0000-000000000000",
                        TenantId = "00000000-0000-0000-0000-000000000000",
                    },
                },
                Assets = new[]
                {
                    new AzureNative.Storage.Inputs.StorageDataShareAssetArgs
                    {
                        AssetPath = "/container/folder/foo",
                        DisplayName = "virtualFoo",
                    },
                },
                Description = "Dummy data share",
            },
            ResourceGroupName = "testrg",
        });
    
    });
    
    package main
    
    import (
    	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := storage.NewDataShare(ctx, "dataShare", &storage.DataShareArgs{
    			AccountName:   pulumi.String("teststorageaccount"),
    			DataShareName: pulumi.String("testdatashare"),
    			Location:      pulumi.String("eastus"),
    			Properties: &storage.StorageDataSharePropertiesArgs{
    				AccessPolicies: storage.StorageDataShareAccessPolicyArray{
    					&storage.StorageDataShareAccessPolicyArgs{
    						Permission:  pulumi.String(storage.StorageDataShareAccessPolicyPermissionRead),
    						PrincipalId: pulumi.String("00000000-0000-0000-0000-000000000000"),
    						TenantId:    pulumi.String("00000000-0000-0000-0000-000000000000"),
    					},
    				},
    				Assets: storage.StorageDataShareAssetArray{
    					&storage.StorageDataShareAssetArgs{
    						AssetPath:   pulumi.String("/container/folder/foo"),
    						DisplayName: pulumi.String("virtualFoo"),
    					},
    				},
    				Description: pulumi.String("Dummy data share"),
    			},
    			ResourceGroupName: pulumi.String("testrg"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    pulumi {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_storage_datashare" "dataShare" {
      account_name    = "teststorageaccount"
      data_share_name = "testdatashare"
      location        = "eastus"
      properties = {
        access_policies = [{
          "permission"  = "Read"
          "principalId" = "00000000-0000-0000-0000-000000000000"
          "tenantId"    = "00000000-0000-0000-0000-000000000000"
        }]
        assets = [{
          "assetPath"   = "/container/folder/foo"
          "displayName" = "virtualFoo"
        }]
        description = "Dummy data share"
      }
      resource_group_name = "testrg"
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.storage.DataShare;
    import com.pulumi.azurenative.storage.DataShareArgs;
    import com.pulumi.azurenative.storage.inputs.StorageDataSharePropertiesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 dataShare = new DataShare("dataShare", DataShareArgs.builder()
                .accountName("teststorageaccount")
                .dataShareName("testdatashare")
                .location("eastus")
                .properties(StorageDataSharePropertiesArgs.builder()
                    .accessPolicies(StorageDataShareAccessPolicyArgs.builder()
                        .permission("Read")
                        .principalId("00000000-0000-0000-0000-000000000000")
                        .tenantId("00000000-0000-0000-0000-000000000000")
                        .build())
                    .assets(StorageDataShareAssetArgs.builder()
                        .assetPath("/container/folder/foo")
                        .displayName("virtualFoo")
                        .build())
                    .description("Dummy data share")
                    .build())
                .resourceGroupName("testrg")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const dataShare = new azure_native.storage.DataShare("dataShare", {
        accountName: "teststorageaccount",
        dataShareName: "testdatashare",
        location: "eastus",
        properties: {
            accessPolicies: [{
                permission: azure_native.storage.StorageDataShareAccessPolicyPermission.Read,
                principalId: "00000000-0000-0000-0000-000000000000",
                tenantId: "00000000-0000-0000-0000-000000000000",
            }],
            assets: [{
                assetPath: "/container/folder/foo",
                displayName: "virtualFoo",
            }],
            description: "Dummy data share",
        },
        resourceGroupName: "testrg",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    data_share = azure_native.storage.DataShare("dataShare",
        account_name="teststorageaccount",
        data_share_name="testdatashare",
        location="eastus",
        properties={
            "access_policies": [{
                "permission": azure_native.storage.StorageDataShareAccessPolicyPermission.READ,
                "principal_id": "00000000-0000-0000-0000-000000000000",
                "tenant_id": "00000000-0000-0000-0000-000000000000",
            }],
            "assets": [{
                "asset_path": "/container/folder/foo",
                "display_name": "virtualFoo",
            }],
            "description": "Dummy data share",
        },
        resource_group_name="testrg")
    
    resources:
      dataShare:
        type: azure-native:storage:DataShare
        properties:
          accountName: teststorageaccount
          dataShareName: testdatashare
          location: eastus
          properties:
            accessPolicies:
              - permission: Read
                principalId: 00000000-0000-0000-0000-000000000000
                tenantId: 00000000-0000-0000-0000-000000000000
            assets:
              - assetPath: /container/folder/foo
                displayName: virtualFoo
            description: Dummy data share
          resourceGroupName: testrg
    

    Create DataShare Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DataShare(name: string, args: DataShareArgs, opts?: CustomResourceOptions);
    @overload
    def DataShare(resource_name: str,
                  args: DataShareArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataShare(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  account_name: Optional[str] = None,
                  properties: Optional[StorageDataSharePropertiesArgs] = None,
                  resource_group_name: Optional[str] = None,
                  data_share_name: Optional[str] = None,
                  location: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None)
    func NewDataShare(ctx *Context, name string, args DataShareArgs, opts ...ResourceOption) (*DataShare, error)
    public DataShare(string name, DataShareArgs args, CustomResourceOptions? opts = null)
    public DataShare(String name, DataShareArgs args)
    public DataShare(String name, DataShareArgs args, CustomResourceOptions options)
    
    type: azure-native:storage:DataShare
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "azure-native_storage_data_share" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DataShareArgs
    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 DataShareArgs
    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 DataShareArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataShareArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataShareArgs
    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 dataShareResource = new AzureNative.Storage.DataShare("dataShareResource", new()
    {
        AccountName = "string",
        Properties = new AzureNative.Storage.Inputs.StorageDataSharePropertiesArgs
        {
            AccessPolicies = new[]
            {
                new AzureNative.Storage.Inputs.StorageDataShareAccessPolicyArgs
                {
                    Permission = "string",
                    PrincipalId = "string",
                    TenantId = "string",
                },
            },
            Assets = new[]
            {
                new AzureNative.Storage.Inputs.StorageDataShareAssetArgs
                {
                    AssetPath = "string",
                    DisplayName = "string",
                },
            },
            Description = "string",
        },
        ResourceGroupName = "string",
        DataShareName = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := storage.NewDataShare(ctx, "dataShareResource", &storage.DataShareArgs{
    	AccountName: pulumi.String("string"),
    	Properties: &storage.StorageDataSharePropertiesArgs{
    		AccessPolicies: storage.StorageDataShareAccessPolicyArray{
    			&storage.StorageDataShareAccessPolicyArgs{
    				Permission:  pulumi.String("string"),
    				PrincipalId: pulumi.String("string"),
    				TenantId:    pulumi.String("string"),
    			},
    		},
    		Assets: storage.StorageDataShareAssetArray{
    			&storage.StorageDataShareAssetArgs{
    				AssetPath:   pulumi.String("string"),
    				DisplayName: pulumi.String("string"),
    			},
    		},
    		Description: pulumi.String("string"),
    	},
    	ResourceGroupName: pulumi.String("string"),
    	DataShareName:     pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "azure-native_storage_data_share" "dataShareResource" {
      lifecycle {
        create_before_destroy = true
      }
      account_name = "string"
      properties = {
        access_policies = [{
          permission   = "string"
          principal_id = "string"
          tenant_id    = "string"
        }]
        assets = [{
          asset_path   = "string"
          display_name = "string"
        }]
        description = "string"
      }
      resource_group_name = "string"
      data_share_name     = "string"
      location            = "string"
      tags = {
        "string" = "string"
      }
    }
    
    var dataShareResource = new DataShare("dataShareResource", DataShareArgs.builder()
        .accountName("string")
        .properties(StorageDataSharePropertiesArgs.builder()
            .accessPolicies(StorageDataShareAccessPolicyArgs.builder()
                .permission("string")
                .principalId("string")
                .tenantId("string")
                .build())
            .assets(StorageDataShareAssetArgs.builder()
                .assetPath("string")
                .displayName("string")
                .build())
            .description("string")
            .build())
        .resourceGroupName("string")
        .dataShareName("string")
        .location("string")
        .tags(Map.of("string", "string"))
        .build());
    
    data_share_resource = azure_native.storage.DataShare("dataShareResource",
        account_name="string",
        properties={
            "access_policies": [{
                "permission": "string",
                "principal_id": "string",
                "tenant_id": "string",
            }],
            "assets": [{
                "asset_path": "string",
                "display_name": "string",
            }],
            "description": "string",
        },
        resource_group_name="string",
        data_share_name="string",
        location="string",
        tags={
            "string": "string",
        })
    
    const dataShareResource = new azure_native.storage.DataShare("dataShareResource", {
        accountName: "string",
        properties: {
            accessPolicies: [{
                permission: "string",
                principalId: "string",
                tenantId: "string",
            }],
            assets: [{
                assetPath: "string",
                displayName: "string",
            }],
            description: "string",
        },
        resourceGroupName: "string",
        dataShareName: "string",
        location: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:storage:DataShare
    properties:
        accountName: string
        dataShareName: string
        location: string
        properties:
            accessPolicies:
                - permission: string
                  principalId: string
                  tenantId: string
            assets:
                - assetPath: string
                  displayName: string
            description: string
        resourceGroupName: string
        tags:
            string: string
    

    DataShare 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 DataShare 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.
    Properties Pulumi.AzureNative.Storage.Inputs.StorageDataShareProperties
    The properties of the Storage DataShare.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DataShareName string
    The name of the Storage DataShare.
    Location string
    The geo-location where the resource lives
    Tags Dictionary<string, string>
    Resource tags.
    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.
    Properties StorageDataSharePropertiesArgs
    The properties of the Storage DataShare.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DataShareName string
    The name of the Storage DataShare.
    Location string
    The geo-location where the resource lives
    Tags map[string]string
    Resource tags.
    account_name 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.
    properties object
    The properties of the Storage DataShare.
    resource_group_name string
    The name of the resource group. The name is case insensitive.
    data_share_name string
    The name of the Storage DataShare.
    location string
    The geo-location where the resource lives
    tags map(string)
    Resource tags.
    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.
    properties StorageDataShareProperties
    The properties of the Storage DataShare.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    dataShareName String
    The name of the Storage DataShare.
    location String
    The geo-location where the resource lives
    tags Map<String,String>
    Resource tags.
    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.
    properties StorageDataShareProperties
    The properties of the Storage DataShare.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    dataShareName string
    The name of the Storage DataShare.
    location string
    The geo-location where the resource lives
    tags {[key: string]: string}
    Resource tags.
    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.
    properties StorageDataSharePropertiesArgs
    The properties of the Storage DataShare.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    data_share_name str
    The name of the Storage DataShare.
    location str
    The geo-location where the resource lives
    tags Mapping[str, str]
    Resource tags.
    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.
    properties Property Map
    The properties of the Storage DataShare.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    dataShareName String
    The name of the Storage DataShare.
    location String
    The geo-location where the resource lives
    tags Map<String>
    Resource tags.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.Storage.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    system_data object
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    StorageDataShareAccessPolicy, StorageDataShareAccessPolicyArgs

    Policy that specify the permission allowed to a managed identity
    Permission string | Pulumi.AzureNative.Storage.StorageDataShareAccessPolicyPermission
    Allowed permissions. Currently, only supported value is Read.
    PrincipalId string
    The AAD principal ID of the Managed Identity.
    TenantId string
    The AAD tenant ID of the Managed Identity.
    Permission string | StorageDataShareAccessPolicyPermission
    Allowed permissions. Currently, only supported value is Read.
    PrincipalId string
    The AAD principal ID of the Managed Identity.
    TenantId string
    The AAD tenant ID of the Managed Identity.
    permission string | "None" | "Read"
    Allowed permissions. Currently, only supported value is Read.
    principal_id string
    The AAD principal ID of the Managed Identity.
    tenant_id string
    The AAD tenant ID of the Managed Identity.
    permission String | StorageDataShareAccessPolicyPermission
    Allowed permissions. Currently, only supported value is Read.
    principalId String
    The AAD principal ID of the Managed Identity.
    tenantId String
    The AAD tenant ID of the Managed Identity.
    permission string | StorageDataShareAccessPolicyPermission
    Allowed permissions. Currently, only supported value is Read.
    principalId string
    The AAD principal ID of the Managed Identity.
    tenantId string
    The AAD tenant ID of the Managed Identity.
    permission str | StorageDataShareAccessPolicyPermission
    Allowed permissions. Currently, only supported value is Read.
    principal_id str
    The AAD principal ID of the Managed Identity.
    tenant_id str
    The AAD tenant ID of the Managed Identity.
    permission String | "None" | "Read"
    Allowed permissions. Currently, only supported value is Read.
    principalId String
    The AAD principal ID of the Managed Identity.
    tenantId String
    The AAD tenant ID of the Managed Identity.

    StorageDataShareAccessPolicyPermission, StorageDataShareAccessPolicyPermissionArgs

    None
    None No permission
    Read
    Read Read permission
    StorageDataShareAccessPolicyPermissionNone
    None No permission
    StorageDataShareAccessPolicyPermissionRead
    Read Read permission
    "None"
    None No permission
    "Read"
    Read Read permission
    None
    None No permission
    Read
    Read Read permission
    None
    None No permission
    Read
    Read Read permission
    NONE
    None No permission
    READ
    Read Read permission
    "None"
    None No permission
    "Read"
    Read Read permission

    StorageDataShareAccessPolicyResponse, StorageDataShareAccessPolicyResponseArgs

    Policy that specify the permission allowed to a managed identity
    Permission string
    Allowed permissions. Currently, only supported value is Read.
    PrincipalId string
    The AAD principal ID of the Managed Identity.
    TenantId string
    The AAD tenant ID of the Managed Identity.
    Permission string
    Allowed permissions. Currently, only supported value is Read.
    PrincipalId string
    The AAD principal ID of the Managed Identity.
    TenantId string
    The AAD tenant ID of the Managed Identity.
    permission string
    Allowed permissions. Currently, only supported value is Read.
    principal_id string
    The AAD principal ID of the Managed Identity.
    tenant_id string
    The AAD tenant ID of the Managed Identity.
    permission String
    Allowed permissions. Currently, only supported value is Read.
    principalId String
    The AAD principal ID of the Managed Identity.
    tenantId String
    The AAD tenant ID of the Managed Identity.
    permission string
    Allowed permissions. Currently, only supported value is Read.
    principalId string
    The AAD principal ID of the Managed Identity.
    tenantId string
    The AAD tenant ID of the Managed Identity.
    permission str
    Allowed permissions. Currently, only supported value is Read.
    principal_id str
    The AAD principal ID of the Managed Identity.
    tenant_id str
    The AAD tenant ID of the Managed Identity.
    permission String
    Allowed permissions. Currently, only supported value is Read.
    principalId String
    The AAD principal ID of the Managed Identity.
    tenantId String
    The AAD tenant ID of the Managed Identity.

    StorageDataShareAsset, StorageDataShareAssetArgs

    Properties of a shared resource.
    AssetPath string
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    DisplayName string
    Consumer visible name of the original path.
    AssetPath string
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    DisplayName string
    Consumer visible name of the original path.
    asset_path string
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    display_name string
    Consumer visible name of the original path.
    assetPath String
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    displayName String
    Consumer visible name of the original path.
    assetPath string
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    displayName string
    Consumer visible name of the original path.
    asset_path str
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    display_name str
    Consumer visible name of the original path.
    assetPath String
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    displayName String
    Consumer visible name of the original path.

    StorageDataShareAssetResponse, StorageDataShareAssetResponseArgs

    Properties of a shared resource.
    AssetPath string
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    DisplayName string
    Consumer visible name of the original path.
    AssetPath string
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    DisplayName string
    Consumer visible name of the original path.
    asset_path string
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    display_name string
    Consumer visible name of the original path.
    assetPath String
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    displayName String
    Consumer visible name of the original path.
    assetPath string
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    displayName string
    Consumer visible name of the original path.
    asset_path str
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    display_name str
    Consumer visible name of the original path.
    assetPath String
    Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
    displayName String
    Consumer visible name of the original path.

    StorageDataShareProperties, StorageDataSharePropertiesArgs

    The storage datashare properties
    AccessPolicies List<Pulumi.AzureNative.Storage.Inputs.StorageDataShareAccessPolicy>
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    Assets List<Pulumi.AzureNative.Storage.Inputs.StorageDataShareAsset>
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    Description string
    Arbitrary description of this Data Share. Max 250 characters.
    AccessPolicies []StorageDataShareAccessPolicy
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    Assets []StorageDataShareAsset
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    Description string
    Arbitrary description of this Data Share. Max 250 characters.
    access_policies list(object)
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets list(object)
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    description string
    Arbitrary description of this Data Share. Max 250 characters.
    accessPolicies List<StorageDataShareAccessPolicy>
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets List<StorageDataShareAsset>
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    description String
    Arbitrary description of this Data Share. Max 250 characters.
    accessPolicies StorageDataShareAccessPolicy[]
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets StorageDataShareAsset[]
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    description string
    Arbitrary description of this Data Share. Max 250 characters.
    access_policies Sequence[StorageDataShareAccessPolicy]
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets Sequence[StorageDataShareAsset]
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    description str
    Arbitrary description of this Data Share. Max 250 characters.
    accessPolicies List<Property Map>
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets List<Property Map>
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    description String
    Arbitrary description of this Data Share. Max 250 characters.

    StorageDataSharePropertiesResponse, StorageDataSharePropertiesResponseArgs

    The storage datashare properties
    AccessPolicies List<Pulumi.AzureNative.Storage.Inputs.StorageDataShareAccessPolicyResponse>
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    Assets List<Pulumi.AzureNative.Storage.Inputs.StorageDataShareAssetResponse>
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    DataShareIdentifier string
    System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
    DataShareUri string
    The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
    ProvisioningState string
    Represents the provisioning state of the storage datashare.
    Description string
    Arbitrary description of this Data Share. Max 250 characters.
    AccessPolicies []StorageDataShareAccessPolicyResponse
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    Assets []StorageDataShareAssetResponse
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    DataShareIdentifier string
    System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
    DataShareUri string
    The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
    ProvisioningState string
    Represents the provisioning state of the storage datashare.
    Description string
    Arbitrary description of this Data Share. Max 250 characters.
    access_policies list(object)
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets list(object)
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    data_share_identifier string
    System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
    data_share_uri string
    The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
    provisioning_state string
    Represents the provisioning state of the storage datashare.
    description string
    Arbitrary description of this Data Share. Max 250 characters.
    accessPolicies List<StorageDataShareAccessPolicyResponse>
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets List<StorageDataShareAssetResponse>
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    dataShareIdentifier String
    System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
    dataShareUri String
    The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
    provisioningState String
    Represents the provisioning state of the storage datashare.
    description String
    Arbitrary description of this Data Share. Max 250 characters.
    accessPolicies StorageDataShareAccessPolicyResponse[]
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets StorageDataShareAssetResponse[]
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    dataShareIdentifier string
    System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
    dataShareUri string
    The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
    provisioningState string
    Represents the provisioning state of the storage datashare.
    description string
    Arbitrary description of this Data Share. Max 250 characters.
    access_policies Sequence[StorageDataShareAccessPolicyResponse]
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets Sequence[StorageDataShareAssetResponse]
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    data_share_identifier str
    System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
    data_share_uri str
    The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
    provisioning_state str
    Represents the provisioning state of the storage datashare.
    description str
    Arbitrary description of this Data Share. Max 250 characters.
    accessPolicies List<Property Map>
    List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
    assets List<Property Map>
    List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
    dataShareIdentifier String
    System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
    dataShareUri String
    The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
    provisioningState String
    Represents the provisioning state of the storage datashare.
    description String
    Arbitrary description of this Data Share. Max 250 characters.

    SystemDataResponse, SystemDataResponseArgs

    Metadata pertaining to creation and last modification of the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    created_at string
    The timestamp of resource creation (UTC).
    created_by string
    The identity that created the resource.
    created_by_type string
    The type of identity that created the resource.
    last_modified_at string
    The timestamp of resource last modification (UTC)
    last_modified_by string
    The identity that last modified the resource.
    last_modified_by_type string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

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

    $ pulumi import azure-native:storage:DataShare testdatashare /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/dataShares/{dataShareName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.23.0
    published on Saturday, Jul 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial