azure-mgmt-relay
Microsoft Azure Relay Management Client Library for Python
What it is and what it does
azure-mgmt-relay is the Microsoft Azure SDK client library for managing Azure Relay resources. It provides programmatic access to create, update, and delete relay namespaces, hybrid connections, and WCF relays, as well as configure network rules and private endpoint connections through the Azure Resource Manager API.
The package is designed for developers building infrastructure-as-code or automation workflows that need to manage relay services in Azure. It authenticates via Microsoft Entra using credentials and exposes operation groups for namespaces, hybrid connections, WCF relays, private endpoints, and network rule sets. Version 2.0.0 introduces hybrid models with dual dictionary/object behavior and adds support for private link resources and network rule management.
Use it for:
- Automate provisioning and configuration of Azure Relay namespaces and hybrid connections in infrastructure-as-code pipelines.
- Manage authorization rules and network access policies for relay resources programmatically.
- Create or update private endpoint connections and network rule sets for relay namespaces.
- Query relay resource properties and operational status as part of monitoring or auditing workflows.
- Integrate relay management into multi-tenant or multi-subscription Azure automation frameworks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure Relay namespaces, hybrid connections, and WCF relays through the Azure Resource Manager API, providing programmatic control over relay infrastructure and network rules.
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and is the official Microsoft SDK for Azure Relay management. Install it if you need to manage relay infrastructure programmatically in Python. Be aware that version 2.0.0 introduces breaking changes (hybrid models, client rename); review migration guidance if upgrading from earlier versions.
Install
azure-mgmt-relay on PyPI
pip
pip install azure-mgmt-relayuv
uv add azure-mgmt-relaypoetry
poetry add azure-mgmt-relayInstalling azure-mgmt-relay
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a recent release (16 days old) and no known vulnerabilities. Requires Python 3.10 or later and depends on three lightweight runtime packages (isodate, azure-mgmt-core, typing-extensions).
License in practice
MIT license permits commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install azure-mgmt-relay
from azure.mgmt.relay import RelayAPIMgmtClient
from azure.identity import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = RelayAPIMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Requires Python 3.10+. Authentication depends on environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID.
Verify before relying
- Whether version 2.0.0's breaking changes (hybrid model migration, client rename to RelayAPIMgmtClient) affect existing codebases using earlier versions.
- Scope and maturity of the new private endpoint and network rule features added in 2.0.0.
- Whether azure-identity is required as a runtime dependency or only as an optional authentication helper.
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 — 16 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,742,578/month — #3,600 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_relay-2.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
azure-mgmt-servicebusManages Azure Service Bus resources…
permissive · top 5,000 on PyPI
azure-mgmt-eventhubManages Azure Event Hub resources—namespaces,…
permissive · top 5,000 on PyPI
azure-mgmt-hybridcomputeManages hybrid compute resources in Microsoft…
permissive · top 15,000 on PyPI
azure-mgmt-webProvides programmatic management of Azure Web…
permissive · top 5,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-mgmt-managementgroupsProvides a Python client library to manage…
permissive · top 5,000 on PyPI
azure-mgmt-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
azure-mgmt-networkManages Azure network resources (virtual…
permissive · top 5,000 on PyPI
azure-mgmt-automationProvides Python client library for managing…
permissive · top 15,000 on PyPI
azure-mgmt-cdnManages Azure CDN resources (profiles,…
permissive · top 5,000 on PyPI