> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/fr/automatisation/runbooks/runbook-references/device/general/sync-device.md).

# Synchroniser l’appareil

Déclencher une synchronisation Intune sur cet appareil

### Description

Demande à cet appareil d’effectuer un check-in avec Intune, afin que les stratégies, applications et configurations en attente soient appliquées sans attendre le prochain check-in régulier. Le nom de l’appareil, le système d’exploitation, l’utilisateur principal et le dernier check-in sont affichés en premier. Si cet appareil est hors ligne, il se synchronise lorsqu’il revient en ligne. L’appareil doit être inscrit dans Intune.

### Fonctionnement

Le runbook recherche cet appareil dans Intune à l’aide de son ID d’appareil Entra ID, affiche son état actuel et envoie la même demande de synchronisation que **Synchroniser** dans le centre d’administration Intune. Intune réveille l’appareil via le service push de sa plateforme ; l’appareil effectue ensuite son check-in, applique les stratégies, applications et configurations en attente et renvoie son état. Un appareil hors ligne reçoit la demande lorsqu’il revient en ligne. L’heure du dernier check-in dans Intune ne change qu’après l’achèvement du check-in.

Si une inscription antérieure a laissé plusieurs enregistrements Intune avec le même ID d’appareil Entra ID, la demande de synchronisation est envoyée à l’enregistrement qui a effectué le dernier check-in et l’exécution affiche un avertissement. Supprimez les enregistrements obsolètes dans le centre d’administration Intune.

### Synchroniser sans l’autorisation de l’application RealmJoin

Le **Synchroniser** bouton dans le [détails de l’appareil](https://docs.realmjoin.com/ugd-management/user-list/device-details) du Portail RealmJoin demande à Intune via l’application RealmJoin, qui nécessite alors l’autorisation Intune pour les actions à distance sur les appareils. Ce runbook envoie plutôt la demande avec l’identité managée du compte Automation. Utilisez-le lorsque l’application RealmJoin ne dispose pas de cette autorisation mais que le personnel du support technique doit tout de même pouvoir synchroniser un appareil. Les personnes autorisées à démarrer le runbook sont définies par les autorisations du runbook dans RealmJoin.

### Emplacement

Appareil → Général → Synchroniser l’appareil

**Nom complet du runbook**

rjgit-device\_general\_sync-device

### Détails

| Propriété      | Valeur                                                                                   |
| -------------- | ---------------------------------------------------------------------------------------- |
| Version        | 1.0.0                                                                                    |
| Modules requis | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>Microsoft.Graph.Authentication (>= 2.41.2)</p> |
| Planifiable    | non                                                                                      |

### Autorisations

#### Autorisations d'application

* **Type**: Microsoft Graph
  * DeviceManagementManagedDevices.PrivilegedOperations.All
    * *Envoie la demande de synchronisation à l’appareil via POST /deviceManagement/managedDevices/{id}/syncDevice*
  * DeviceManagementManagedDevices.Read.All
    * *Recherche l’enregistrement Intune de cet appareil par azureADDeviceId et lit son nom, son système d’exploitation, son utilisateur principal, son état de conformité et son dernier check-in*

### Paramètres

#### DeviceId

ID d’appareil Entra ID de l’appareil sur lequel le runbook agit. Défini par le portail à partir de l’appareil sélectionné.

| Propriété              | Valeur                                             |
| ---------------------- | -------------------------------------------------- |
| Obligatoire            | vrai                                               |
| Valeur par défaut      |                                                    |
| Type                   | Chaîne                                             |
| Masqué dans le portail | oui (prédéfini via la personnalisation du runbook) |

[Retour à l'aperçu de la référence du runbook](https://docs.realmjoin.com/fr/automatisation/runbooks/runbook-references.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/fr/automatisation/runbooks/runbook-references/device/general/sync-device.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
