Registry / azure / azure-mgmt-marketplaceordering

azure-mgmt-marketplaceordering

JSON →
library1.1.1pypypi✓ verified 24d ago

This is the Microsoft Azure Market Place Ordering Client Library for Python, enabling management of marketplace agreements within Azure. It's part of the Azure SDK for Python and uses Azure Resource Manager (ARM) APIs. The current stable version is 1.1.0, released in March 2021. The package generally follows a stable release cadence, with updates primarily for API version bumps or minor features, reflecting the management plane operations it supports.

pip install azure-mgmt-marketplaceordering azure-identity
INSTALL
IMPORT
SIG · AZURE-MGMT-MARKETP
A
azure-mgmt-marketplaceordering
azurepythonv1.1.1
Install
3.9s avg
Import
540ms
Disk
42MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.1 · 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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.564s · 43.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.516s · 44MB
42MB installed
● package 42MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MarketplaceOrderingAgreements
from azure.mgmt.marketplaceordering import MarketplaceOrderingAgreements
from azure.mgmt.marketplaceordering import MarketplaceOrderingAgreementsManagementClient
The primary client class for this library is `MarketplaceOrderingAgreements`, not `MarketplaceOrderingAgreementsManagementClient` as might be expected by the general Azure SDK naming convention.

Demonstrates how to authenticate using `DefaultAzureCredential` and list marketplace agreements. Ensure `AZURE_SUBSCRIPTION_ID`, `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_CLIENT_SECRET` environment variables are set for authentication.

import os from azure.identity import DefaultAzureCredential from azure.mgmt.marketplaceordering import MarketplaceOrderingAgreements # Set environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID sub_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "") if not sub_id: raise ValueError("AZURE_SUBSCRIPTION_ID environment variable not set.") # Authenticate using DefaultAzureCredential credential = DefaultAzureCredential() # Create the client client = MarketplaceOrderingAgreements(credential=credential, subscription_id=sub_id) # Example: List marketplace agreements (this operation may require specific permissions) # Replace 'publisherId' and 'offerId' with actual values if needed for listing or getting a specific agreement # For simplicity, this example just attempts to list, which might be empty or require specific resources. # Real-world usage often involves 'get' and 'create_or_update' based on a specific offer. print("Attempting to list marketplace agreements...") agreements = client.marketplace_agreements.list() for agreement in agreements: print(f"Agreement: {agreement.name} (Publisher: {agreement.publisher_id}, Offer: {agreement.offer_id})") print("Quickstart complete.")
Debug
Known issues
breakingThe credential system was completely revamped in version 1.0.0b1. Older `azure.common.credentials` or `msrestazure.azure_active_directory` instances are no longer supported.
fix
Migrate to `azure-identity` classes, specifically `DefaultAzureCredential` for common scenarios. The `credentials` parameter was also renamed to `credential`.
affects: <1.0.0b1
breakingStarting from version 0.2.0, all model signatures and client methods primarily use keyword-only arguments. Positional arguments for models are no longer supported.
fix
Update code to explicitly use keyword arguments when instantiating models or calling client methods (e.g., `AgreementTerms(publisher_id='...', product_id='...')` instead of `AgreementTerms('...', '...')`).
affects: <0.2.0
gotchaThe `config` attribute is no longer available on client objects since version 1.0.0b1. Client configuration must be passed as keyword arguments during instantiation.
fix
Pass configuration options (e.g., `enable_logging=True`) directly to the client constructor: `MarketplaceOrderingAgreements(credential, subscription_id, enable_logging=True)`.
affects: >=1.0.0b1
deprecatedSupport for Python 2.7 has officially ended for Azure SDK Python packages as of January 1, 2022. This library is tested with Python 3.8+.
fix
Upgrade to Python 3.8 or newer to ensure continued support and compatibility.
affects: All versions when used with Python 2.7
breakingThe library failed to import the 'six' package, which is a required dependency. This typically indicates that 'six' was not installed correctly along with the library's other dependencies.
fix
Ensure that the 'six' package is installed in your environment. You can explicitly install it using `pip install six` or try reinstalling the main library (`pip install --force-reinstall azure-mgmt-marketplaceordering`) to ensure all dependencies are resolved.
affects: All versions
breakingThe library directly imports `six` for compatibility features, but the `six` package was not found, resulting in a `ModuleNotFoundError` during import.
fix
Ensure the `six` package is installed in your environment, e.g., by running `pip install six`. For modern Azure SDK libraries, direct dependency on `six` is typically removed in newer versions; consider upgrading the library if a Python 3-only compatible version is available.
affects: All versions when 'six' is not installed in the environment.
Upgrade
Version history
1.1.1latest on PyPI · released May 18, 2026
Audit
Dependencies
azure-identityrequiredRequired for modern Azure Active Directory token authentication.
Agent activity
41 hits · last 30 days
node
32
OpenAI (training)
1
Resources