Registry / azure / azure-mgmt-scheduler

azure-mgmt-scheduler

JSON →
library7.0.0pypypi✓ verified 22d ago

The `azure-mgmt-scheduler` library is the Microsoft Azure Scheduler Management Client Library for Python. It provides programmatic access to manage Azure Scheduler resources. While the library's current version is 7.0.0, the underlying Azure Scheduler service has been retired by Microsoft. This package received security fixes until January 31, 2022, and is no longer actively maintained for new features or non-security bug fixes.

pip install azure-mgmt-scheduler
INSTALL
IMPORT
SIG · AZURE-MGMT-SCHEDUL
A
azure-mgmt-scheduler
azurepythonv7.0.0
Install
2.9s avg
Import
921ms
Disk
25MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v7.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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.958s · 26.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.9s · import 0.884s · 27MB
25MB installed
● package 25MB
Code
Verified usage

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

SchedulerManagementClient
from azure.mgmt.scheduler import SchedulerManagementClient
This is the primary client for interacting with Azure Scheduler.

This quickstart demonstrates how to instantiate the `SchedulerManagementClient` using `azure.identity.DefaultAzureCredential`. It's crucial to note that the Azure Scheduler service has been retired, so most operations will fail. This example serves primarily to show the client initialization pattern.

from azure.identity import DefaultAzureCredential from azure.mgmt.scheduler import SchedulerManagementClient import os # Your Azure subscription ID (get it from environment variable or replace directly) subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "YOUR_SUBSCRIPTION_ID") # Authenticate with Azure (DefaultAzureCredential tries multiple authentication methods) # Ensure AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET (for service principal) # or AZURE_USERNAME, AZURE_PASSWORD (for developer login) are set as environment variables # or use other credential types from azure.identity. credential = DefaultAzureCredential() # Create the Scheduler management client try: scheduler_client = SchedulerManagementClient(credential, subscription_id) print(f"SchedulerManagementClient created for subscription: {subscription_id}") print("\nWARNING: The Azure Scheduler service has been retired as of January 31, 2022.") print("Any operations attempted with this client (e.g., listing job collections) will likely fail.") # Example: Attempt to list job collections (this will likely fail) # for collection in scheduler_client.job_collections.list_by_subscription(): # print(f"Job Collection: {collection.name}") except Exception as e: print(f"Error creating or using SchedulerManagementClient: {e}") print("This is expected behavior as the underlying service is retired.")
Debug
Known issues
breakingThe underlying Azure Scheduler service has been retired by Microsoft as of January 31, 2022. This library is no longer maintained for new features or non-security bug fixes.
fix
Migrate existing schedules to Azure Logic Apps, which is the recommended replacement. Use the `azure-mgmt-logic` library for programmatic management of Logic Apps.
affects: All versions. The service itself is retired, rendering the library largely non-functional for managing new or existing schedules.
breakingAuthentication methods changed significantly in version 7.0.0. Older `azure.common.credentials` or `msrestazure.azure_active_directory` instances are no longer supported. The `credentials` parameter was renamed to `credential`.
fix
Update your authentication code to use classes like `DefaultAzureCredential` from `azure.identity`. Pass the credential object directly to the client constructor, e.g., `SchedulerManagementClient(credential, subscription_id)`.
affects: 7.0.0 and later (relative to 6.x)
gotchaAttempting to create, update, or retrieve Azure Scheduler resources using this library will almost certainly result in API errors (e.g., HTTP 404 Not Found, 410 Gone) because the backend service is no longer available.
fix
Do not use this library for active schedule management. For any lingering archival or diagnostic needs, be prepared for consistent API failures.
affects: All versions since the service retirement.
breakingIn version 7.0.0, operations that previously returned a `msrest.polling.LROPoller` now return an `azure.core.polling.LROPoller` and are prefixed with `begin_`. The exceptions tree has been simplified, and most exceptions are now `azure.core.exceptions.HttpResponseError` (CloudError has been removed).
fix
Update code to use `begin_` prefixed methods for long-running operations and handle `azure.core.exceptions.HttpResponseError` for general API errors. Adjust polling logic as per `azure.core` patterns.
affects: 7.0.0 and later
Errors
Common errors & fixes
azure.core.exceptions.HttpResponseError: (NotFound) The resource you are looking for has been removed.
The Azure Scheduler service, which this library manages, has been retired by Microsoft as of January 31, 2022. Attempts to create, update, or retrieve scheduler resources will result in API errors like HTTP 404 Not Found or 410 Gone.
fix
Migrate your scheduling logic to Azure Logic Apps, which is the recommended replacement service. Do not use `azure-mgmt-scheduler` for active schedule management.
TypeError: SchedulerManagementClient.__init__() got an unexpected keyword argument 'credentials'
In version 7.0.0 of `azure-mgmt-scheduler`, the authentication mechanism changed significantly. The `credentials` parameter was renamed to `credential`, and older `azure.common.credentials` or `msrestazure.azure_active_directory` instances are no longer supported.
fix
Update your authentication code to use classes like `DefaultAzureCredential` from `azure.identity`. Pass the credential object directly using the `credential` parameter: `SchedulerManagementClient(credential, subscription_id)`.
ModuleNotFoundError: No module named 'azure.mgmt.scheduler'
The `azure-mgmt-scheduler` package is either not installed in your Python environment or there's an issue with the Python path preventing its discovery.
fix
Install the package using pip: `pip install azure-mgmt-scheduler` or ensure your virtual environment is activated and correctly configured.
AttributeError: 'SchedulerManagementClient' object has no attribute 'job_collections'
This error typically occurs if you are using an outdated version of the `azure-mgmt-scheduler` library, or if the method signature/object structure has changed in a breaking version (like 7.0.0), or if you are trying to access a resource type that is no longer directly exposed or available due to the underlying service's retirement.
fix
While the service is retired, if attempting to access historical information (which may still fail), ensure you are on `azure-mgmt-scheduler` version 7.0.0 and refer to the latest SDK documentation for the correct client methods and properties, if any are still functional for diagnostic purposes. For active scheduling, migrate to Azure Logic Apps and use `azure-mgmt-logic`.
Upgrade
Version history
7.0.0latest on PyPI · released Oct 31, 2024
Audit
Dependencies
msrestazurerequiredAzure specific extensions for msrest, used for cloud API interaction.
azure-commonrequiredCommon Azure utilities and exceptions for the SDK.
azure-corerequiredCore utilities and HTTP pipeline for Azure SDK libraries.
azure-identityrequiredProvides Azure Active Directory authentication capabilities.
Agent activity
40 hits · last 30 days
node
30
OpenAI (training)
1
Resources
azure-mgmt-scheduler — pip install azure-mgmt-scheduler · libregistry