azure-mgmt-loganalytics
Microsoft Azure Loganalytics Management Client Library for Python
What it is and what it does
This is the official Microsoft Azure SDK client library for programmatically managing Log Analytics resources in Azure. It provides a LogAnalyticsManagementClient that wraps Azure's management API, allowing you to create and configure workspaces, manage data sources, handle data exports, set up linked services, and perform other administrative tasks on Log Analytics infrastructure.
The package depends on isodate for date handling, azure-mgmt-core for shared Azure SDK infrastructure, and typing-extensions for type hints. It requires Python 3.10 or later and uses Microsoft Entra for authentication via environment variables. Version 14.0.0 introduced significant structural changes to models, moving many properties under a properties field, which may require code updates if upgrading from earlier versions.
Use it for:
- Automate creation and configuration of Azure Log Analytics workspaces as part of infrastructure-as-code deployments
- Programmatically manage data sources and ingestion settings for Log Analytics workspaces
- Set up data exports to external destinations for compliance or archival purposes
- Configure linked services and storage accounts for Log Analytics resources in multi-workspace environments
- Manage saved searches and query packs across multiple workspaces via automation
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client library for managing Azure Log Analytics resources, including workspaces, data sources, saved searches, and related infrastructure through Azure's management API.
Yes, if you need to manage Azure Log Analytics resources programmatically. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and is part of the official Azure SDK. However, be aware that version 14.0.0 contains breaking changes requiring code migration if upgrading from earlier versions.
Install
azure-mgmt-loganalytics on PyPI
pip
pip install azure-mgmt-loganalyticsuv
uv add azure-mgmt-loganalyticspoetry
poetry add azure-mgmt-loganalyticsInstalling azure-mgmt-loganalytics
Before you install
Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent release (51 days old) and active repository status. Requires Python 3.10 or later.
License in practice
Licensed under MIT (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install azure-mgmt-loganalytics
from azure.mgmt.loganalytics import LogAnalyticsManagementClient
from azure.mgmt.core import get_client_from_auth_file
client = LogAnalyticsManagementClient(
subscription_id="your-subscription-id",
credential=credential
)
Requires Python 3.10 or later and Azure subscription credentials configured via environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID).
Verify before relying
- Whether azure-identity is a required runtime dependency or only needed for authentication examples
- Specific breaking changes in version 14.0.0 and migration effort required for existing code
- Full scope of operations available through LogAnalyticsManagementClient beyond those listed in release notes
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — isodate, azure-mgmt-core, typing-extensions |
| Maintenance | actively maintained — 51 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,704,407/month — #1,706 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_loganalytics-14.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-mgmt-datafactoryManages Azure Data Factory resources—factories,…
permissive · top 5,000 on PyPI
azure-mgmt-managementgroupsProvides a Python client library to manage…
permissive · top 5,000 on PyPI
azure-loganalyticsProvides a Python client for querying Azure Log…
permissive · top 5,000 on PyPI
azure-mgmt-streamanalyticsProvides Python client library for managing…
permissive · top 15,000 on PyPI
azure-mgmt-webProvides programmatic management of Azure Web…
permissive · top 5,000 on PyPI
azure-mgmt-costmanagementProvides Python bindings to the Azure Cost…
permissive · top 5,000 on PyPI
azure-mgmt-batchProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-storageManages Azure Storage accounts, containers,…
permissive · top 5,000 on PyPI
gooddata-sdkProvides a Python API to interact with GoodData…
permissive · top 15,000 on PyPI