azure-mgmt-relay
Microsoft Azure Relay Management Client Library for Python
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10+.
- Authentication depends on environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
last release 2026-07-29 (16 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,742,578 downloads/mo, #3,600 on PyPI
Alternatives
Verify before relying
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)- 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.
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 on it.
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
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).
Requires Python 3.10+. Authentication depends on environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID.
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)
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 packagesisodateazure-mgmt-coretyping-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 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: azure_mgmt_relay-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure relay management”
- azure-mgmt-relayManages Azure Relay namespaces, hybrid connections, and WCF relays…
- txtorcontxtorcon is a client library for controlling and monitoring Tor…
- c7n-mailerA message relay service that subscribes to SQS queues and delivers…
Give your agent the search over MCP, or paste the wish link into any chat.
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
See also azure-mgmt-servicebus · azure-mgmt-eventhub · azure-mgmt-hybridcompute · azure-mgmt-web · azure-mgmt-resource · azure-mgmt-managementgroups · azure-mgmt-resource-deployments · azure-mgmt-network · azure-mgmt-automation · azure-mgmt-cdn