Microsoft.DataShare accounts/shares/dataSets 2019-11-01

The accounts/shares/dataSets resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.DataShare/accounts/shares/dataSets resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.DataShare/accounts/shares/dataSets@2019-11-01' = {
  name: 'string'
  kind: 'string'
  parent: parentSymbolicName
  // For remaining properties, see accounts/shares/dataSets objects
}

accounts/shares/dataSets objects

Set the kind property to specify the type of object.

For AdlsGen1File, use:

  kind: 'AdlsGen1File'
  properties: {
    accountName: 'string'
    fileName: 'string'
    folderPath: 'string'
    resourceGroup: 'string'
    subscriptionId: 'string'
  }

For AdlsGen1Folder, use:

  kind: 'AdlsGen1Folder'
  properties: {
    accountName: 'string'
    folderPath: 'string'
    resourceGroup: 'string'
    subscriptionId: 'string'
  }

For AdlsGen2File, use:

  kind: 'AdlsGen2File'
  properties: {
    filePath: 'string'
    fileSystem: 'string'
    resourceGroup: 'string'
    storageAccountName: 'string'
    subscriptionId: 'string'
  }

For AdlsGen2FileSystem, use:

  kind: 'AdlsGen2FileSystem'
  properties: {
    fileSystem: 'string'
    resourceGroup: 'string'
    storageAccountName: 'string'
    subscriptionId: 'string'
  }

For AdlsGen2Folder, use:

  kind: 'AdlsGen2Folder'
  properties: {
    fileSystem: 'string'
    folderPath: 'string'
    resourceGroup: 'string'
    storageAccountName: 'string'
    subscriptionId: 'string'
  }

For Blob, use:

  kind: 'Blob'
  properties: {
    containerName: 'string'
    filePath: 'string'
    resourceGroup: 'string'
    storageAccountName: 'string'
    subscriptionId: 'string'
  }

For BlobFolder, use:

  kind: 'BlobFolder'
  properties: {
    containerName: 'string'
    prefix: 'string'
    resourceGroup: 'string'
    storageAccountName: 'string'
    subscriptionId: 'string'
  }

For Container, use:

  kind: 'Container'
  properties: {
    containerName: 'string'
    resourceGroup: 'string'
    storageAccountName: 'string'
    subscriptionId: 'string'
  }

For KustoCluster, use:

  kind: 'KustoCluster'
  properties: {
    kustoClusterResourceId: 'string'
  }

For KustoDatabase, use:

  kind: 'KustoDatabase'
  properties: {
    kustoDatabaseResourceId: 'string'
  }

For SqlDBTable, use:

  kind: 'SqlDBTable'
  properties: {
    databaseName: 'string'
    schemaName: 'string'
    sqlServerResourceId: 'string'
    tableName: 'string'
  }

For SqlDWTable, use:

  kind: 'SqlDWTable'
  properties: {
    dataWarehouseName: 'string'
    schemaName: 'string'
    sqlServerResourceId: 'string'
    tableName: 'string'
  }

Property values

accounts/shares/dataSets

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.DataShare/accounts/shares/dataSets'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2019-11-01'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
kind Set the object type AdlsGen1File
AdlsGen1Folder
AdlsGen2File
AdlsGen2FileSystem
AdlsGen2Folder
Blob
BlobFolder
Container
KustoCluster
KustoDatabase
SqlDBTable
SqlDWTable
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
parentSymbolicName

AdlsGen1FileDataSet

Name Description Value
kind Kind of data set. 'AdlsGen1File'
properties Properties of the ADLS Gen1 file data set. AdlsGen1FileProperties (required)

AdlsGen1FileProperties

Name Description Value
accountName The ADLS account name. string (required)
fileName The file name in the ADLS account. string (required)
folderPath The folder path within the ADLS account. string (required)
resourceGroup Resource group of ADLS account. string (required)
subscriptionId Subscription id of ADLS account. string (required)

AdlsGen1FolderDataSet

Name Description Value
kind Kind of data set. 'AdlsGen1Folder'
properties Properties of the ADLS Gen1 folder data set. AdlsGen1FolderProperties (required)

AdlsGen1FolderProperties

Name Description Value
accountName The ADLS account name. string (required)
folderPath The folder path within the ADLS account. string (required)
resourceGroup Resource group of ADLS account. string (required)
subscriptionId Subscription id of ADLS account. string (required)

AdlsGen2FileDataSet

Name Description Value
kind Kind of data set. 'AdlsGen2File'
properties Properties of the ADLS Gen2 file data set. AdlsGen2FileProperties (required)

AdlsGen2FileProperties

Name Description Value
filePath File path within the file system. string (required)
fileSystem File system to which the file belongs. string (required)
resourceGroup Resource group of storage account string (required)
storageAccountName Storage account name of the source data set string (required)
subscriptionId Subscription id of storage account string (required)

AdlsGen2FileSystemDataSet

Name Description Value
kind Kind of data set. 'AdlsGen2FileSystem'
properties Properties of the ADLS Gen2 file system data set. AdlsGen2FileSystemProperties (required)

AdlsGen2FileSystemProperties

Name Description Value
fileSystem The file system name. string (required)
resourceGroup Resource group of storage account string (required)
storageAccountName Storage account name of the source data set string (required)
subscriptionId Subscription id of storage account string (required)

AdlsGen2FolderDataSet

Name Description Value
kind Kind of data set. 'AdlsGen2Folder'
properties Properties of the ADLS Gen2 folder data set. AdlsGen2FolderProperties (required)

AdlsGen2FolderProperties

Name Description Value
fileSystem File system to which the folder belongs. string (required)
folderPath Folder path within the file system. string (required)
resourceGroup Resource group of storage account string (required)
storageAccountName Storage account name of the source data set string (required)
subscriptionId Subscription id of storage account string (required)

BlobDataSet

Name Description Value
kind Kind of data set. 'Blob'
properties Properties of the blob data set. BlobProperties (required)

BlobProperties

Name Description Value
containerName Container that has the file path. string (required)
filePath File path within the source data set string (required)
resourceGroup Resource group of storage account string (required)
storageAccountName Storage account name of the source data set string (required)
subscriptionId Subscription id of storage account string (required)

BlobFolderDataSet

Name Description Value
kind Kind of data set. 'BlobFolder'
properties Properties of the blob folder data set. BlobFolderProperties (required)

BlobFolderProperties

Name Description Value
containerName Container that has the file path. string (required)
prefix Prefix for blob folder string (required)
resourceGroup Resource group of storage account string (required)
storageAccountName Storage account name of the source data set string (required)
subscriptionId Subscription id of storage account string (required)

BlobContainerDataSet

Name Description Value
kind Kind of data set. 'Container'
properties Properties of the BLOB container data set. BlobContainerProperties (required)

BlobContainerProperties

Name Description Value
containerName BLOB Container name. string (required)
resourceGroup Resource group of storage account string (required)
storageAccountName Storage account name of the source data set string (required)
subscriptionId Subscription id of storage account string (required)

KustoClusterDataSet

Name Description Value
kind Kind of data set. 'KustoCluster'
properties Properties of the kusto cluster data set. KustoClusterDataSetProperties (required)

KustoClusterDataSetProperties

Name Description Value
kustoClusterResourceId Resource id of the kusto cluster. string (required)

KustoDatabaseDataSet

Name Description Value
kind Kind of data set. 'KustoDatabase'
properties Properties of the kusto database data set. KustoDatabaseDataSetProperties (required)

KustoDatabaseDataSetProperties

Name Description Value
kustoDatabaseResourceId Resource id of the kusto database. string (required)

SqlDBTableDataSet

Name Description Value
kind Kind of data set. 'SqlDBTable'
properties Properties of the SQL DB table data set. SqlDBTableProperties

SqlDBTableProperties

Name Description Value
databaseName Database name of the source data set string (required)
schemaName Schema of the table. Default value is dbo. string (required)
sqlServerResourceId Resource id of SQL server string (required)
tableName SQL DB table name. string (required)

SqlDWTableDataSet

Name Description Value
kind Kind of data set. 'SqlDWTable'
properties Properties of the SQL DW table data set. SqlDWTableProperties

SqlDWTableProperties

Name Description Value
dataWarehouseName DataWarehouse name of the source data set string (required)
schemaName Schema of the table. Default value is dbo. string (required)
sqlServerResourceId Resource id of SQL server string (required)
tableName SQL DW table name. string (required)

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a data share from a storage account

Deploy to Azure
This template creates a data share from a storage account