{"id":3414,"library":"azure-mgmt-logic","title":"Azure Logic Apps Management Client Library","description":"This is the Microsoft Azure Logic Apps Management Client Library for Python. It provides programmatic access to manage Azure Logic Apps, enabling users to create, update, and delete automated workflows that integrate various applications, data, services, and on-premises systems. The library is currently at version 10.0.0 and is part of the broader Azure SDK for Python, which follows a continuous release cadence.","status":"active","version":"10.0.0","language":"en","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python","tags":["azure","management","logic-apps","cloud","workflow","automation"],"install":[{"cmd":"pip install azure-mgmt-logic","lang":"bash","label":"Install stable version"}],"dependencies":[{"reason":"Core Azure SDK functionalities like shared HTTP pipeline, error handling, and common types.","package":"azure-core"},{"reason":"Unified authentication library for Azure SDKs.","package":"azure-identity"}],"imports":[{"symbol":"LogicManagementClient","correct":"from azure.mgmt.logic import LogicManagementClient"},{"symbol":"DefaultAzureCredential","correct":"from azure.identity import DefaultAzureCredential"},{"note":"Replaced by `azure-identity` classes (e.g., `DefaultAzureCredential`) since version 9.0.0b1/10.0.0.","wrong":"from azure.common.credentials import ServicePrincipalCredentials","symbol":"ServicePrincipalCredentials"}],"quickstart":{"code":"import os\nfrom azure.identity import DefaultAzureCredential\nfrom azure.mgmt.logic import LogicManagementClient\n\n# It's recommended to set these environment variables:\n# AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID\n# for DefaultAzureCredential to automatically pick them up.\n\nsubscription_id = os.environ.get(\"AZURE_SUBSCRIPTION_ID\", \"<your-subscription-id>\")\n\ntry:\n    # Authenticate using DefaultAzureCredential\n    # This will attempt various authentication methods, including environment variables.\n    credential = DefaultAzureCredential()\n\n    # Create a LogicManagementClient\n    logic_client = LogicManagementClient(credential, subscription_id)\n\n    print(f\"Listing Integration Accounts in subscription: {subscription_id}\")\n\n    # List all Integration Accounts within the subscription\n    # Integration Accounts are often used with Logic Apps for B2B scenarios.\n    integration_accounts = logic_client.integration_accounts.list_by_subscription()\n\n    found_accounts = False\n    for account in integration_accounts:\n        print(f\"- Name: {account.name}, Location: {account.location}, Resource Group: {account.id.split('/')[4]}\")\n        found_accounts = True\n\n    if not found_accounts:\n        print(\"No Integration Accounts found in this subscription. (This is normal for new subscriptions)\")\n\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")\n    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.\")\n","lang":"python","description":"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`."},"warnings":[{"fix":"Migrate to `azure-identity` classes (e.g., `DefaultAzureCredential`) for authentication. Pass client configuration as keyword arguments (kwargs) during client instantiation.","message":"Version 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.","severity":"breaking","affected_versions":"9.0.0b1, 10.0.0 and later"},{"fix":"Update code to expect `azure.core.polling.LROPoller` instances. The external API generally remains the same for polling, but internal types have changed.","message":"The return type for Long-Running Operations (LROs) changed. Operations that used to return a `msrest.polling.LROPoller` now return an `azure.core.polling.LROPoller`.","severity":"breaking","affected_versions":"9.0.0b1, 10.0.0 and later"},{"fix":"Update exception handling to catch `azure.core.exceptions.HttpResponseError` instead of older, more specific exceptions.","message":"The exception hierarchy has been simplified. Most service-related exceptions are now `azure.core.exceptions.HttpResponseError`, replacing older `CloudError` types.","severity":"breaking","affected_versions":"9.0.0b1, 10.0.0 and later"},{"fix":"Ensure your development environment uses Python 3.6 or higher, ideally Python 3.9+ for the best compatibility and latest features.","message":"Python 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+.","severity":"gotcha","affected_versions":"<=3.0.0 (Python 2.7 supported), >=3.6 (Python 3.6+ required), latest (Python 3.9+ recommended)"},{"fix":"If implementing asynchronous operations, ensure you import from `azure.mgmt.logic.aio` and use Python's `async` and `await` keywords correctly.","message":"Asynchronous (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.","severity":"gotcha","affected_versions":"All versions supporting async (since 9.0.0b1)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}