Skip to content

Commit

Permalink
[Datashare] Add blobfolder dataset example (Azure#2229)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhou-msft authored Aug 31, 2020
1 parent 11e948c commit ba3c0f7
Show file tree
Hide file tree
Showing 5 changed files with 518 additions and 661 deletions.
5 changes: 5 additions & 0 deletions src/datashare/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

0.1.1
+++++
* Add examples for creating a BlobFolder dataset


0.1.0
++++++
* Initial release.
10 changes: 10 additions & 0 deletions src/datashare/azext_datashare/manual/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
text: |-
az datashare dataset create --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare \
--dataset "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"filePath\\":\\"file21\\",\\"resourceGroup\\": \
\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"00000000-0000-0000-0000-000000000000\\"}}"
- name: Create a BlobFolder dataset
text: |-
az datashare dataset create --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare \
--dataset "{\\"kind\\":\\"BlobFolder\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"prefix\\":\\"folder21\\",\\"resourceGroup\\": \
\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"00000000-0000-0000-0000-000000000000\\"}}"
- name: Create a KustoCluster dataset
text: |-
Expand Down Expand Up @@ -208,6 +213,11 @@
az datashare consumer dataset-mapping create --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription \
--mapping "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"dataSetId\\":\\"00000000-0000-0000-0000-000000000000\\",\\"filePath\
\\":\\"file21\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"00000000-0000-0000-0000-000000000000\\"}}"
- name: Create a BlobFolder dataset mapping
text: |-
az datashare consumer dataset-mapping create --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription \
--mapping "{\\"kind\\":\\"BlobFolder\\",\\"properties\\":{\\"containerName\\":\\"C2\\",\\"dataSetId\\":\\"00000000-0000-0000-0000-000000000000\\",\\"prefix\
\\":\\"folder21\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage3\\",\\"subscriptionId\\":\\"00000000-0000-0000-0000-000000000000\\"}}"
- name: Create a SqlDBTable dataset mapping
text: |-
az datashare consumer dataset-mapping create --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription \
Expand Down
Loading

0 comments on commit ba3c0f7

Please sign in to comment.