You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/healthcare-apis/configure-azure-rbac-using-scripts.md
+19-21Lines changed: 19 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Grant permissions to users and client applications using CLI and REST API - Azure Health Data Services
3
-
description: This article describes how to grant permissions to users and client applications using CLI and REST API.
2
+
title: Grant permissions to users and applications by using CLI and REST API in Azure Health Data Services
3
+
description: Learn to configure Azure RBAC roles using CLI and REST API for secure access to Azure Health Data Services. See how to make role assignments with detailed scripts and examples.
4
4
services: healthcare-apis
5
5
author: chachachachami
6
6
ms.service: healthcare-apis
@@ -10,19 +10,19 @@ ms.date: 06/06/2022
10
10
ms.author: chrupa
11
11
---
12
12
13
-
# Configure Azure RBAC role using Azure CLI and REST API
13
+
# Configure Azure RBAC roles by using Azure CLI and REST API
14
14
15
-
In this article, you'll learn how to grant permissions to client applications (and users) to access Azure Health Data Services using Azure Command-Line Interface (CLI) and REST API. This step is referred to as "role assignment" or Azure
16
-
[role-based access control (Azure RBAC role)](./../role-based-access-control/role-assignments-cli.md). To further your understanding about the application roles defined for Azure Health Data Services, see [Configure Azure RBAC role](configure-azure-rbac.md).
15
+
In this article, you learn how to grant permissions to client applications and users to access Azure Health Data Services by using the Azure Command-Line Interface (CLI) and REST API. This step is referred to as role assignment or Azure
16
+
[role-based access control (RBAC)](./../role-based-access-control/role-assignments-cli.md). For more information, see [Configure Azure RBAC role](configure-azure-rbac.md).
17
17
18
-
You can view and download the [CLI scripts](https://github.com/microsoft/healthcare-apis-samples/blob/main/src/scripts/role-assignment-using-cli.http) and [REST API scripts](https://github.com/microsoft/healthcare-apis-samples/blob/main/src/scripts/role-assignment-using-rest-api.http) from [Azure Health Data Services samples](https://github.com/microsoft/healthcare-apis-samples).
18
+
View and download the [CLI scripts](https://github.com/microsoft/healthcare-apis-samples/blob/main/src/scripts/role-assignment-using-cli.http) and [REST API scripts](https://github.com/microsoft/healthcare-apis-samples/blob/main/src/scripts/role-assignment-using-rest-api.http) from [Azure Health Data Services samples](https://github.com/microsoft/healthcare-apis-samples).
19
19
20
-
> [!Note]
20
+
> [!Note]
21
21
> To perform the role assignment operation, the user (or the client application) must be granted with RBAC permissions. Contact your Azure subscription administrators for assistance.
22
22
23
23
## Role assignments with CLI
24
24
25
-
You can list application roles using role names or GUID IDs. Include the role name in double quotes when there are spaces in it. For more information, see
25
+
You can list application roles by using role names or GUID IDs. Include the role name in double quotes when there are spaces in it. For more information, see
26
26
[List Azure role definitions](./../role-based-access-control/role-definitions-list.yml#azure-cli).
27
27
28
28
```
@@ -34,7 +34,7 @@ az role definition list --name 58a3b984-7adf-4c20-983a-32417c86fbc8
34
34
35
35
### Azure Health Data Services role assignment
36
36
37
-
The role assignments for Azure Health Data Services require the following values.
37
+
The role assignments for Azure Health Data Services require these values:
38
38
39
39
- Application role name or GUID ID.
40
40
- Service principal ID for the user or client application.
@@ -82,19 +82,20 @@ spid=$(az ad sp show --id $clientid --query objectId --output tsv)
82
82
#assign the specified role
83
83
az role assignment create --assignee-object-id $spid --assignee-principal-type ServicePrincipal --role "$fhirrole" --scope $fhirrolescope
84
84
```
85
+
85
86
## Role assignments with REST API
86
87
87
88
Alternatively, you can send a Put request to the role assignment REST API directly. For more information, see [Assign Azure roles using the REST API](./../role-based-access-control/role-assignments-rest.md).
88
89
89
90
>[!Note]
90
-
>The REST API scripts in this article are based on the [REST Client](./fhir/using-rest-client.md) extension. You'll need to revise the variables if you are in a different environment.
91
+
>The REST API scripts in this article are based on the [REST Client](./fhir/using-rest-client.md) extension. You need to revise the variables if you are in a different environment.
91
92
92
-
The API requires the following values:
93
+
The API requires these values:
93
94
94
95
- Assignment ID, which is a GUID value that uniquely identifies the transaction. You can use tools such as Visual Studio or Visual Studio Code extension to get a GUID value. Also, you can use online tools such as [UUID Generator](https://www.uuidgenerator.net/api/guid) to get it.
95
-
- API version that is supported by the API.
96
+
- API version supported by the API.
96
97
- Scope for Azure Health Data Services to which you grant access permissions. It includes subscription ID, resource group name, and the FHIR or DICOM service instance name.
97
-
- Role definition ID for roles such as "FHIR Data Contributor" or "DICOM Data Owner". Use `az role definition list --name "<role name>"` to list the role definition IDs.
98
+
- Role definition ID for roles such as **FHIR Data Contributor** or **DICOM Data Owner**. Use `az role definition list --name "<role name>"` to list the role definition IDs.
98
99
- Service principal ID for the user or the client application.
99
100
- Microsoft Entra access token to the `https://management.azure.com/`, not Azure Health Data Services. You can get the access token using an existing tool or using Azure CLI command, `az account get-access-token --resource "https://management.azure.com/"`
100
101
- For Azure Health Data Services, the scope includes workspace name and FHIR/DICOM service instance name.
@@ -124,7 +125,7 @@ Accept: application/json
124
125
}
125
126
```
126
127
127
-
For Azure API for FHIR, the scope is defined slightly differently as it supports the FHIR service only, and no workspace name is required.
128
+
For Azure API for FHIR, the scope is defined differently as it supports the FHIR service only, and no workspace name is required.
128
129
129
130
```rest
130
131
### Create a role assignment - Azure API for FHIR
@@ -153,7 +154,7 @@ Accept: application/json
153
154
154
155
## List service instances of Azure Health Data Services
155
156
156
-
Optionally, you can get a list of Azure Health Data Services services, or Azure API for FHIR. Note that the API version is based on Azure Health Data Services, not the version for the role assignment REST API.
157
+
Optionally, you can get a list of Azure Health Data Services services, or Azure API for FHIR. The API version is based on Azure Health Data Services, not the version for the role assignment REST API.
157
158
158
159
For Azure Health Data Services, specify the subscription ID, resource group name, workspace name, FHIR or DICOM services, and the API version.
159
160
@@ -185,13 +186,10 @@ Accept: application/json
185
186
186
187
```
187
188
188
-
Now that you've granted proper permissions to the client application, you can access Azure Health Data Services in your applications.
189
+
After you grant proper permissions to the client application, you can access Azure Health Data Services in your applications.
189
190
190
191
## Next steps
191
192
192
-
In this article, you learned how to grant permissions to client applications using Azure CLI and REST API. For information on how to access Azure Health Data Services using the REST Client Extension in Visual Studio Code, see
193
-
194
-
>[!div class="nextstepaction"]
195
-
>[Access using REST Client](./fhir/using-rest-client.md)
193
+
[Access using REST Client](./fhir/using-rest-client.md)
196
194
197
-
FHIR® is a registered trademark of [HL7](https://hl7.org/fhir/) and is used with the permission of HL7.
195
+
[!INCLUDE [FHIR and DICOM trademark statement](./includes/healthcare-apis-fhir-dicom-trademark.md)]
title: Configure Azure RBAC role for FHIR service - Azure Health Data Services
3
-
description: This article describes how to configure Azure RBAC role for FHIR.
2
+
title: Configure Azure RBAC role for the FHIR service in Azure Health Data Services
3
+
description: Learn how to configure Azure RBAC for the FHIR service in Azure Health Data Services. Assign roles, manage access, and safeguard your data plane.
4
4
author: chachachachami
5
5
ms.service: healthcare-apis
6
6
ms.topic: tutorial
7
7
ms.date: 06/06/2022
8
8
ms.author: chrupa
9
9
---
10
+
# Configure Azure RBAC roles for Azure Health Data Services
10
11
11
-
# Configure Azure RBAC role for Azure Health Data Services
12
+
In this article, you learn how to use [Azure role-based access control (RBAC)](../role-based-access-control/index.yml) to assign access to the Azure Health Data Services data plane. Using Azure RBAC roles is the preferred method for assigning data plane access when data plane users are managed in the Microsoft Entra tenant associated with your Azure subscription.
12
13
13
-
In this article, you'll learn how to use [Azure role-based access control (Azure RBAC role)](../role-based-access-control/index.yml) to assign access to the Azure Health Data Services data plane. Azure RBAC role is the preferred methods for assigning data plane access when data plane users are managed in the Microsoft Entra tenant associated with your Azure subscription.
14
-
15
-
You can complete role assignments through the Azure portal. Note that the FHIR service and DICOM service have defined different application roles. Add or remove one or more roles to manage user access controls.
14
+
You can complete role assignments in the Azure portal. The FHIR® service and DICOM® service define application roles differently. Add or remove one or more roles to manage user access controls.
16
15
17
16
## Assign roles for the FHIR service
18
17
19
-
To grant users, service principals, or groups access to the FHIR data plane, select the FHIR service from the Azure portal. Select **Access control (IAM)**, and then select the **Role assignments** tab. Select **+Add**, and then select **Add role assignment**.
20
-
21
-
If the role assignment option is grayed out, ask your Azure subscription administrator to grant you with the permissions to the subscription or the resource group, for example, “User Access Administrator”. For more information about the Azure built-in roles, see [Azure built-in roles](../role-based-access-control/built-in-roles.md).
18
+
To grant users, service principals, or groups access to the FHIR data plane, go to the FHIR service in the Azure portal. Select **Access control (IAM)**, and then select the **Role assignments** tab. Select **+Add**, and then select **Add role assignment**.
19
+
20
+
If the role assignment option is grayed out, ask your Azure subscription administrator to grant you with the permissions to the subscription or the resource group, for example, **User Access Administrator**. For more information, see [Azure built-in roles](../role-based-access-control/built-in-roles.md).
22
21
23
-
[  ](fhir/media/rbac/role-assignment.png#lightbox)
22
+
:::image type="content" source="media/rbac/select-role-assignment.png" alt-text="Screenshot showing role assignment selection." lightbox="media/rbac/select-role-assignment.png":::
24
23
25
-
In the Role selection, search for one of the built-in roles for the FHIR data plane, for example, “FHIR Data Contributor”. You can choose other roles below.
24
+
In the **Role** selection, search for one of the built-in roles for the FHIR data plane. You can choose from these roles:
26
25
27
26
* **FHIR Data Reader**: Can read (and search) FHIR data.
28
27
* **FHIR Data Writer**: Can read, write, and soft delete FHIR data.
29
28
* **FHIR Data Exporter**: Can read and export ($export operator) data.
30
29
* **FHIR Data Contributor**: Can perform all data plane operations.
31
30
* **FHIR Data Converter**: Can use the converter to perform data conversion.
32
-
* **FHIR SMART User**: Role allows to read and write FHIR data according to the SMART IG V1.0.0 specifications.
31
+
* **FHIR SMART User**: Can read and write FHIR data according to the SMART IG V1.0.0 specifications.
33
32
34
-
In the **Select** section, type the client application registration name. If the name is found, the application name is listed. Select the application name, and then select **Save**.
33
+
In the **Select** section, type the client application registration name. If the name is found, the application name is listed. Select the application name, and then select **Save**.
35
34
36
35
If the client application isn’t found, check your application registration. This is to ensure that the name is correct. Ensure that the client application is created in the same tenant where the FHIR service in Azure Health Data Services (hereby called the FHIR service) is deployed in.
37
36
38
-
39
-
[  ](fhir/media/rbac/select-role-assignment.png#lightbox)
37
+
:::image type="content" source="media/rbac/select-role-assignment.png" alt-text="Screenshot showing selection of role assignment." lightbox="media/rbac/select-role-assignment.png":::
40
38
41
39
You can verify the role assignment by selecting the **Role assignments** tab from the **Access control (IAM)** menu option.
42
-
40
+
43
41
## Assign roles for the DICOM service
44
42
45
43
To grant users, service principals, or groups access to the DICOM data plane, select the **Access control (IAM)** blade. Select the**Role assignments** tab, and select **+ Add**.
In the **Role** selection, search for one of the built-in roles for the DICOM data plane:
50
48
51
-
[  ](dicom/media/rbac-add-role-assignment.png#lightbox)
49
+
:::image type="content" source="media/rbac/rbac-add-role-assignment.png" alt-text="Screenshot showing how to add an RBAC role assignment." lightbox="media/rbac/rbac-add-role-assignment.png":::
52
50
53
51
You can choose between:
54
52
55
53
* DICOM Data Owner: Full access to DICOM data.
56
54
* DICOM Data Reader: Read and search DICOM data.
57
55
58
-
If these roles aren’t sufficient for your need, you can use PowerShell to create custom roles. For information about creating custom roles, see [Create a custom role using Azure PowerShell](../role-based-access-control/custom-roles-powershell.md).
56
+
If these roles aren’t sufficient, you can use PowerShell to create custom roles. For information about creating custom roles, see [Create a custom role by using Azure PowerShell](../role-based-access-control/custom-roles-powershell.md).
59
57
60
58
In the **Select** box, search for a user, service principal, or group that you want to assign the role to.
61
59
@@ -64,10 +62,10 @@ In the **Select** box, search for a user, service principal, or group that you w
64
62
65
63
## Next steps
66
64
67
-
In this article, you've learned how to assign Azure roles for the FHIR service and DICOM service. To learn how to access the Azure Health Data Services using Postman, see
65
+
[Access by using Postman](./fhir/use-postman.md)
66
+
67
+
[Access by using the REST Client](./fhir/using-rest-client.md)
68
68
69
-
- [Access using Postman](./fhir/use-postman.md)
70
-
- [Access using the REST Client](./fhir/using-rest-client.md)
71
-
- [Access using cURL](./fhir/using-curl.md)
69
+
[Access by using cURL](./fhir/using-curl.md)
72
70
73
-
FHIR® is a registered trademark of [HL7](https://hl7.org/fhir/) and is used with the permission of HL7.
71
+
[!INCLUDE [FHIR and DICOM trademark statement](./includes/healthcare-apis-fhir-dicom-trademark.md)]
Copy file name to clipboardExpand all lines: articles/healthcare-apis/fhir/get-started-with-fhir.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Get started with FHIR service - Azure Health Data Services
3
-
description: This document describes how to get started with FHIR service in Azure Health Data Services.
2
+
title: Get started with the FHIR service in Azure Health Data Services
3
+
description: Learn how to set up the FHIR service in Azure Health Data Services with steps to create workspaces, register apps, and manage data.
4
4
author: expekesheth
5
5
ms.service: healthcare-apis
6
6
ms.subservice: fhir
@@ -10,9 +10,9 @@ ms.author: kesheth
10
10
ms.custom: mode-api
11
11
---
12
12
13
-
# Get started with FHIR service
13
+
# Get started with the FHIR service
14
14
15
-
This article outlines the basic steps to get started with the FHIR service in [Azure Health Data Services](../healthcare-apis-overview.md).
15
+
This article outlines the basic steps to get started with the FHIR® service in [Azure Health Data Services](../healthcare-apis-overview.md).
16
16
17
17
As a prerequisite, you need an Azure subscription and permissions to create Azure resource groups and deploy Azure resources. You can follow all the steps, or skip some if you have an existing environment. Also, you can combine all the steps and complete them in PowerShell, Azure CLI, and REST API scripts.
18
18
@@ -45,15 +45,15 @@ You can delete a client application. Before you delete a client application, ens
45
45
46
46
### Grant access permissions
47
47
48
-
You can grant access permissions or assign roles from the [Azure portal](../configure-azure-rbac.md), or using PowerShell and Azure CLI scripts.
48
+
You can grant access permissions or assign roles in the [Azure portal](../configure-azure-rbac.md), or by using PowerShell and Azure CLI scripts.
49
49
50
50
### Perform create, read, update, and delete (CRUD) transactions
51
51
52
-
You can perform Create, Read (search), Update, and Delete (CRUD) transactions against the FHIR service in your applications or by using tools such as Postman, REST Client, and cURL. Because the FHIR service is secured by default, you must obtain an access token and include it in your transaction request.
52
+
You can perform Create, Read (search), Update, and Delete (CRUD) transactions against the FHIR service in your applications or by using tools such as Postman, REST Client, and cURL. Because the FHIR service is secured by default, you need to obtain an access token and include it in your transaction request.
53
53
54
54
#### Get an access token
55
55
56
-
You can obtain a Microsoft Entra access token using PowerShell, Azure CLI, REST CCI, or .NET SDK. For more information, see [Get access token](../get-access-token.md).
56
+
You can obtain a Microsoft Entra access token by using PowerShell, Azure CLI, REST CCI, or .NET SDK. For more information, see [Get an access token](../get-access-token.md).
57
57
58
58
#### Access using existing tools
59
59
@@ -63,19 +63,19 @@ You can obtain a Microsoft Entra access token using PowerShell, Azure CLI, REST
63
63
64
64
#### Load data
65
65
66
-
You can load data directly using the POST or PUT method against the FHIR service. To bulk load data, you can use $import operation. For information, visit [import operation](import-data.md).
66
+
You can load data directly by using the POST or PUT method against the FHIR service. To bulk load data, you can use $import operation. For information, visit [import operation](import-data.md).
67
67
68
68
### CMS, search, profile validation, and reindex
69
69
70
70
You can find more details on interoperability and patient access, search, profile validation, and reindex in the [FHIR service](overview.md) documentation.
71
71
72
72
### Export data
73
73
74
-
Optionally, you can export ($export) data to [Azure Storage](../data-transformation/export-data.md) and use it in your analytics or machine-learning projects. You can export the data "as-is" or [deid](../data-transformation/de-identified-export.md) in `ndjson` format.
74
+
Optionally, you can export ($export) data to [Azure Storage](../data-transformation/export-data.md) and use it in your analytics or machine-learning projects. You can export the data "as-is" or [deID](../data-transformation/de-identified-export.md) in `ndjson` format.
75
75
76
-
### Converting data
76
+
### Convert data
77
77
78
-
Optionally, you can convert [HL7 v2](convert-data-overview.md) and other format data to FHIR.
78
+
Optionally, you can convert [HL7 v2](convert-data-overview.md)data and other formats to FHIR.
79
79
80
80
### Using FHIR data in Power BI dashboard
81
81
@@ -86,6 +86,6 @@ Optionally, you can create Power BI dashboard reports with FHIR data.
86
86
87
87
## Next steps
88
88
89
-
[Deploy a FHIR service within Azure Health Data Services](fhir-portal-quickstart.md)
89
+
[Deploy a FHIR service in Azure Health Data Services](fhir-portal-quickstart.md)
0 commit comments