Register an Azure file share as a datastore. You can choose to use either the SAS token or the storage account key.

register_azure_file_share_datastore(
  workspace,
  datastore_name,
  file_share_name,
  account_name,
  sas_token = NULL,
  account_key = NULL,
  protocol = NULL,
  endpoint = NULL,
  overwrite = FALSE,
  create_if_not_exists = FALSE,
  skip_validation = FALSE
)

Arguments

workspace

The Workspace object.

datastore_name

A string of the name of the datastore. The name must be case insensitive and can only contain alphanumeric characters and underscores.

file_share_name

A string of the name of the Azure file share.

account_name

A string of the storage account name.

sas_token

A string of the account SAS token.

account_key

A string of the storage account key.

protocol

A string of the protocol to use to connect to the file store. If NULL, defaults to 'https'.

endpoint

A string of the endpoint of the file store. If NULL, defaults to 'core.windows.net'.

overwrite

If TRUE, overwrites an existing datastore. If the datastore does not exist, it will create one.

create_if_not_exists

If TRUE, creates the file share if it does not exists.

skip_validation

If TRUE, skips validation of storage keys.

Value

The AzureFileDatastore object.

Details

In general we recommend Azure Blob storage over Azure File storage. Both standard and premium storage are available for blobs. Although more expensive, we suggest premium storage due to faster throughput speeds that may improve the speed of your training runs, particularly if you train against a large dataset.

Examples

if (FALSE) { ws <- load_workspace_from_config() ds <- register_azure_file_share_datastore(ws, datastore_name = 'mydatastore', file_share_name = 'myazurefilesharename', account_name = 'mystorageaccoutname', account_key = 'mystorageaccountkey') }