Registry / azure / azure-mgmt-frontdoor

azure-mgmt-frontdoor

JSON →
library1.2.0pypypi✓ verified 84d ago

Microsoft Azure Front Door Service Client Library for Python, version 1.2.0, enables management of Azure Front Door resources including front doors, backends, health probes, and routing rules. Released under MIT license, part of the Azure SDK for Python. Release cadence: irregular, typically minor updates every few months.

pip install azure-mgmt-frontdoor
INSTALL
IMPORT
SIG · AZURE-MGMT-FRONTDO
A
azure-mgmt-frontdoor
azurepythonv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

FrontDoorManagementClient
from azure.mgmt.frontdoor import FrontDoorManagementClient
from azure.mgmt.frontdoor import FrontDoorManagementClient
Correct path is 'azure.mgmt.frontdoor' (no underscore).

Authenticate and list all Front Door instances in the subscription.

from azure.identity import DefaultAzureCredential from azure.mgmt.frontdoor import FrontDoorManagementClient subscription_id = os.environ.get('AZURE_SUBSCRIPTION_ID', '') credential = DefaultAzureCredential() client = FrontDoorManagementClient(credential, subscription_id) # List all front doors for fd in client.front_doors.list(): print(fd.name)
Debug
Known issues
gotchaThe 'FrontDoorManagementClient' constructor expects the subscription ID as the second positional argument. Many users mistakenly pass it as a keyword argument or omit it.
fix
Always pass subscription_id as a string after credential: FrontDoorManagementClient(credential, subscription_id)
affects: all versions
gotchaWhen creating or updating a Front Door, you must specify a unique 'friendly_name' and valid 'backend_pools'. Omitting required properties results in a 400 error.
fix
Ensure the model object includes all required fields per the API specification.
affects: all versions
gotchaThe library uses 'api-version' 2021-06-01 by default. Some newer features (e.g., Private Link support) may require a more recent API version. Using the default version for those operations will cause 'UnsupportedApiVersion' errors.
fix
Specify the api_version parameter when calling methods or constructors if you need newer features.
affects: 1.0.0 - 1.2.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'azure.mgmt.frontdoor'
The package is not installed or the import path is incorrect.
fix
Run 'pip install azure-mgmt-frontdoor' and import as 'from azure.mgmt.frontdoor import FrontDoorManagementClient'.
msrest.exceptions.SerializationError: Unable to serialize object
Passing model objects with missing required properties or wrong types.
fix
Verify that all model fields are correctly populated, especially required ones like 'location' and 'properties'.
azure.core.exceptions.HttpResponseError: (InvalidResourceLocation) The provided location '...' is not allowed for resource type 'Microsoft.Network/frontDoors'
Specifying a location that is not supported for Front Door resources (e.g., a region that does not have Front Door availability).
fix
Use a valid Azure Front Door supported location like 'global' or 'westus'.
Upgrade
Version history
1.2.0latest on PyPI · released Apr 15, 2024
Audit
Dependencies
azure-identityrequiredRequired for authentication using DefaultAzureCredential or other credential classes.
azure-mgmt-resourceoptionalOften needed for resource management operations alongside Front Door.
Agent activity
49 hits · last 30 days
node
42
OpenAI (training)
1
Resources
azure-mgmt-frontdoor — pip install azure-mgmt-frontdoor · libregistry