Skip to content

Commit e48d599

Browse files
authored
Merge pull request #208331 from whhender/share-tutorial
Share tutorial
2 parents 18c7468 + 678210b commit e48d599

File tree

4 files changed

+484
-55
lines changed

4 files changed

+484
-55
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
author: jifems
3+
ms.author: jife
4+
ms.service: purview
5+
ms.subservice: purview-data-share
6+
ms.topic: include
7+
ms.date: 08/17/2022
8+
---
9+
10+
## Prerequisites
11+
12+
### Microsoft Purview prerequisites
13+
14+
* [A Microsoft Purview account](../create-catalog-portal.md). You can also use two Microsoft Purview accounts, one for data provider and one for data consumer to test both workflows.
15+
* Your recipient's Azure sign-in email address that you can use to send the invitation to. The recipient's email alias won't work.
16+
17+
### Azure Storage account prerequisites
18+
19+
* Your Azure subscription must be registered for the **AllowDataSharing** preview feature. Follow the below steps using Azure portal or PowerShell.
20+
21+
# [Portal](#tab/azure-portal)
22+
1. In Azure portal, select your Azure subscription that you'll use to create the source and target storage account.
23+
1. From the left menu, select **Preview features** under *Settings*.
24+
1. Select **AllowDataSharing** and *Register*.
25+
1. Refresh the *Preview features* screen to verify the *State* is **Registered**. It could take 15 minutes to 1 hour for registration to complete.
26+
27+
For more information, see [Register preview feature](../../azure-resource-manager/management/preview-features.md?tabs=azure-portal#register-preview-feature).
28+
29+
# [PowerShell](#tab/powershell)
30+
```azurepowershell
31+
Set-AzContext -SubscriptionId [Your Azure subscription ID]
32+
```
33+
```azurepowershell
34+
Register-AzProviderFeature -FeatureName "AllowDataSharing" -ProviderNamespace "Microsoft.Storage"​
35+
```
36+
```azurepowershell
37+
Get-AzProviderFeature -FeatureName "AllowDataSharing" -ProviderNamespace "Microsoft.Storage"
38+
```
39+
The *RegistrationState* should be **Registered**. It could take 15 minutes to 1 hour for registration to complete. For more information, see [Register preview feature](../../azure-resource-manager/management/preview-features.md?tabs=azure-portal#register-preview-feature).
40+
41+
* Source and target storage accounts **created after** the registration step is completed. **Both storage accounts must be in the same Azure region as each other**. Both storage accounts need to be ADLS Gen2 or Blob Storage accounts. Your storage accounts can be in a different Azure region from your Microsoft Purview account.
42+
43+
> [!NOTE]
44+
> The following are supported storage account configurations:
45+
>
46+
> - Azure regions: Canada Central, Canada East, UK South, UK West, Australia East, Japan East, Korea South, and South Africa North
47+
> - Performance: Standard
48+
> - Redundancy options: LRS, GRS, RA-GRS
49+
50+
* Latest version of the storage SDK, PowerShell, CLI and Azure Storage Explorer. Storage REST API version must be February 2020 or later.
51+
* The storage accounts need to be registered in the collections where you'll send or receive the share. If you're using one Microsoft Purview account, this can be two different collections, or the same collection. For instructions to register, see the [ADLS Gen2](../register-scan-adls-gen2.md) or [Blob storage](../register-scan-azure-blob-storage-source.md) data source pages.
52+
* If the source or target storage accounts are in a different Azure subscription than the one for Microsoft Purview account, the Microsoft.Purview resource provider is automatically registered in the Azure subscription where the data store is located at the time of share provider adding an asset or share consumer mapping an asset and **ONLY** if the user has permission to do the /register/action operation for the resource provider. The permission is included in the Contributor and Owner roles.
53+
>[!NOTE]
54+
> This registration is only needed the first time when sharing or receiving data into a storage account in the Azure subscription.
55+
56+
### Required roles
57+
Below are required roles for sharing data and receiving shares.
58+
59+
| | Azure Storage Account Roles | Microsoft Purview Collection Roles |
60+
|:--- |:--- |:--- |
61+
| **Data Provider** |Owner OR Storage Blob Data Owner|Data Share Contributor|
62+
| **Data Consumer** |Contributor OR Owner OR Storage Blob Data Contributor OR Storage Blob Data Owner|Data Share Contributor|
63+
64+
> [!NOTE]
65+
> If you created the Microsoft Purview account, you're automatically assigned all the roles to the root collection. Refer to [Microsoft Purview permissions](../catalog-permissions.md) to learn more about the Microsoft Purview collection and roles.

0 commit comments

Comments
 (0)