Skip to content

Commit 6ac5a27

Browse files
authored
Merge pull request #111485 from MayMSFT/patch-39
Update how-to-access-data.md
2 parents 9c7796e + e1ecb6d commit 6ac5a27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Select **Storage Accounts** on the left pane, and choose the storage account tha
9696
* For service principal items like, tenant ID and client ID, go to your **App registrations** and select which app you want to use. Its corresponding **Overview** page will contain these items.
9797

9898
> [!IMPORTANT]
99-
> If your storage account is in a virtual network, only creation of Blob, File share, ADLS Gen 1 and ADLS Gen 2 datastores **via the SDK** is supported. To grant your workspace access to your storage account, set the parameter `grant_workspace_access` to `True`.
99+
> If your storage account is in a virtual network, only creation of datastores **via the SDK** is supported.
100100
101101
The following examples show how to register an Azure blob container, an Azure file share, and Azure Data Lake Storage Generation 2 as a datastore. For other storage services, please see the [reference documentation for the applicable `register_azure_*` methods](https://docs.microsoft.com/python/api/azureml-core/azureml.core.datastore.datastore?view=azure-ml-py#methods).
102102

@@ -118,6 +118,7 @@ blob_datastore = Datastore.register_azure_blob_container(workspace=ws,
118118
account_name=account_name,
119119
account_key=account_key)
120120
```
121+
If your blob container is in virtual network, set `skip_validation=True` using [`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-).
121122

122123
#### File share
123124

@@ -137,6 +138,7 @@ file_datastore = Datastore.register_azure_file_share(workspace=ws,
137138
account_name=account_name,
138139
account_key=account_key)
139140
```
141+
If your file share is in virtual network, set `skip_validation=True` using [`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-).
140142

141143
#### Azure Data Lake Storage Generation 2
142144

0 commit comments

Comments
 (0)