register_azure_data_lake_gen2_datastore {azuremlsdk} | R Documentation |
Initialize a new Azure Data Lake Gen2 Datastore.
Description
Initialize a new Azure Data Lake Gen2 Datastore.
Usage
register_azure_data_lake_gen2_datastore(
workspace,
datastore_name,
filesystem,
account_name,
tenant_id,
client_id,
client_secret,
resource_url = NULL,
authority_url = NULL,
protocol = NULL,
endpoint = NULL,
overwrite = FALSE
)
Arguments
workspace |
The workspace this datastore belongs to. |
datastore_name |
The datastore name. |
filesystem |
The name of the Data Lake Gen2 filesystem. |
account_name |
The storage account name. |
tenant_id |
The Directory ID/Tenant ID of the service principal. |
client_id |
The Client ID/Application ID of the service principal. |
client_secret |
The secret of the service principal. |
resource_url |
The resource URL, which determines what operations will be performed on the data lake store, defaults to https://storage.azure.com/ which allows us to perform filesystem operations. |
authority_url |
The authority URL used to authenticate the user, defaults to "https://login.microsoftonline.com". |
protocol |
Protocol to use to connect to the blob container. If None, defaults to "https". |
endpoint |
The endpoint of the blob container. If None, defaults to "core.windows.net". |
overwrite |
Whether to overwrite an existing datastore. If the datastore does not exist, it will create one. The default is FALSE. |
Value
The azureml.data.azure_data_lake_datastore.AzureDataLakeGen2Datastore
object.
Examples
# Create and register an Azure Data Lake Gen2 Datastore to a workspace. my_adlsgen2_ds <- register_azure_data_lake_gen2_datastore(workspace = your_workspace, datastore_name = <name for this datastore>, filesystem = 'test', tenant_id = your_workspace$auth$tenant_id, client_id = your_workspace$auth$service_principal_id, client_secret = your_workspace$auth$service_principal_password)
See Also
unregister_datastore()
, get_datastore()