Skip to content

Commit 8dbc95b

Browse files
Merge pull request #291605 from GrahamMThomas/healthcare-apis/deid-quickstart-rbac
Updates .NET quickstart to contain an RBAC step; Fixes example URI to contain container name.
2 parents 9afe476 + ff33121 commit 8dbc95b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

articles/healthcare-apis/deidentification/quickstart-sdk-net.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ A de-identification service provides you with an endpoint URL. This endpoint url
3636
DEID_SERVICE_NAME="<NewDeidServiceName>"
3737
az resource create -g $RESOURCE_GROUP_NAME -n $DEID_SERVICE_NAME --resource-type microsoft.healthdataaiservices/deidservices --is-full-object -p "{\"identity\":{\"type\":\"SystemAssigned\"},\"properties\":{},\"location\":\"$REGION\"}"
3838
```
39-
39+
### Assign RBAC Roles to the de-identification service
40+
41+
We need to assign a role to our de-identification service so we have permissions to perform the actions in this quickstart.
42+
43+
Since we're using real-time and job endpoints, we assign the `DeID Data Owner` roles.
44+
45+
To learn how to assign this role to your de-identification service, refer to: [Manage access to the de-identification service with Azure role-based access control (RBAC) in Azure Health Data Services](manage-access-rbac.md)
46+
4047
### Create an Azure Storage account
4148
4249
1. Install [Azure CLI](/cli/azure/install-azure-cli)
@@ -141,16 +148,16 @@ To create the job, we need the URL to the blob endpoint of the Azure Storage Acc
141148
az resource show -n $STORAGE_ACCOUNT_NAME -g $RESOURCE_GROUP_NAME --resource-type Microsoft.Storage/storageAccounts --query properties.primaryEndpoints.blob --output tsv
142149
```
143150
144-
Now we can create the job. This example uses `folder1/` as the prefix. The job will de-identify any document that matches this prefix and write the de-identified version with the `output_files/` prefix.
151+
Now we can create the job. This example uses `folder1/` as the prefix. The job de-identifies any document that matches this prefix and write the de-identified version with the `output_files/` prefix.
145152
146153
```csharp
147154
using Azure;
148155
149-
Uri storageAccountUri = new("");
156+
Uri storageAccountContainerUri = new("https://exampleStorageAccount.blob.core.windows.net/containerName");
150157
151158
DeidentificationJob job = new(
152-
new SourceStorageLocation(new Uri(storageAccountUrl), "folder1/"),
153-
new TargetStorageLocation(new Uri(storageAccountUrl), "output_files/")
159+
new SourceStorageLocation(storageAccountContainerUri, "folder1/"),
160+
new TargetStorageLocation(storageAccountContainerUri, "output_files/")
154161
);
155162
156163
job = client.CreateJob(WaitUntil.Started, "my-job-1", job).Value;

0 commit comments

Comments
 (0)