# Azure SSO

> Learn more here about [Azure SSO](https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-single-sign-on-non-gallery-applications)

{% stepper %}
{% step %}
**Add Lenses from Azure SSO gallery**

Go to **Enterprise applications->New Application.**

Search for Lenses.io in the gallery directory.

Choose a name for Lenses e.g. Lenses.io and click **Add.**
{% endstep %}

{% step %}
**Enable SSO**

On the overview page select **Single Sign On**.
{% endstep %}

{% step %}
**Configure SAML**

{% hint style="warning" %}
Remember to activate HTTPS on HQ. See [TLS](https://docs.lenses.io/latest/deployment/hq#tlsconfig).
{% endhint %}

<table><thead><tr><th width="223">Setting</th><th>Value</th></tr></thead><tbody><tr><td>Identifier (Entity ID)</td><td>Use the <strong>base url</strong> of the Lenses installation e.g. <strong>https://lenses-dev.example.com</strong></td></tr><tr><td>Reply URL</td><td>Use the <strong>base url</strong> with the callback details e.g. <strong>https://lenses-dev.example.com/api/v2/auth/saml/callback?client_name=SAML2Client</strong></td></tr><tr><td>Sign on URL</td><td>Use the <strong>base url</strong></td></tr></tbody></table>
{% endstep %}

{% step %}
**Download SAML Certificates**

Download the **Federation Metadata XML**.
{% endstep %}

{% step %}
**Configure SAML in HQ**

SAML configuration is set in HQ's **config.yaml** file. See [here ](https://docs.lenses.io/latest/deployment/hq#samlconfig)for more details.
{% endstep %}
{% endstepper %}


---

# 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.lenses.io/latest/deployment/configuration/authentication/sso-and-saml/azure-sso.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.
