11/12 free views
Library/SDK
Library
Cloud Security

azure-sdk-for-python

by Azure

5.0Kstars
3.0Kforks
521watchers
Updated 10 months ago
About

The Azure SDK for Python provides a comprehensive set of libraries to interact with and manage Azure cloud services programmatically using Python.

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.

Primary Use Case

This SDK is primarily used by developers and cloud engineers to build, configure, and manage Azure resources programmatically within Python applications. It supports tasks such as authentication, secrets management, and cloud configuration scanning, enabling seamless integration with Azure services for automation and cloud security.

Key Features
  • Modular libraries for individual Azure services located in the /sdk directory
  • Support for both new GA and preview client libraries
  • Management libraries following Azure SDK Design Guidelines
  • Shared core functionalities like retries, logging, transport, and authentication in azure-core
  • Supports Python 3.9 and later
  • Comprehensive authentication systems including Azure Identity library
  • Error handling and distributed tracing capabilities
  • Versioned and public developer documentation available

Installation

  • Ensure Python 3.9 or later is installed
  • Identify the specific Azure service library you want to use in the /sdk directory
  • Install the desired package via pip, e.g., pip install azure-<service-name>
  • Refer to the specific library's README for detailed usage instructions

Usage

>_ pip install azure-<service-name>

Installs the specific Azure service client library for Python

>_ from azure.identity import DefaultAzureCredential

Imports the Azure Identity library to handle authentication

>_ from azure.storage.blob import BlobServiceClient

Imports the Blob Storage client to interact with Azure Blob Storage

Security Frameworks
TA0007
Discovery
TA0006
Credential Access
TA0008
Lateral Movement
TA0002
Execution
TA0009
Collection
Usage Insights
  • Integrate the SDK with automated cloud security posture management tools to continuously scan and remediate misconfigurations.
  • Leverage the Azure Identity library within the SDK to enforce strong authentication and secrets management in custom cloud applications.
  • Use the SDK to build custom detection scripts that monitor Azure resources for anomalous changes or suspicious configurations.
  • Combine SDK capabilities with Azure Sentinel for enhanced cloud threat detection and response automation.
  • Develop purple team exercises that simulate credential theft and lateral movement using SDK-driven automation to validate cloud security controls.

Docs Take 2 Hours. AI Takes 10 Seconds.

Ask anything about azure-sdk-for-python. Installation? Config? Troubleshooting? Get answers trained on real docs and GitHub issues—not generic ChatGPT fluff.

3 free chats per tool • Instant responses • No credit card

Security Profile
Red Team40%
Blue Team80%
Purple Team70%
Details
LicenseMIT License
LanguagePython
Open Issues11058
Topics
python
azure
azure-sdk
hacktoberfest