azure-mgmt-media
Microsoft Azure Media Services Client Library for Python
Description
Microsoft Azure SDK for Python
Please note, this package has been deprecated and will no longer be maintained after 06/30/2024. Refer to Azure Media Services retirement guide for more retirement details and how to migrate to the new services. Refer to our deprecation policy (https://aka.ms/azsdk/support-policies) for more details.
This is the Microsoft Azure Media Services Client Library. This package has been tested with Python 3.7+. For a more complete view of Azure libraries, see the azure sdk python release.
Disclaimer
Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691
Getting started
Prerequisites
- Python 3.7+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-media
pip install azure-identity
Authentication
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.
In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.
With above configuration, client can be authenticated by following code:
from azure.identity import DefaultAzureCredential
from azure.mgmt.media import MediaManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = MediaManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at Media Services on docs.microsoft.com and Samples Repo
Troubleshooting
Next steps
Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Release History
10.2.1 (2025-06-03)
Other Changes
- Please note, this package has been deprecated and will no longer be maintained after 06/30/2024. Refer to Azure Media Services retirement guide for more retirement details and how to migrate to the new services. Refer to our deprecation policy (https://aka.ms/azsdk/support-policies) for more details.
10.2.0 (2023-01-12)
Features Added
- Model Filters has a new parameter fade_in
- Model Filters has a new parameter fade_out
- Model StandardEncoderPreset has a new parameter experimental_options
10.2.0b1 (2022-12-27)
Other Changes
- Added generated samples in github repo
- Drop support for python<3.7.0
10.1.0 (2022-09-14)
Features Added
- Added operation LiveEventsOperations.async_operation
- Added operation LiveEventsOperations.operation_location
- Added operation LiveOutputsOperations.async_operation
- Added operation LiveOutputsOperations.operation_location
- Added operation StreamingEndpointsOperations.async_operation
- Added operation StreamingEndpointsOperations.operation_location
- Model AudioTrack has a new parameter bit_rate
- Model AudioTrack has a new parameter dash_settings
- Model AudioTrack has a new parameter display_name
- Model AudioTrack has a new parameter file_name
- Model AudioTrack has a new parameter hls_settings
- Model AudioTrack has a new parameter language_code
- Model AudioTrack has a new parameter mpeg4_track_id
- Model CommonEncryptionCbcs has a new parameter clear_key_encryption_configuration
- Model CommonEncryptionCenc has a new parameter clear_key_encryption_configuration
- Model ContentKeyPolicyPlayReadyLicense has a new parameter security_level
- Model LiveOutput has a new parameter rewind_window_length
10.0.0 (2022-07-01)
Features
- Added operation MediaservicesOperations.begin_create_or_update
- Added operation MediaservicesOperations.begin_update
- Added operation group MediaServicesOperationResultsOperations
- Added operation group MediaServicesOperationStatusesOperations
- Model MediaService has a new parameter private_endpoint_connections
- Model MediaService has a new parameter provisioning_state
- Model MediaServiceUpdate has a new parameter private_endpoint_connections
- Model MediaServiceUpdate has a new parameter provisioning_state
Breaking changes
- Removed operation MediaservicesOperations.create_or_update
- Removed operation MediaservicesOperations.update
9.0.0 (2022-03-30)
Features
- Added operation StreamingEndpointsOperations.skus
- Added operation group OperationResultsOperations
- Added operation group OperationStatusesOperations
- Added operation group TracksOperations
- Model H264Layer has a new parameter crf
- Model H264Video has a new parameter rate_control_mode
- Model H265Layer has a new parameter crf
- Model StreamingEndpoint has a new parameter sku
Breaking changes
- Model H264Layer no longer has parameter odata_type
- Model H265Layer no longer has parameter odata_type
- Model H265VideoLayer no longer has parameter odata_type
- Model JpgLayer no longer has parameter odata_type
- Model Layer no longer has parameter odata_type
- Model PngLayer no longer has parameter odata_type
- Model VideoLayer no longer has parameter odata_type
8.0.0 (2021-07-15)
Features
- Model JobOutput has a new parameter preset_override
- Model BuiltInStandardEncoderPreset has a new parameter configurations
- Model MediaServiceIdentity has a new parameter user_assigned_identities
- Model JobOutputAsset has a new parameter preset_override
- Model MediaService has a new parameter public_network_access
- Model MediaServiceUpdate has a new parameter public_network_access
- Model StorageAccount has a new parameter status
- Model StorageAccount has a new parameter identity
- Model AccountEncryption has a new parameter status
- Model AccountEncryption has a new parameter identity
- Model LiveOutput has a new parameter system_data
Breaking changes
- Model OperationCollection no longer has parameter odata_next_link
7.0.0 (2021-06-03)
Features
- Model Asset has a new parameter system_data
- Model StreamingPolicy has a new parameter system_data
- Model Operation has a new parameter action_type
- Model Operation has a new parameter is_data_action
- Model JobInputAsset has a new parameter input_definitions
- Model AccountFilter has a new parameter system_data
- Model FaceDetectorPreset has a new parameter mode
- Model FaceDetectorPreset has a new parameter blur_type
- Model LiveEvent has a new parameter system_data
- Model MediaService has a new parameter key_delivery
- Model MediaService has a new parameter system_data
- Model Job has a new parameter system_data
- Model StreamingLocator has a new parameter system_data
- Model StreamingEndpoint has a new parameter system_data
- Model ContentKeyPolicy has a new parameter system_data
- Model JobInputClip has a new parameter input_definitions
- Model JobInputHttp has a new parameter input_definitions
- Model MetricSpecification has a new parameter lock_aggregation_type
- Model MetricSpecification has a new parameter supported_time_grain_types
- Model MetricSpecification has a new parameter source_mdm_namespace
- Model MetricSpecification has a new parameter source_mdm_account
- Model MetricSpecification has a new parameter enable_regional_mdm_account
- Model AssetFilter has a new parameter system_data
- Model Transform has a new parameter system_data
Breaking changes
- Removed operation MediaservicesOperations.get_by_subscription
7.0.0b1 (2020-12-01)
This is beta preview version.
This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
General breaking changes
-
Credential system has been completly revamped:
azure.common.credentialsormsrestazure.azure_active_directoryinstances are no longer supported, use theazure-identityclasses instead: https://pypi.org/project/azure-identity/credentialsparameter has been renamedcredential
-
The
configattribute no longer exists on a client, configuration should be passed as kwarg. Example:MyClient(credential, subscription_id, enable_logging=True). For a complete set of supported options, see the parameters accept in init documentation of azure-core -
You can't import a
versionmodule anymore, use__version__instead -
Operations that used to return a
msrest.polling.LROPollernow returns aazure.core.polling.LROPollerand are prefixed withbegin_. -
Exceptions tree have been simplified and most exceptions are now
azure.core.exceptions.HttpResponseError(CloudErrorhas been removed). -
Most of the operation kwarg have changed. Some of the most noticeable:
rawhas been removed. Equivalent feature can be found usingcls, a callback that will give access to internal HTTP response for advanced user- For a complete set of supported options, see the parameters accept in Request documentation of azure-core
General new features
- Type annotati