Skip to content

Commit 02fdc22

Browse files
authored
Merge pull request #44765 from pjanowski/master
Minor fixes to how-to-access-data.md doc.
2 parents e53e63f + ab614aa commit 02fdc22

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

articles/machine-learning/service/how-to-access-data.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ When you register an Azure storage solution as a datastore, you automatically cr
5656

5757
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_*.
5858

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
6060

6161
1. Select **Storage Accounts** on the left pane and choose the storage account you want to register.
6262
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.
6464

6565
> [!IMPORTANT]
6666
> 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
6969

7070
+ 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-)
7171

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.
7373

7474
```Python
7575
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
8686

8787
+ 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-).
8888

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.
9090

9191
```Python
9292
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
205205
To upload a directory to a datastore `datastore`:
206206

207207
```Python
208-
import azureml.data
209-
from azureml.data.azure_storage_datastore import AzureFileDatastore, AzureBlobDatastore
210-
211208
datastore.upload(src_dir='your source directory',
212209
target_path='your target path',
213210
overwrite=True,
@@ -304,7 +301,7 @@ input_data = DataReference(
304301
data_reference_name="input_data",
305302
path_on_datastore="20newsgroups/20news.pkl")
306303

307-
output = PipelineData("output", datastore=def_blob_store)
304+
output = PipelineData("output", datastore=def_blob_store)
308305
```
309306
<a name="matrix"></a>
310307

0 commit comments

Comments
 (0)