Skip to content

Commit be560d9

Browse files
committed
PM feedback
1 parent 20aaf35 commit be560d9

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,15 @@ Datastores currently support storing connection information to the storage servi
5656
Azure&nbsp;SQL&nbsp;Database| SQL authentication <br>Service principal| ✓ | ✓ | ✓ |✓
5757
Azure&nbsp;PostgreSQL | SQL authentication| ✓ | ✓ | ✓ |✓
5858
Azure&nbsp;Database&nbsp;for&nbsp;MySQL | SQL authentication| | ✓ | ✓ |✓
59-
Databricks&nbsp;File&nbsp;System| No authentication | | ✓`*` | ✓ `*`|✓`*`
59+
Databricks&nbsp;File&nbsp;System| No authentication | | ✓* | ✓ * |✓*
6060

61-
`*` only supported on local compute target scenarios
61+
*only supported on local compute target scenarios
6262

6363
### Storage guidance
6464

65-
We recommend creating a datastore for an Azure blob container. Both standard and premium storage are available for blobs. Although premium storage is more expensive, its faster throughput speeds might improve the speed of your training runs, particularly if you train against a large dataset. For information about the cost of storage accounts, see the [Azure pricing calculator](https://azure.microsoft.com/pricing/calculator/?service=machine-learning-service).
65+
We recommend creating a datastore for an Azure blob container. As part of the workspace creation process a default blob datastore and file share datastore are created for you.
66+
67+
Both standard and premium storage are available for blobs. Although premium storage is more expensive, its faster throughput speeds might improve the speed of your training runs, particularly if you train against a large dataset. For information about the cost of storage accounts, see the [Azure pricing calculator](https://azure.microsoft.com/pricing/calculator/?service=machine-learning-service).
6668

6769
<a name="access"></a>
6870

@@ -129,7 +131,7 @@ file_datastore = Datastore.register_azure_file_share(workspace=ws,
129131

130132
#### Azure Data Lake Storage Generation 2
131133

132-
For an Azure Data Lake Storage Generation 2 (ADLS Gen 2) datastore, use [register_azure_data_lake_gen2()](https://docs.microsoft.com/python/api/azureml-core/azureml.core.datastore.datastore?view=azure-ml-py#register-azure-data-lake-gen2-workspace--datastore-name--filesystem--account-name--tenant-id--client-id--client-secret--resource-url-none--authority-url-none--protocol-none--endpoint-none--overwrite-false-) to register a credential datastore connected to an Azure DataLake Gen 2 storage with service principal permissions. Learn more about [access control et up for ADLS Gen 2](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-access-control).
134+
For an Azure Data Lake Storage Generation 2 (ADLS Gen 2) datastore, use [register_azure_data_lake_gen2()](https://docs.microsoft.com/python/api/azureml-core/azureml.core.datastore.datastore?view=azure-ml-py#register-azure-data-lake-gen2-workspace--datastore-name--filesystem--account-name--tenant-id--client-id--client-secret--resource-url-none--authority-url-none--protocol-none--endpoint-none--overwrite-false-) to register a credential datastore connected to an Azure DataLake Gen 2 storage with service principal permissions. Learn more about [access control set up for ADLS Gen 2](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-access-control).
133135

134136
The following code creates and registers the `adlsgen2_datastore_name` datastore to the `ws` workspace. This datastore accesses the file system `test` on the `account_name` storage account, by using the provided service principal credentials.
135137

@@ -144,14 +146,13 @@ tenant_id=os.getenv("ADLSGEN2_TENANT", "<my_tenant_id>") # tenant id of service
144146
client_id=os.getenv("ADLSGEN2_CLIENTID", "<my_client_id>") # client id of service principal
145147
client_secret=os.getenv("ADLSGEN2_CLIENT_SECRET", "<my_client_secret>") # the secret of service principal
146148

147-
adlsgen2_datastore = Datastore.register_azure_data_lake_gen2(
148-
workspace=ws,
149-
datastore_name=adlsgen2_datastore_name,
150-
account_name=account_name, # ADLS Gen2 account name
151-
filesystem='test', # Name of ADLS Gen2 filesystem
152-
tenant_id=tenant_id, # tenant id of service principal
153-
client_id=client_id, # client id of service principal
154-
client_secret=client_secret) # the secret of service principal
149+
adlsgen2_datastore = Datastore.register_azure_data_lake_gen2( workspace=ws,
150+
datastore_name=adlsgen2_datastore_name,
151+
account_name=account_name, # ADLS Gen2 account name
152+
filesystem='test', # ADLS Gen2 filesystem
153+
tenant_id=tenant_id, # tenant id of service principal
154+
client_id=client_id, # client id of service principal
155+
client_secret=client_secret) # the secret of service principal
155156
```
156157

157158
### Azure Machine Learning studio

0 commit comments

Comments
 (0)