# Microsoft Dataverse

## 1 - Authenticating using oAuth

AuthScheme: Set this to **AzureAD**.

See [oAuth Authentication](/apprules-r-documentation/appendix/miscellaneous/oauth-authentication-azure-definition.md)

## 2 - Authenticating using MSI Authentication

If you are running Dataverse on an Azure VM, you can leverage Managed Service Identity (MSI) credentials to connect:

* AuthScheme: Set this to **AzureMSI**.

The MSI credentials will then be automatically obtained for authentication.

## 3 - Schema

Dataverse supports schema values of 'System' and 'Entities' and can be set using the Schema property.

Using 'System' for Schema property uses the Web API to query entities/tables.

Using 'Entities' for Schema property uses the **EntityDefinitions** entity set path and retrieves information about EntityMetadata EntityType entities/tables. This will often result in more user friendly names, though requires extra metadata requests.

<br>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/system-settings/data-sources/connection-settings/services/microsoftdataverse.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
