Skip to content

Commit 8c25e04

Browse files
author
Graham Thomas
committed
Updates .NET quickstart to contain an RBAC step; Fixes example URI to contain container name
1 parent 82c992f commit 8c25e04

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 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 deidentification service so we will have permissions to perform the actions in this quickstart.
42+
43+
Since we will be using realtime and job endpoints, we will assign the `DeID Data Owner` roles.
44+
45+
To learn how to assign this role to your deidentification service, please 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)
@@ -146,11 +153,11 @@ Now we can create the job. This example uses `folder1/` as the prefix. The job w
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)