1. Packages
  2. Azure Classic
  3. API Docs
  4. datashare
  5. DatasetBlobStorage

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.datashare.DatasetBlobStorage

Explore with Pulumi AI

Manages a Data Share Blob Storage Dataset.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azuread from "@pulumi/azuread";

const exampleResourceGroup = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleAccount = new azure.datashare.Account("example", {
    name: "example-dsa",
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    identity: {
        type: "SystemAssigned",
    },
});
const exampleShare = new azure.datashare.Share("example", {
    name: "example_ds",
    accountId: exampleAccount.id,
    kind: "CopyBased",
});
const exampleAccount2 = new azure.storage.Account("example", {
    name: "examplestr",
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "RAGRS",
});
const exampleContainer = new azure.storage.Container("example", {
    name: "example-sc",
    storageAccountName: exampleAccount2.name,
    containerAccessType: "container",
});
const example = azuread.getServicePrincipalOutput({
    displayName: exampleAccount.name,
});
const exampleAssignment = new azure.authorization.Assignment("example", {
    scope: exampleAccount2.id,
    roleDefinitionName: "Storage Blob Data Reader",
    principalId: example.apply(example => example.objectId),
});
const exampleDatasetBlobStorage = new azure.datashare.DatasetBlobStorage("example", {
    name: "example-dsbsds-file",
    dataShareId: exampleShare.id,
    containerName: exampleContainer.name,
    storageAccount: {
        name: exampleAccount2.name,
        resourceGroupName: exampleAccount2.resourceGroupName,
        subscriptionId: "00000000-0000-0000-0000-000000000000",
    },
    filePath: "myfile.txt",
}, {
    dependsOn: [exampleAssignment],
});
Copy
import pulumi
import pulumi_azure as azure
import pulumi_azuread as azuread

example_resource_group = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_account = azure.datashare.Account("example",
    name="example-dsa",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    identity={
        "type": "SystemAssigned",
    })
example_share = azure.datashare.Share("example",
    name="example_ds",
    account_id=example_account.id,
    kind="CopyBased")
example_account2 = azure.storage.Account("example",
    name="examplestr",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="RAGRS")
example_container = azure.storage.Container("example",
    name="example-sc",
    storage_account_name=example_account2.name,
    container_access_type="container")
example = azuread.get_service_principal_output(display_name=example_account.name)
example_assignment = azure.authorization.Assignment("example",
    scope=example_account2.id,
    role_definition_name="Storage Blob Data Reader",
    principal_id=example.object_id)
example_dataset_blob_storage = azure.datashare.DatasetBlobStorage("example",
    name="example-dsbsds-file",
    data_share_id=example_share.id,
    container_name=example_container.name,
    storage_account={
        "name": example_account2.name,
        "resource_group_name": example_account2.resource_group_name,
        "subscription_id": "00000000-0000-0000-0000-000000000000",
    },
    file_path="myfile.txt",
    opts = pulumi.ResourceOptions(depends_on=[example_assignment]))
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datashare"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
	"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := datashare.NewAccount(ctx, "example", &datashare.AccountArgs{
			Name:              pulumi.String("example-dsa"),
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Identity: &datashare.AccountIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		exampleShare, err := datashare.NewShare(ctx, "example", &datashare.ShareArgs{
			Name:      pulumi.String("example_ds"),
			AccountId: exampleAccount.ID(),
			Kind:      pulumi.String("CopyBased"),
		})
		if err != nil {
			return err
		}
		exampleAccount2, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("examplestr"),
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("RAGRS"),
		})
		if err != nil {
			return err
		}
		exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
			Name:                pulumi.String("example-sc"),
			StorageAccountName:  exampleAccount2.Name,
			ContainerAccessType: pulumi.String("container"),
		})
		if err != nil {
			return err
		}
		example := azuread.LookupServicePrincipalOutput(ctx, azuread.GetServicePrincipalOutputArgs{
			DisplayName: exampleAccount.Name,
		}, nil)
		exampleAssignment, err := authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{
			Scope:              exampleAccount2.ID(),
			RoleDefinitionName: pulumi.String("Storage Blob Data Reader"),
			PrincipalId: pulumi.String(example.ApplyT(func(example azuread.GetServicePrincipalResult) (*string, error) {
				return &example.ObjectId, nil
			}).(pulumi.StringPtrOutput)),
		})
		if err != nil {
			return err
		}
		_, err = datashare.NewDatasetBlobStorage(ctx, "example", &datashare.DatasetBlobStorageArgs{
			Name:          pulumi.String("example-dsbsds-file"),
			DataShareId:   exampleShare.ID(),
			ContainerName: exampleContainer.Name,
			StorageAccount: &datashare.DatasetBlobStorageStorageAccountArgs{
				Name:              exampleAccount2.Name,
				ResourceGroupName: exampleAccount2.ResourceGroupName,
				SubscriptionId:    pulumi.String("00000000-0000-0000-0000-000000000000"),
			},
			FilePath: pulumi.String("myfile.txt"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleAssignment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using AzureAD = Pulumi.AzureAD;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleAccount = new Azure.DataShare.Account("example", new()
    {
        Name = "example-dsa",
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        Identity = new Azure.DataShare.Inputs.AccountIdentityArgs
        {
            Type = "SystemAssigned",
        },
    });

    var exampleShare = new Azure.DataShare.Share("example", new()
    {
        Name = "example_ds",
        AccountId = exampleAccount.Id,
        Kind = "CopyBased",
    });

    var exampleAccount2 = new Azure.Storage.Account("example", new()
    {
        Name = "examplestr",
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "RAGRS",
    });

    var exampleContainer = new Azure.Storage.Container("example", new()
    {
        Name = "example-sc",
        StorageAccountName = exampleAccount2.Name,
        ContainerAccessType = "container",
    });

    var example = AzureAD.GetServicePrincipal.Invoke(new()
    {
        DisplayName = exampleAccount.Name,
    });

    var exampleAssignment = new Azure.Authorization.Assignment("example", new()
    {
        Scope = exampleAccount2.Id,
        RoleDefinitionName = "Storage Blob Data Reader",
        PrincipalId = example.Apply(getServicePrincipalResult => getServicePrincipalResult.ObjectId),
    });

    var exampleDatasetBlobStorage = new Azure.DataShare.DatasetBlobStorage("example", new()
    {
        Name = "example-dsbsds-file",
        DataShareId = exampleShare.Id,
        ContainerName = exampleContainer.Name,
        StorageAccount = new Azure.DataShare.Inputs.DatasetBlobStorageStorageAccountArgs
        {
            Name = exampleAccount2.Name,
            ResourceGroupName = exampleAccount2.ResourceGroupName,
            SubscriptionId = "00000000-0000-0000-0000-000000000000",
        },
        FilePath = "myfile.txt",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            exampleAssignment,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.datashare.Account;
import com.pulumi.azure.datashare.AccountArgs;
import com.pulumi.azure.datashare.inputs.AccountIdentityArgs;
import com.pulumi.azure.datashare.Share;
import com.pulumi.azure.datashare.ShareArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.Container;
import com.pulumi.azure.storage.ContainerArgs;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
import com.pulumi.azure.authorization.Assignment;
import com.pulumi.azure.authorization.AssignmentArgs;
import com.pulumi.azure.datashare.DatasetBlobStorage;
import com.pulumi.azure.datashare.DatasetBlobStorageArgs;
import com.pulumi.azure.datashare.inputs.DatasetBlobStorageStorageAccountArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
            .name("example-dsa")
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .identity(AccountIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .build());

        var exampleShare = new Share("exampleShare", ShareArgs.builder()
            .name("example_ds")
            .accountId(exampleAccount.id())
            .kind("CopyBased")
            .build());

        var exampleAccount2 = new Account("exampleAccount2", AccountArgs.builder()
            .name("examplestr")
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .accountTier("Standard")
            .accountReplicationType("RAGRS")
            .build());

        var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
            .name("example-sc")
            .storageAccountName(exampleAccount2.name())
            .containerAccessType("container")
            .build());

        final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
            .displayName(exampleAccount.name())
            .build());

        var exampleAssignment = new Assignment("exampleAssignment", AssignmentArgs.builder()
            .scope(exampleAccount2.id())
            .roleDefinitionName("Storage Blob Data Reader")
            .principalId(example.applyValue(getServicePrincipalResult -> getServicePrincipalResult).applyValue(example -> example.applyValue(getServicePrincipalResult -> getServicePrincipalResult.objectId())))
            .build());

        var exampleDatasetBlobStorage = new DatasetBlobStorage("exampleDatasetBlobStorage", DatasetBlobStorageArgs.builder()
            .name("example-dsbsds-file")
            .dataShareId(exampleShare.id())
            .containerName(exampleContainer.name())
            .storageAccount(DatasetBlobStorageStorageAccountArgs.builder()
                .name(exampleAccount2.name())
                .resourceGroupName(exampleAccount2.resourceGroupName())
                .subscriptionId("00000000-0000-0000-0000-000000000000")
                .build())
            .filePath("myfile.txt")
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleAssignment)
                .build());

    }
}
Copy
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    name: example
    properties:
      name: example-resources
      location: West Europe
  exampleAccount:
    type: azure:datashare:Account
    name: example
    properties:
      name: example-dsa
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      identity:
        type: SystemAssigned
  exampleShare:
    type: azure:datashare:Share
    name: example
    properties:
      name: example_ds
      accountId: ${exampleAccount.id}
      kind: CopyBased
  exampleAccount2:
    type: azure:storage:Account
    name: example
    properties:
      name: examplestr
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: RAGRS
  exampleContainer:
    type: azure:storage:Container
    name: example
    properties:
      name: example-sc
      storageAccountName: ${exampleAccount2.name}
      containerAccessType: container
  exampleAssignment:
    type: azure:authorization:Assignment
    name: example
    properties:
      scope: ${exampleAccount2.id}
      roleDefinitionName: Storage Blob Data Reader
      principalId: ${example.objectId}
  exampleDatasetBlobStorage:
    type: azure:datashare:DatasetBlobStorage
    name: example
    properties:
      name: example-dsbsds-file
      dataShareId: ${exampleShare.id}
      containerName: ${exampleContainer.name}
      storageAccount:
        name: ${exampleAccount2.name}
        resourceGroupName: ${exampleAccount2.resourceGroupName}
        subscriptionId: 00000000-0000-0000-0000-000000000000
      filePath: myfile.txt
    options:
      dependsOn:
        - ${exampleAssignment}
variables:
  example:
    fn::invoke:
      function: azuread:getServicePrincipal
      arguments:
        displayName: ${exampleAccount.name}
Copy

Create DatasetBlobStorage Resource

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

Constructor syntax

new DatasetBlobStorage(name: string, args: DatasetBlobStorageArgs, opts?: CustomResourceOptions);
@overload
def DatasetBlobStorage(resource_name: str,
                       args: DatasetBlobStorageArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def DatasetBlobStorage(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       container_name: Optional[str] = None,
                       data_share_id: Optional[str] = None,
                       storage_account: Optional[DatasetBlobStorageStorageAccountArgs] = None,
                       file_path: Optional[str] = None,
                       folder_path: Optional[str] = None,
                       name: Optional[str] = None)
func NewDatasetBlobStorage(ctx *Context, name string, args DatasetBlobStorageArgs, opts ...ResourceOption) (*DatasetBlobStorage, error)
public DatasetBlobStorage(string name, DatasetBlobStorageArgs args, CustomResourceOptions? opts = null)
public DatasetBlobStorage(String name, DatasetBlobStorageArgs args)
public DatasetBlobStorage(String name, DatasetBlobStorageArgs args, CustomResourceOptions options)
type: azure:datashare:DatasetBlobStorage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DatasetBlobStorageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DatasetBlobStorageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DatasetBlobStorageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DatasetBlobStorageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DatasetBlobStorageArgs
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 datasetBlobStorageResource = new Azure.DataShare.DatasetBlobStorage("datasetBlobStorageResource", new()
{
    ContainerName = "string",
    DataShareId = "string",
    StorageAccount = new Azure.DataShare.Inputs.DatasetBlobStorageStorageAccountArgs
    {
        Name = "string",
        ResourceGroupName = "string",
        SubscriptionId = "string",
    },
    FilePath = "string",
    FolderPath = "string",
    Name = "string",
});
Copy
example, err := datashare.NewDatasetBlobStorage(ctx, "datasetBlobStorageResource", &datashare.DatasetBlobStorageArgs{
	ContainerName: pulumi.String("string"),
	DataShareId:   pulumi.String("string"),
	StorageAccount: &datashare.DatasetBlobStorageStorageAccountArgs{
		Name:              pulumi.String("string"),
		ResourceGroupName: pulumi.String("string"),
		SubscriptionId:    pulumi.String("string"),
	},
	FilePath:   pulumi.String("string"),
	FolderPath: pulumi.String("string"),
	Name:       pulumi.String("string"),
})
Copy
var datasetBlobStorageResource = new DatasetBlobStorage("datasetBlobStorageResource", DatasetBlobStorageArgs.builder()
    .containerName("string")
    .dataShareId("string")
    .storageAccount(DatasetBlobStorageStorageAccountArgs.builder()
        .name("string")
        .resourceGroupName("string")
        .subscriptionId("string")
        .build())
    .filePath("string")
    .folderPath("string")
    .name("string")
    .build());
Copy
dataset_blob_storage_resource = azure.datashare.DatasetBlobStorage("datasetBlobStorageResource",
    container_name="string",
    data_share_id="string",
    storage_account={
        "name": "string",
        "resource_group_name": "string",
        "subscription_id": "string",
    },
    file_path="string",
    folder_path="string",
    name="string")
Copy
const datasetBlobStorageResource = new azure.datashare.DatasetBlobStorage("datasetBlobStorageResource", {
    containerName: "string",
    dataShareId: "string",
    storageAccount: {
        name: "string",
        resourceGroupName: "string",
        subscriptionId: "string",
    },
    filePath: "string",
    folderPath: "string",
    name: "string",
});
Copy
type: azure:datashare:DatasetBlobStorage
properties:
    containerName: string
    dataShareId: string
    filePath: string
    folderPath: string
    name: string
    storageAccount:
        name: string
        resourceGroupName: string
        subscriptionId: string
Copy

DatasetBlobStorage 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 DatasetBlobStorage resource accepts the following input properties:

ContainerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
DataShareId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
StorageAccount
This property is required.
Changes to this property will trigger replacement.
DatasetBlobStorageStorageAccount
A storage_account block as defined below. Changing this forces a new resource to be created.
FilePath Changes to this property will trigger replacement. string
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
FolderPath Changes to this property will trigger replacement. string
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
ContainerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
DataShareId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
StorageAccount
This property is required.
Changes to this property will trigger replacement.
DatasetBlobStorageStorageAccountArgs
A storage_account block as defined below. Changing this forces a new resource to be created.
FilePath Changes to this property will trigger replacement. string
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
FolderPath Changes to this property will trigger replacement. string
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
containerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
dataShareId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
storageAccount
This property is required.
Changes to this property will trigger replacement.
DatasetBlobStorageStorageAccount
A storage_account block as defined below. Changing this forces a new resource to be created.
filePath Changes to this property will trigger replacement. String
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
folderPath Changes to this property will trigger replacement. String
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
containerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
dataShareId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
storageAccount
This property is required.
Changes to this property will trigger replacement.
DatasetBlobStorageStorageAccount
A storage_account block as defined below. Changing this forces a new resource to be created.
filePath Changes to this property will trigger replacement. string
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
folderPath Changes to this property will trigger replacement. string
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
container_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
data_share_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
storage_account
This property is required.
Changes to this property will trigger replacement.
DatasetBlobStorageStorageAccountArgs
A storage_account block as defined below. Changing this forces a new resource to be created.
file_path Changes to this property will trigger replacement. str
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
folder_path Changes to this property will trigger replacement. str
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name Changes to this property will trigger replacement. str
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
containerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
dataShareId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
storageAccount
This property is required.
Changes to this property will trigger replacement.
Property Map
A storage_account block as defined below. Changing this forces a new resource to be created.
filePath Changes to this property will trigger replacement. String
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
folderPath Changes to this property will trigger replacement. String
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.

Outputs

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

DisplayName string
The name of the Data Share Dataset.
Id string
The provider-assigned unique ID for this managed resource.
DisplayName string
The name of the Data Share Dataset.
Id string
The provider-assigned unique ID for this managed resource.
displayName String
The name of the Data Share Dataset.
id String
The provider-assigned unique ID for this managed resource.
displayName string
The name of the Data Share Dataset.
id string
The provider-assigned unique ID for this managed resource.
display_name str
The name of the Data Share Dataset.
id str
The provider-assigned unique ID for this managed resource.
displayName String
The name of the Data Share Dataset.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing DatasetBlobStorage Resource

Get an existing DatasetBlobStorage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DatasetBlobStorageState, opts?: CustomResourceOptions): DatasetBlobStorage
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        container_name: Optional[str] = None,
        data_share_id: Optional[str] = None,
        display_name: Optional[str] = None,
        file_path: Optional[str] = None,
        folder_path: Optional[str] = None,
        name: Optional[str] = None,
        storage_account: Optional[DatasetBlobStorageStorageAccountArgs] = None) -> DatasetBlobStorage
func GetDatasetBlobStorage(ctx *Context, name string, id IDInput, state *DatasetBlobStorageState, opts ...ResourceOption) (*DatasetBlobStorage, error)
public static DatasetBlobStorage Get(string name, Input<string> id, DatasetBlobStorageState? state, CustomResourceOptions? opts = null)
public static DatasetBlobStorage get(String name, Output<String> id, DatasetBlobStorageState state, CustomResourceOptions options)
resources:  _:    type: azure:datashare:DatasetBlobStorage    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ContainerName Changes to this property will trigger replacement. string
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
DataShareId Changes to this property will trigger replacement. string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
DisplayName string
The name of the Data Share Dataset.
FilePath Changes to this property will trigger replacement. string
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
FolderPath Changes to this property will trigger replacement. string
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
StorageAccount Changes to this property will trigger replacement. DatasetBlobStorageStorageAccount
A storage_account block as defined below. Changing this forces a new resource to be created.
ContainerName Changes to this property will trigger replacement. string
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
DataShareId Changes to this property will trigger replacement. string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
DisplayName string
The name of the Data Share Dataset.
FilePath Changes to this property will trigger replacement. string
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
FolderPath Changes to this property will trigger replacement. string
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
StorageAccount Changes to this property will trigger replacement. DatasetBlobStorageStorageAccountArgs
A storage_account block as defined below. Changing this forces a new resource to be created.
containerName Changes to this property will trigger replacement. String
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
dataShareId Changes to this property will trigger replacement. String
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
displayName String
The name of the Data Share Dataset.
filePath Changes to this property will trigger replacement. String
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
folderPath Changes to this property will trigger replacement. String
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
storageAccount Changes to this property will trigger replacement. DatasetBlobStorageStorageAccount
A storage_account block as defined below. Changing this forces a new resource to be created.
containerName Changes to this property will trigger replacement. string
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
dataShareId Changes to this property will trigger replacement. string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
displayName string
The name of the Data Share Dataset.
filePath Changes to this property will trigger replacement. string
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
folderPath Changes to this property will trigger replacement. string
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
storageAccount Changes to this property will trigger replacement. DatasetBlobStorageStorageAccount
A storage_account block as defined below. Changing this forces a new resource to be created.
container_name Changes to this property will trigger replacement. str
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
data_share_id Changes to this property will trigger replacement. str
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
display_name str
The name of the Data Share Dataset.
file_path Changes to this property will trigger replacement. str
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
folder_path Changes to this property will trigger replacement. str
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name Changes to this property will trigger replacement. str
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
storage_account Changes to this property will trigger replacement. DatasetBlobStorageStorageAccountArgs
A storage_account block as defined below. Changing this forces a new resource to be created.
containerName Changes to this property will trigger replacement. String
The name of the storage account container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
dataShareId Changes to this property will trigger replacement. String
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created. Changing this forces a new Data Share Blob Storage Dataset to be created.
displayName String
The name of the Data Share Dataset.
filePath Changes to this property will trigger replacement. String
The path of the file in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
folderPath Changes to this property will trigger replacement. String
The path of the folder in the storage container to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Data Share Blob Storage Dataset. Changing this forces a new Data Share Blob Storage Dataset to be created.
storageAccount Changes to this property will trigger replacement. Property Map
A storage_account block as defined below. Changing this forces a new resource to be created.

Supporting Types

DatasetBlobStorageStorageAccount
, DatasetBlobStorageStorageAccountArgs

Name
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
SubscriptionId
This property is required.
Changes to this property will trigger replacement.
string
The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
SubscriptionId
This property is required.
Changes to this property will trigger replacement.
string
The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
subscriptionId
This property is required.
Changes to this property will trigger replacement.
String
The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
subscriptionId
This property is required.
Changes to this property will trigger replacement.
string
The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name
This property is required.
Changes to this property will trigger replacement.
str
The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
subscription_id
This property is required.
Changes to this property will trigger replacement.
str
The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
name
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The resource group name of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.
subscriptionId
This property is required.
Changes to this property will trigger replacement.
String
The subscription id of the storage account to be shared with the receiver. Changing this forces a new Data Share Blob Storage Dataset to be created.

Import

Data Share Blob Storage Datasets can be imported using the resource id, e.g.

$ pulumi import azure:datashare/datasetBlobStorage:DatasetBlobStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataShare/accounts/account1/shares/share1/dataSets/dataSet1
Copy

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

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.