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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.datashare.DatasetBlobStorage

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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],
    });
    
    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]))
    
    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
    	})
    }
    
    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,
            },
        });
    
    });
    
    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());
    
        }
    }
    
    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}
    

    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 string
    The unique name of the resource.
    args DatasetBlobStorageArgs
    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 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 string
    The unique name of the resource.
    args DatasetBlobStorageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatasetBlobStorageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    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());
    
    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")
    
    const datasetBlobStorageResource = new azure.datashare.DatasetBlobStorage("datasetBlobStorageResource", {
        containerName: "string",
        dataShareId: "string",
        storageAccount: {
            name: "string",
            resourceGroupName: "string",
            subscriptionId: "string",
        },
        filePath: "string",
        folderPath: "string",
        name: "string",
    });
    
    type: azure:datashare:DatasetBlobStorage
    properties:
        containerName: string
        dataShareId: string
        filePath: string
        folderPath: string
        name: string
        storageAccount:
            name: string
            resourceGroupName: string
            subscriptionId: string
    

    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 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 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 DatasetBlobStorageStorageAccount
    A storage_account block as defined below. Changing this forces a new resource to be created.
    FilePath 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 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 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 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 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 DatasetBlobStorageStorageAccountArgs
    A storage_account block as defined below. Changing this forces a new resource to be created.
    FilePath 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 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 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 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 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 DatasetBlobStorageStorageAccount
    A storage_account block as defined below. Changing this forces a new resource to be created.
    filePath 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 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 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 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 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 DatasetBlobStorageStorageAccount
    A storage_account block as defined below. Changing this forces a new resource to be created.
    filePath 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 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 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 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 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 DatasetBlobStorageStorageAccountArgs
    A storage_account block as defined below. Changing this forces a new resource to be created.
    file_path 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 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 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 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 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 Property Map
    A storage_account block as defined below. Changing this forces a new resource to be created.
    filePath 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 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 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 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 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 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 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 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 DatasetBlobStorageStorageAccount
    A storage_account block as defined below. Changing this forces a new resource to be created.
    ContainerName 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 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 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 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 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 DatasetBlobStorageStorageAccountArgs
    A storage_account block as defined below. Changing this forces a new resource to be created.
    containerName 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 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 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 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 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 DatasetBlobStorageStorageAccount
    A storage_account block as defined below. Changing this forces a new resource to be created.
    containerName 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 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 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 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 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 DatasetBlobStorageStorageAccount
    A storage_account block as defined below. Changing this forces a new resource to be created.
    container_name 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 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 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 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 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 DatasetBlobStorageStorageAccountArgs
    A storage_account block as defined below. Changing this forces a new resource to be created.
    containerName 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 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 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 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 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 Property Map
    A storage_account block as defined below. Changing this forces a new resource to be created.

    Supporting Types

    DatasetBlobStorageStorageAccount, DatasetBlobStorageStorageAccountArgs

    Name 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
    

    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.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi