published on Saturday, Jul 18, 2026 by Pulumi
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:
- 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
Pulumi.
Azure Native. Storage. Inputs. Storage Data Share Properties - The properties of the Storage DataShare.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- string
- The name of the Storage DataShare.
- Location string
- The geo-location where the resource lives
- Dictionary<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
Storage
Data Share Properties Args - The properties of the Storage DataShare.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- string
- The name of the Storage DataShare.
- Location string
- The geo-location where the resource lives
- 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_ stringname - The name of the resource group. The name is case insensitive.
- string
- The name of the Storage DataShare.
- location string
- The geo-location where the resource lives
- map(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
Storage
Data Share Properties - The properties of the Storage DataShare.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- String
- The name of the Storage DataShare.
- location String
- The geo-location where the resource lives
- 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
Storage
Data Share Properties - The properties of the Storage DataShare.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- string
- The name of the Storage DataShare.
- location string
- The geo-location where the resource lives
- {[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
Storage
Data Share Properties Args - The properties of the Storage DataShare.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- str
- The name of the Storage DataShare.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- 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 Property Map
- The properties of the Storage DataShare.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- String
- The name of the Storage DataShare.
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataShare resource produces the following output properties:
- Azure
Api stringVersion - 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 Pulumi.Azure Native. Storage. Outputs. System Data Response - 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 stringVersion - 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 SystemData Response - 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_ stringversion - 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"
- azure
Api StringVersion - 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 SystemData Response - 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 stringVersion - 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 SystemData Response - 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_ strversion - 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 SystemData Response - 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"
- azure
Api StringVersion - 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 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.
Azure Native. Storage. Storage Data Share Access Policy Permission - 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 | Storage
Data Share Access Policy Permission - 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 | "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 | Storage
Data Share Access Policy Permission - 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 | Storage
Data Share Access Policy Permission - 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
str | Storage
Data Share Access Policy Permission - 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.
- principal
Id String - The AAD principal ID of the Managed Identity.
- tenant
Id String - The AAD tenant ID of the Managed Identity.
StorageDataShareAccessPolicyPermission, StorageDataShareAccessPolicyPermissionArgs
- None
NoneNo permission- Read
ReadRead permission
- Storage
Data Share Access Policy Permission None NoneNo permission- Storage
Data Share Access Policy Permission Read ReadRead permission
- "None"
NoneNo permission- "Read"
ReadRead permission
- None
NoneNo permission- Read
ReadRead permission
- None
NoneNo permission- Read
ReadRead permission
- NONE
NoneNo permission- READ
ReadRead permission
- "None"
NoneNo permission- "Read"
ReadRead permission
StorageDataShareAccessPolicyResponse, StorageDataShareAccessPolicyResponseArgs
Policy that specify the permission allowed to a 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.
- 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.
- 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.
- 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.
- principal
Id string - The AAD principal ID of the Managed Identity.
- tenant
Id 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.
- principal
Id String - The AAD principal ID of the Managed Identity.
- tenant
Id String - The AAD tenant ID of the Managed Identity.
StorageDataShareAsset, StorageDataShareAssetArgs
Properties of a shared resource.- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
StorageDataShareAssetResponse, StorageDataShareAssetResponseArgs
Properties of a shared resource.- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
StorageDataShareProperties, StorageDataSharePropertiesArgs
The storage datashare properties- Access
Policies List<Pulumi.Azure Native. Storage. Inputs. Storage Data Share Access Policy> - 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.
Azure Native. Storage. Inputs. Storage Data Share Asset> - 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 []StorageData Share Access Policy - 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
[]Storage
Data Share Asset - 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.
- access
Policies List<StorageData Share Access Policy> - 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<Storage
Data Share Asset> - 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 StorageData Share Access Policy[] - 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
Storage
Data Share Asset[] - 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[StorageData Share Access Policy] - 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[Storage
Data Share Asset] - 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.
- access
Policies 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- Access
Policies List<Pulumi.Azure Native. Storage. Inputs. Storage Data Share Access Policy Response> - 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.
Azure Native. Storage. Inputs. Storage Data Share Asset Response> - 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.
- string
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- 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.
- Access
Policies []StorageData Share Access Policy Response - 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
[]Storage
Data Share Asset Response - 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.
- string
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- 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.
- 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.
- string
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- 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.
- access
Policies List<StorageData Share Access Policy Response> - 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<Storage
Data Share Asset Response> - 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.
- String
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- 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.
- access
Policies StorageData Share Access Policy Response[] - 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
Storage
Data Share Asset Response[] - 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.
- string
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- 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.
- access_
policies Sequence[StorageData Share Access Policy Response] - 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[Storage
Data Share Asset Response] - 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.
- str
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- 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.
- access
Policies 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.
- String
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- 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.
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - 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 stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - 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_ stringtype - The type of identity that created the resource.
- last_
modified_ stringat - The timestamp of resource last modification (UTC)
- last_
modified_ stringby - The identity that last modified the resource.
- last_
modified_ stringby_ type - 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 StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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 stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - 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 StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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
published on Saturday, Jul 18, 2026 by Pulumi