Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
---
title: Register a service app in Microsoft Entra ID - Azure API for FHIR
description: Learn how to register a service client application in Microsoft Entra ID.
author: expekesheth
ms.service: azure-health-data-services
ms.subservice: fhir
ms.topic: article
ms.date: 12/05/2025
ms.author: kesheth
ms.custom: sfi-image-nochange
---
# Register a service client application in Microsoft Entra ID for Azure API for FHIR
[!INCLUDE[retirement banner](../includes/healthcare-apis-azure-api-fhir-retirement.md)]
In this article, you learn how to register a service client application in Microsoft Entra ID. Client application registrations are Microsoft Entra representations of applications that can be used to authenticate and obtain tokens. A service client is intended to be used by an application to obtain an access token without interactive authentication of a user. It has certain application permissions and can use an application secret (password) when obtaining access tokens.
Follow these steps to create a new service client.
## App registrations in Azure portal
1. In the [Azure portal](https://portal.azure.com), navigate to **Microsoft Entra ID**.
2. Select **App registrations**.

3. Select **New registration**.
4. Give the service client a display name. Service client applications typically don't use a reply URL.
:::image type="content" source="media/service-client-app/service-client-registration.png" alt-text="Azure portal. New Service Client App Registration.":::
5. Select **Register**.
## API permissions
Permissions for Azure API for FHIR are managed through role-based access control (RBAC). For more details, visit [Configure Azure RBAC for FHIR](configure-azure-rbac.md).
>[!NOTE]
>Use a `grant_type` of `client_credentials` when trying to obtain an access token for Azure API for FHIR using tools for intuitive querying.
## Application secret
The service client needs a secret (password) to obtain a token.
1. Select **Certificates & secrets**.
2. Select **New client secret**.

3. Provide a description and duration of the secret (either one year, two years or never).
4. Once the secret is generated, it will only be displayed once in the portal. Make a note of it and store it in a secure location.
## Next steps
In this article, you learned how to register a service client application in Microsoft Entra ID. Next, test access to your FHIR server using REST Client.
>[!div class="nextstepaction"]
>[Access the FHIR service using REST Client](./../fhir/using-rest-client.md)
[!INCLUDE[FHIR trademark statement](../includes/healthcare-apis-fhir-trademark.md)]