azure-mgmt-security
Microsoft Azure Security Center Management Client Library for Python
What it is and what it does
This is the Microsoft Azure Security Center Management Client Library, a Python SDK for programmatic control of Azure Security Center and related threat detection services. It provides operation groups for managing security policies, pricing tiers, health reports, and defender offerings. The library handles authentication via Azure Active Directory using environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID) and exposes a SecurityCenter client as the main entry point.
Version 7.0.0 adds support for DevOps integrations, sensitivity settings, and server vulnerability assessment configurations. It requires Python 3.8 or later and has no runtime dependencies, making it lightweight to integrate into existing Azure management workflows. The package is actively maintained and supports current Python versions.
Use it for:
- Automate security policy enforcement and pricing tier management across Azure subscriptions
- Integrate Azure Security Center data into custom dashboards or monitoring platforms
- Query health reports and vulnerability assessments to trigger remediation workflows
- Manage defender offerings and assess security posture programmatically
- Provision and configure security scanning for DevOps repositories
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure Security Center resources programmatically, providing operations for security policies, pricing, assessments, and threat detection across cloud environments.
Yes. This is a production-stable, actively maintained official Microsoft SDK with no runtime dependencies and low install friction. Use it when you need to automate Azure Security Center operations or integrate security data into broader cloud management systems. The permissive MIT License and broad Python version support (3.8–3.12) make it suitable for most projects.
Install
azure-mgmt-security on PyPI
pip
pip install azure-mgmt-securityuv
uv add azure-mgmt-securitypoetry
poetry add azure-mgmt-securityInstalling azure-mgmt-security
Before you install
Low friction installation with no runtime dependencies. Actively maintained with recent releases; last commit 2026-08-14 and version 7.0.0 released 2024-05-20. Supports Python 3.8, 3.9, 3.10, 3.11, 3.12.
License in practice
MIT License (permissive) allows free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.
Quickstart
pip install azure-mgmt-security
from azure.mgmt.security import SecurityCenter
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = SecurityCenter(credential=credential, subscription_id=sub_id)
# Example: list pricings
pricings = client.pricings.list(scope_id=f"/subscriptions/{sub_id}")
Requires Azure subscription and environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID. Python 3.8+ required.
Verify before relying
- Whether authentication via Azure Active Directory environment variables is required or optional for all operations
- Scope and completeness of operations relative to Azure Security Center's full feature set
- Performance characteristics and rate limits when managing large numbers of security resources
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 816 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,560,336/month — #2,073 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_security-7.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-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
azure-mgmt-monitorProvides programmatic access to Azure Monitor…
permissive · top 5,000 on PyPI
azure-mgmt-iotcentralManages Azure IoT Central applications and…
unclear · top 5,000 on PyPI
azure-mgmt-resource-subscriptionsManages Azure subscriptions and related…
permissive · top 15,000 on PyPI
azure-mgmt-msiManages Azure Managed Service Identities…
permissive · top 5,000 on PyPI
azure-mgmt-managementpartnerProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-domainregistrationManages Azure domain registrations…
permissive · top 5,000 on PyPI
azure-mgmt-resource-deploymentscriptsProvides a Python client library for managing…
permissive · top 5,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-mgmt-webProvides programmatic management of Azure Web…
permissive · top 5,000 on PyPI