Install & Compatibility
Where this runs
tested against v10.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 28.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.9s · import 0.000s · 29MB
27MB installed
● package 27MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
LogicManagementClient
✓ from azure.mgmt.logic import LogicManagementClient
✗ from azure.mgmt.logic import LogicManagementClient
This quickstart demonstrates how to instantiate the `LogicManagementClient` and list Integration Accounts within your Azure subscription using `DefaultAzureCredential` for authentication. Make sure your Azure credentials are set up as environment variables or other methods supported by `azure-identity`.
import os
from azure.identity import DefaultAzureCredential
from azure.mgmt.logic import LogicManagementClient
# It's recommended to set these environment variables:
# AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID
# for DefaultAzureCredential to automatically pick them up.
subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "<your-subscription-id>")
try:
# Authenticate using DefaultAzureCredential
# This will attempt various authentication methods, including environment variables.
credential = DefaultAzureCredential()
# Create a LogicManagementClient
logic_client = LogicManagementClient(credential, subscription_id)
print(f"Listing Integration Accounts in subscription: {subscription_id}")
# List all Integration Accounts within the subscription
# Integration Accounts are often used with Logic Apps for B2B scenarios.
integration_accounts = logic_client.integration_accounts.list_by_subscription()
found_accounts = False
for account in integration_accounts:
print(f"- Name: {account.name}, Location: {account.location}, Resource Group: {account.id.split('/')[4]}")
found_accounts = True
if not found_accounts:
print("No Integration Accounts found in this subscription. (This is normal for new subscriptions)")
except Exception as e:
print(f"An error occurred: {e}")
print("Please ensure your Azure environment variables (e.g., AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID) are set correctly and you have the necessary permissions.")
Debug
Known issues
breakingVersion 10.0.0 (and its beta 9.0.0b1) introduced significant breaking changes in the credential system. Old `azure.common.credentials` or `msrestazure.azure_active_directory` instances are no longer supported. The `credentials` parameter was renamed to `credential`, and the `config` attribute was removed from clients.fixMigrate to `azure-identity` classes (e.g., `DefaultAzureCredential`) for authentication. Pass client configuration as keyword arguments (kwargs) during client instantiation.
affects: 9.0.0b1, 10.0.0 and later
breakingThe return type for Long-Running Operations (LROs) changed. Operations that used to return a `msrest.polling.LROPoller` now return an `azure.core.polling.LROPoller`.fixUpdate code to expect `azure.core.polling.LROPoller` instances. The external API generally remains the same for polling, but internal types have changed.
affects: 9.0.0b1, 10.0.0 and later
breakingThe exception hierarchy has been simplified. Most service-related exceptions are now `azure.core.exceptions.HttpResponseError`, replacing older `CloudError` types.fixUpdate exception handling to catch `azure.core.exceptions.HttpResponseError` instead of older, more specific exceptions.
affects: 9.0.0b1, 10.0.0 and later
gotchaPython 2.7 support has ended as of January 2022. The `azure-mgmt-logic` library versions 3.6+ are officially supported. The latest client libraries generally recommend Python 3.9+.fixEnsure your development environment uses Python 3.6 or higher, ideally Python 3.9+ for the best compatibility and latest features.
affects: <=3.0.0 (Python 2.7 supported), >=3.6 (Python 3.6+ required), latest (Python 3.9+ recommended)
gotchaAsynchronous (async) clients are available for this library and are located in the `aio` namespace (e.g., `azure.mgmt.logic.aio.LogicManagementClient`). These require `async`/`await` syntax.fixIf implementing asynchronous operations, ensure you import from `azure.mgmt.logic.aio` and use Python's `async` and `await` keywords correctly.
affects: All versions supporting async (since 9.0.0b1)
Upgrade
Version history
10.0.0latest on PyPI · released Jun 13, 2022
Audit
Dependencies
azure-corerequiredCore Azure SDK functionalities like shared HTTP pipeline, error handling, and common types.
azure-identityrequiredUnified authentication library for Azure SDKs.