Setting the file. One moment.
Subchapter 4.7
references/sdk/azure-mgmt-apimanagement-py.mdMarkdown1 KBView on GitHub
Condensed from azure-mgmt-apimanagement-py. Full patterns (APIs, products, subscriptions, policies, backends, named values) in the azure-mgmt-apimanagement-py plugin skill if installed.
pip install azure-mgmt-apimanagement azure-identity
Auth:
DefaultAzureCredentialis for local development. See auth-best-practices.md for production patterns.
import os
from azure.mgmt.apimanagement import ApiManagementClient
from azure.identity import DefaultAzureCredential
client = ApiManagementClient(DefaultAzureCredential(), os.environ["AZURE_SUBSCRIPTION_ID"])