Skip to content

Commit 399d251

Browse files
committed
update get access token how-to
1 parent 2ede009 commit 399d251

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

articles/healthcare-apis/get-access-token.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ services: healthcare-apis
55
author: chachachachami
66
ms.service: azure-health-data-services
77
ms.topic: how-to
8-
ms.date: 06/02/2025
8+
ms.date: 03/16/2036
99
ms.author: chrupa
1010
ms.custom: devx-track-azurepowershell, devx-track-azurecli
1111
ms.devlang: azurecli
1212
---
1313

1414
# Get an access token by using Azure CLI or Azure PowerShell
1515

16-
To use the FHIR® service or the DICOM® service, you need an access token that verifies your identity and permissions to the server. You can obtain an access token using [PowerShell](/powershell/scripting/overview) or the [Azure Command-Line Interface (CLI)](/cli/azure/what-is-azure-cli), which are tools for creating and managing Azure resources.
16+
To use the FHIR® service or the DICOM® service, you need an access token that verifies your identity and permissions to the server. You can obtain an access token by using [PowerShell](/powershell/scripting/overview) or the [Azure Command-Line Interface (CLI)](/cli/azure/what-is-azure-cli), which are tools for creating and managing Azure resources.
1717

18-
Keep in mind that to access the FHIR service or the DICOM service, users and applications must be granted permissions through [role assignments](configure-azure-rbac.md) from Azure portal, or by using [scripts](configure-azure-rbac-using-scripts.md).
18+
To access the FHIR service or the DICOM service, you must grant permissions to users and applications through [role assignments](configure-azure-rbac.md) from the Azure portal or by using [scripts](configure-azure-rbac-using-scripts.md).
1919

20-
---
2120
## Get an access token for the FHIR service
2221

23-
The FHIR service uses a specific `resource` or `Audience` with URI equal to the URI of the FHIR server `https://<workspacename-fhirservicename>.fhir.azurehealthcareapis.com`. Obtain a token and store it in a variable (named `$token`) with the following command:
22+
The FHIR service uses a specific `resource` or `Audience` with a URI equal to the URI of the FHIR server `https://<workspacename-fhirservicename>.fhir.azurehealthcareapis.com`. The following example obtains a token and uses it to get a list of patients. To run the example, you need at least the FHIR Data Reader role assignment. Replace the `<placeholder>` with the service URL for your FHIR service.
2423

2524
### [Azure CLI](#tab/azure-cli)
2625

@@ -38,9 +37,10 @@ Invoke-WebRequest -Method GET -Headers $headers -Uri 'https://<workspacename-fhi
3837
```
3938

4039
---
40+
4141
## Get an access token for the DICOM service
4242

43-
The DICOM service uses the same `resource` or `Audience` with URI equal to `https://dicom.healthcareapis.azure.com` to obtain an access token. Obtain a token and store it in a variable (named `$token`) with the following command:
43+
The DICOM service uses the same `resource` or `Audience` with a URI equal to `https://dicom.healthcareapis.azure.com` to obtain an access token. The following example obtains an access token and uses it to get the service logs. To run the example, you need at least the DICOM Data Reader role assignment. Replace the `<placeholder>` with the service URL for your DICOM service.
4444

4545
### [Azure CLI](#tab/azure-cli)
4646

@@ -58,10 +58,10 @@ Invoke-WebRequest -Method GET -Headers $headers -Uri 'https://<workspacename-dic
5858
```
5959

6060
---
61-
## Next steps
6261

63-
[Access the FHIR service by using REST client](./fhir/using-rest-client.md)
62+
## Related content
6463

65-
[Access the DICOM service by using cURL](dicom/dicomweb-standard-apis-curl.md)
64+
- [Access the FHIR service by using REST client](./fhir/using-rest-client.md)
65+
- [Access the DICOM service by using cURL](dicom/dicomweb-standard-apis-curl.md)
6666

6767
[!INCLUDE [FHIR and DICOM trademark statement](./includes/healthcare-apis-fhir-dicom-trademark.md)]

0 commit comments

Comments
 (0)