Azure Resources
Engine for Azure resources. This engine mimics the standard search bar in Azure Portal (for resources and resource groups).
Configuration
You must register an application in Microsoft Entra ID and assign it the ‘Reader’ role in your subscription.
To use this engine, add an entry similar to the following to your engine list in
settings.yml:
- name: azure
engine: azure
...
azure_tenant_id: "your_tenant_id"
azure_client_id: "your_client_id"
azure_client_secret: "your_client_secret"
azure_token_expiration_seconds: 5000
searx.engines.azure.azure_token_expiration_seconds = 5000 : Time for which an auth token is valid (sec.)
searx.engines.azure.CACHE: EngineCache
: Persistent (SQLite) key/value cache that deletes its values after expire
seconds.
searx.engines.azure.setup(engine_settings: dict[str, Any]) → bool[source] : Initialization of the engine.
- Instantiate a cache for this engine ([`CACHE`](#searx.engines.azure.CACHE)).
- Checks whether the tenant\_id, client\_id and client\_secret are set,
otherwise the engine is inactive.
searx.engines.azure.authenticate(t_id: str, c_id: str, c_secret: str) → str[source] : Authenticates to Azure using Oauth2 Client Credentials Flow and returns an access token.
Copyright © SearXNG team
Made with Furo
