# Microsoft Azure Registration

### Application Registration

* Open [Azure Portal](https://portal.azure.com) website
* Select "App Services"
* Select "App registrations"
* Select "+ New registration"
* Enter any name, e.g. "SOFA Application"
* Add the API permissions required by your application&#x20;

### Create Client Secret

* Select "Add a certificate or secret"
* Select "+ New client secret"
* Enter any desription e.g. "SOFA Client", set the expiration and press "ADD"

### SOFA Parameters

Set the calling arguments in the SOFA class as follows:

<table><thead><tr><th width="214">Microsoft AD</th><th>SOFA Argument Example (MS 365 Outlook)</th></tr></thead><tbody><tr><td>Authorization Server<br></td><td>https://login.microsoftonline.com/11111111-2222-3333-4444-55555555555/oauth2/v2.0/token</td></tr><tr><td>Authorization Scope</td><td>https://outlook.office365.com/.default</td></tr><tr><td>Client ID/Secret</td><td>66666666-7777-888-9999-11111111111</td></tr><tr><td>Client Secret/Value</td><td>puG8Qak340dhfnskfrieuhnfe3dr.456saa.O</td></tr></tbody></table>


---

# 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://sofa.k43.ch/hints-and-tips/microsoft-azure-registration.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.
