skillfed

azure-mgmt-security

Microsoft Azure Security Center Management Client Library for Python

azure-mgmt-security v7.0.0 5.6M downloads/30d#2,073 on PyPI5,588
Permissive license MIT License Active released

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-security

uv

uv add azure-mgmt-security

poetry

poetry add azure-mgmt-security

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

azure security center managementazure defender configurationcloud security posture managementazure security api clientsecurity compliance automationazure threat assessmentsecurity policy automation
cloud-securityazure-sdk

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

azure-mgmt-resource-deployments

Manages Azure resource deployments…

permissive · top 5,000 on PyPI

azure-mgmt-monitor

Provides programmatic access to Azure Monitor…

permissive · top 5,000 on PyPI

azure-mgmt-iotcentral

Manages Azure IoT Central applications and…

unclear · top 5,000 on PyPI

azure-mgmt-resource-subscriptions

Manages Azure subscriptions and related…

permissive · top 15,000 on PyPI

azure-mgmt-msi

Manages Azure Managed Service Identities…

permissive · top 5,000 on PyPI

azure-mgmt-managementpartner

Provides a Python client library for managing…

unclear · top 5,000 on PyPI

azure-mgmt-domainregistration

Manages Azure domain registrations…

permissive · top 5,000 on PyPI

azure-mgmt-resource-deploymentscripts

Provides a Python client library for managing…

permissive · top 5,000 on PyPI

azure-mgmt-resource

Provides Python bindings to manage Azure…

permissive · top 1,000 on PyPI

azure-mgmt-web

Provides programmatic management of Azure Web…

permissive · top 5,000 on PyPI