You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/service/how-to-access-data.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,11 @@ When you register an Azure storage solution as a datastore, you automatically cr
56
56
57
57
All the register methods are on the [`Datastore`](https://docs.microsoft.com/python/api/azureml-core/azureml.core.datastore(class)?view=azure-ml-py) class and have the form register_azure_*.
58
58
59
-
The information you need to populate the register() method can be found via the [Azure Machine Learning studio](https://ml.azure.com) and these steps
59
+
The information you need to populate the register() method can be found via the [Azure portal](https://portal.azure.com) and these steps
60
60
61
61
1. Select **Storage Accounts** on the left pane and choose the storage account you want to register.
62
62
2. The **Overview** page provides information such as, the account name and container or file share name.
63
-
3. For authentication information, like account key or SAS token, navigate to **Account Keys** under the **Settings** pane on the left.
63
+
3. For authentication information, like account key or SAS token, navigate to **Access Keys** under the **Settings** pane on the left.
64
64
65
65
> [!IMPORTANT]
66
66
> If your storage account is in a VNET, only Azure blob datastore creation is supported. Set the parameter, `grant_workspace_access` to `True` to grant your workspace access to your storage account.
@@ -69,7 +69,7 @@ The following examples show how to register an Azure Blob Container, an Azure
69
69
70
70
+ For an **Azure Blob Container Datastore**, use [`register_azure_blob-container()`](https://docs.microsoft.com/python/api/azureml-core/azureml.core.datastore(class)?view=azure-ml-py#register-azure-blob-container-workspace--datastore-name--container-name--account-name--sas-token-none--account-key-none--protocol-none--endpoint-none--overwrite-false--create-if-not-exists-false--skip-validation-false--blob-cache-timeout-none--grant-workspace-access-false--subscription-id-none--resource-group-none-)
71
71
72
-
The following code creates and registers the datastore, `my_datastore`, to the workspace, `ws`. This datastore accesses the Azure blob container, `my_blob_container`, on the Azure storage account, `my_storage_account` using the provided account key.
72
+
The following code creates and registers the datastore, `blob_datastore_name`, to the workspace, `ws`. This datastore accesses the Azure blob container`my-container-name`, on the Azure storage account, `my-account-name` using the provided account key.
73
73
74
74
```Python
75
75
blob_datastore_name='azblobsdk'# Name of the Datastore to workspace
@@ -86,7 +86,7 @@ The following examples show how to register an Azure Blob Container, an Azure
86
86
87
87
+ For an **Azure File Share Datastore**, use [`register_azure_file_share()`](https://docs.microsoft.com/python/api/azureml-core/azureml.core.datastore(class)?view=azure-ml-py#register-azure-file-share-workspace--datastore-name--file-share-name--account-name--sas-token-none--account-key-none--protocol-none--endpoint-none--overwrite-false--create-if-not-exists-false--skip-validation-false-).
88
88
89
-
The following code creates and registers the datastore, `my_datastore`, to the workspace, `ws`. This datastore accesses the Azure file share, `my_file_share`, on the Azure storage account, `my_storage_account` using the provided account key.
89
+
The following code creates and registers the datastore, `file_datastore_name`, to the workspace, `ws`. This datastore accesses the Azure file share, `my-fileshare-name`, on the Azure storage account, `my-account-name` using the provided account key.
90
90
91
91
```Python
92
92
file_datastore_name='azfilesharesdk'# Name of the Datastore to workspace
@@ -205,9 +205,6 @@ The [`upload()`](https://docs.microsoft.com/python/api/azureml-core/azureml.data
205
205
To upload a directory to a datastore `datastore`:
206
206
207
207
```Python
208
-
import azureml.data
209
-
from azureml.data.azure_storage_datastore import AzureFileDatastore, AzureBlobDatastore
0 commit comments