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

We recommend using Azure Native.

Azure Classic v5.58.0 published on Saturday, Dec 2, 2023 by Pulumi

azure.datashare.DatasetDataLakeGen2

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.58.0 published on Saturday, Dec 2, 2023 by Pulumi

    Manages a Data Share Data Lake Gen2 Dataset.

    Example Usage

    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("exampleResourceGroup", new()
        {
            Location = "West Europe",
        });
    
        var exampleAccount = new Azure.DataShare.Account("exampleAccount", new()
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Identity = new Azure.DataShare.Inputs.AccountIdentityArgs
            {
                Type = "SystemAssigned",
            },
        });
    
        var exampleShare = new Azure.DataShare.Share("exampleShare", new()
        {
            AccountId = exampleAccount.Id,
            Kind = "CopyBased",
        });
    
        var exampleStorage_accountAccount = new Azure.Storage.Account("exampleStorage/accountAccount", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            AccountKind = "BlobStorage",
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
        });
    
        var exampleDataLakeGen2Filesystem = new Azure.Storage.DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", new()
        {
            StorageAccountId = exampleStorage / accountAccount.Id,
        });
    
        var exampleServicePrincipal = AzureAD.GetServicePrincipal.Invoke(new()
        {
            DisplayName = exampleAccount.Name,
        });
    
        var exampleAssignment = new Azure.Authorization.Assignment("exampleAssignment", new()
        {
            Scope = exampleStorage / accountAccount.Id,
            RoleDefinitionName = "Storage Blob Data Reader",
            PrincipalId = exampleServicePrincipal.Apply(getServicePrincipalResult => getServicePrincipalResult.ObjectId),
        });
    
        var exampleDatasetDataLakeGen2 = new Azure.DataShare.DatasetDataLakeGen2("exampleDatasetDataLakeGen2", new()
        {
            ShareId = exampleShare.Id,
            StorageAccountId = exampleStorage / accountAccount.Id,
            FileSystemName = exampleDataLakeGen2Filesystem.Name,
            FilePath = "myfile.txt",
        }, new CustomResourceOptions
        {
            DependsOn = new[]
            {
                exampleAssignment,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/datashare"
    	"github.com/pulumi/pulumi-azure/sdk/v5/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, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := datashare.NewAccount(ctx, "exampleAccount", &datashare.AccountArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			Identity: &datashare.AccountIdentityArgs{
    				Type: pulumi.String("SystemAssigned"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleShare, err := datashare.NewShare(ctx, "exampleShare", &datashare.ShareArgs{
    			AccountId: exampleAccount.ID(),
    			Kind:      pulumi.String("CopyBased"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = storage.NewAccount(ctx, "exampleStorage/accountAccount", &storage.AccountArgs{
    			ResourceGroupName:      exampleResourceGroup.Name,
    			Location:               exampleResourceGroup.Location,
    			AccountKind:            pulumi.String("BlobStorage"),
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("LRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleDataLakeGen2Filesystem, err := storage.NewDataLakeGen2Filesystem(ctx, "exampleDataLakeGen2Filesystem", &storage.DataLakeGen2FilesystemArgs{
    			StorageAccountId: exampleStorage / accountAccount.Id,
    		})
    		if err != nil {
    			return err
    		}
    		exampleServicePrincipal := azuread.LookupServicePrincipalOutput(ctx, azuread.GetServicePrincipalOutputArgs{
    			DisplayName: exampleAccount.Name,
    		}, nil)
    		exampleAssignment, err := authorization.NewAssignment(ctx, "exampleAssignment", &authorization.AssignmentArgs{
    			Scope:              exampleStorage / accountAccount.Id,
    			RoleDefinitionName: pulumi.String("Storage Blob Data Reader"),
    			PrincipalId: exampleServicePrincipal.ApplyT(func(exampleServicePrincipal azuread.GetServicePrincipalResult) (*string, error) {
    				return &exampleServicePrincipal.ObjectId, nil
    			}).(pulumi.StringPtrOutput),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = datashare.NewDatasetDataLakeGen2(ctx, "exampleDatasetDataLakeGen2", &datashare.DatasetDataLakeGen2Args{
    			ShareId:          exampleShare.ID(),
    			StorageAccountId: exampleStorage / accountAccount.Id,
    			FileSystemName:   exampleDataLakeGen2Filesystem.Name,
    			FilePath:         pulumi.String("myfile.txt"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleAssignment,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.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.DataLakeGen2Filesystem;
    import com.pulumi.azure.storage.DataLakeGen2FilesystemArgs;
    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.DatasetDataLakeGen2;
    import com.pulumi.azure.datashare.DatasetDataLakeGen2Args;
    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()        
                .location("West Europe")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
                .location(exampleResourceGroup.location())
                .resourceGroupName(exampleResourceGroup.name())
                .identity(AccountIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .build());
    
            var exampleShare = new Share("exampleShare", ShareArgs.builder()        
                .accountId(exampleAccount.id())
                .kind("CopyBased")
                .build());
    
            var exampleStorage_accountAccount = new Account("exampleStorage/accountAccount", AccountArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .accountKind("BlobStorage")
                .accountTier("Standard")
                .accountReplicationType("LRS")
                .build());
    
            var exampleDataLakeGen2Filesystem = new DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", DataLakeGen2FilesystemArgs.builder()        
                .storageAccountId(exampleStorage / accountAccount.id())
                .build());
    
            final var exampleServicePrincipal = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
                .displayName(exampleAccount.name())
                .build());
    
            var exampleAssignment = new Assignment("exampleAssignment", AssignmentArgs.builder()        
                .scope(exampleStorage / accountAccount.id())
                .roleDefinitionName("Storage Blob Data Reader")
                .principalId(exampleServicePrincipal.applyValue(getServicePrincipalResult -> getServicePrincipalResult).applyValue(exampleServicePrincipal -> exampleServicePrincipal.applyValue(getServicePrincipalResult -> getServicePrincipalResult.objectId())))
                .build());
    
            var exampleDatasetDataLakeGen2 = new DatasetDataLakeGen2("exampleDatasetDataLakeGen2", DatasetDataLakeGen2Args.builder()        
                .shareId(exampleShare.id())
                .storageAccountId(exampleStorage / accountAccount.id())
                .fileSystemName(exampleDataLakeGen2Filesystem.name())
                .filePath("myfile.txt")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleAssignment)
                    .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    import pulumi_azuread as azuread
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_account = azure.datashare.Account("exampleAccount",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        identity=azure.datashare.AccountIdentityArgs(
            type="SystemAssigned",
        ))
    example_share = azure.datashare.Share("exampleShare",
        account_id=example_account.id,
        kind="CopyBased")
    example_storage_account_account = azure.storage.Account("exampleStorage/accountAccount",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        account_kind="BlobStorage",
        account_tier="Standard",
        account_replication_type="LRS")
    example_data_lake_gen2_filesystem = azure.storage.DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", storage_account_id=example_storage / account_account["id"])
    example_service_principal = azuread.get_service_principal_output(display_name=example_account.name)
    example_assignment = azure.authorization.Assignment("exampleAssignment",
        scope=example_storage / account_account["id"],
        role_definition_name="Storage Blob Data Reader",
        principal_id=example_service_principal.object_id)
    example_dataset_data_lake_gen2 = azure.datashare.DatasetDataLakeGen2("exampleDatasetDataLakeGen2",
        share_id=example_share.id,
        storage_account_id=example_storage / account_account["id"],
        file_system_name=example_data_lake_gen2_filesystem.name,
        file_path="myfile.txt",
        opts=pulumi.ResourceOptions(depends_on=[example_assignment]))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    import * as azuread from "@pulumi/azuread";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleAccount = new azure.datashare.Account("exampleAccount", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        identity: {
            type: "SystemAssigned",
        },
    });
    const exampleShare = new azure.datashare.Share("exampleShare", {
        accountId: exampleAccount.id,
        kind: "CopyBased",
    });
    const exampleStorage_accountAccount = new azure.storage.Account("exampleStorage/accountAccount", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        accountKind: "BlobStorage",
        accountTier: "Standard",
        accountReplicationType: "LRS",
    });
    const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", {storageAccountId: exampleStorage / accountAccount.id});
    const exampleServicePrincipal = azuread.getServicePrincipalOutput({
        displayName: exampleAccount.name,
    });
    const exampleAssignment = new azure.authorization.Assignment("exampleAssignment", {
        scope: exampleStorage / accountAccount.id,
        roleDefinitionName: "Storage Blob Data Reader",
        principalId: exampleServicePrincipal.apply(exampleServicePrincipal => exampleServicePrincipal.objectId),
    });
    const exampleDatasetDataLakeGen2 = new azure.datashare.DatasetDataLakeGen2("exampleDatasetDataLakeGen2", {
        shareId: exampleShare.id,
        storageAccountId: exampleStorage / accountAccount.id,
        fileSystemName: exampleDataLakeGen2Filesystem.name,
        filePath: "myfile.txt",
    }, {
        dependsOn: [exampleAssignment],
    });
    

    Coming soon!

    Create DatasetDataLakeGen2 Resource

    new DatasetDataLakeGen2(name: string, args: DatasetDataLakeGen2Args, opts?: CustomResourceOptions);
    @overload
    def DatasetDataLakeGen2(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            file_path: Optional[str] = None,
                            file_system_name: Optional[str] = None,
                            folder_path: Optional[str] = None,
                            name: Optional[str] = None,
                            share_id: Optional[str] = None,
                            storage_account_id: Optional[str] = None)
    @overload
    def DatasetDataLakeGen2(resource_name: str,
                            args: DatasetDataLakeGen2Args,
                            opts: Optional[ResourceOptions] = None)
    func NewDatasetDataLakeGen2(ctx *Context, name string, args DatasetDataLakeGen2Args, opts ...ResourceOption) (*DatasetDataLakeGen2, error)
    public DatasetDataLakeGen2(string name, DatasetDataLakeGen2Args args, CustomResourceOptions? opts = null)
    public DatasetDataLakeGen2(String name, DatasetDataLakeGen2Args args)
    public DatasetDataLakeGen2(String name, DatasetDataLakeGen2Args args, CustomResourceOptions options)
    
    type: azure:datashare:DatasetDataLakeGen2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DatasetDataLakeGen2Args
    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 DatasetDataLakeGen2Args
    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 DatasetDataLakeGen2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatasetDataLakeGen2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatasetDataLakeGen2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DatasetDataLakeGen2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DatasetDataLakeGen2 resource accepts the following input properties:

    FileSystemName string

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    ShareId string

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    StorageAccountId string

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FilePath string

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FolderPath string

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    Name string

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FileSystemName string

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    ShareId string

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    StorageAccountId string

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FilePath string

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FolderPath string

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    Name string

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    fileSystemName String

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    shareId String

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    storageAccountId String

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    filePath String

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    folderPath String

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    name String

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    fileSystemName string

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    shareId string

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    storageAccountId string

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    filePath string

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    folderPath string

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    name string

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    file_system_name str

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    share_id str

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    storage_account_id str

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    file_path str

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    folder_path str

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    name str

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    fileSystemName String

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    shareId String

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    storageAccountId String

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    filePath String

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    folderPath String

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    name String

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DatasetDataLakeGen2 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 DatasetDataLakeGen2 Resource

    Get an existing DatasetDataLakeGen2 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?: DatasetDataLakeGen2State, opts?: CustomResourceOptions): DatasetDataLakeGen2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            display_name: Optional[str] = None,
            file_path: Optional[str] = None,
            file_system_name: Optional[str] = None,
            folder_path: Optional[str] = None,
            name: Optional[str] = None,
            share_id: Optional[str] = None,
            storage_account_id: Optional[str] = None) -> DatasetDataLakeGen2
    func GetDatasetDataLakeGen2(ctx *Context, name string, id IDInput, state *DatasetDataLakeGen2State, opts ...ResourceOption) (*DatasetDataLakeGen2, error)
    public static DatasetDataLakeGen2 Get(string name, Input<string> id, DatasetDataLakeGen2State? state, CustomResourceOptions? opts = null)
    public static DatasetDataLakeGen2 get(String name, Output<String> id, DatasetDataLakeGen2State 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:
    DisplayName string

    The name of the Data Share Dataset.

    FilePath string

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FileSystemName string

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FolderPath string

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    Name string

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    ShareId string

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    StorageAccountId string

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    DisplayName string

    The name of the Data Share Dataset.

    FilePath string

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FileSystemName string

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    FolderPath string

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    Name string

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    ShareId string

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    StorageAccountId string

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    displayName String

    The name of the Data Share Dataset.

    filePath String

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    fileSystemName String

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    folderPath String

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    name String

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    shareId String

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    storageAccountId String

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    displayName string

    The name of the Data Share Dataset.

    filePath string

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    fileSystemName string

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    folderPath string

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    name string

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    shareId string

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    storageAccountId string

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    display_name str

    The name of the Data Share Dataset.

    file_path str

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    file_system_name str

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    folder_path str

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    name str

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    share_id str

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    storage_account_id str

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    displayName String

    The name of the Data Share Dataset.

    filePath String

    The path of the file in the data lake file system to be shared with the receiver. Conflicts with folder_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    fileSystemName String

    The name of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    folderPath String

    The folder path in the data lake file system to be shared with the receiver. Conflicts with file_path Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    name String

    The name which should be used for this Data Share Data Lake Gen2 Dataset. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    shareId String

    The resource ID of the Data Share where this Data Share Data Lake Gen2 Dataset should be created. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    storageAccountId String

    The resource id of the storage account of the data lake file system to be shared with the receiver. Changing this forces a new Data Share Data Lake Gen2 Dataset to be created.

    Import

    Data Share Data Lake Gen2 Datasets can be imported using the resource id, e.g.

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

    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 Classic v5.58.0 published on Saturday, Dec 2, 2023 by Pulumi