azure-mgmt-containerservice
Microsoft Azure Containerservice Management Client Library for Python
Description
Microsoft Azure SDK for Python
This is the Microsoft Azure Container Service Management Client Library. This package has been tested with Python 3.9+. 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.9+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-containerservice
pip install azure-identity
Authentication
By default, Azure Active Directory token authentication depends on correct configuration of the 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.containerservice import ContainerServiceClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = ContainerServiceClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at:
- Search Container Service Management on docs.microsoft.com
- Azure Python Mgmt SDK 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
40.2.0 (2025-11-24)
Features Added
- Enum
OSSKUadded memberUBUNTU2404
41.0.0b2 (2025-11-17)
Features Added
- Model
ManagedClusterIngressProfileadded propertyapplication_load_balancer - Model
ManagedClusterIngressProfileWebAppRoutingadded propertydefault_domain - Enum
Modeadded memberNFTABLES - Enum
WorkloadRuntimeadded memberKATA_VM_ISOLATION - Added model
ManagedClusterIngressDefaultDomainProfile - Added model
ManagedClusterIngressProfileApplicationLoadBalancer
40.1.0 (2025-10-31)
Features Added
- Client
ContainerServiceClientadded operation groupmanaged_namespaces - Model
AgentPooladded propertylocal_dns_profile - Model
IstioEgressGatewayadded propertyname - Model
IstioEgressGatewayadded propertynamespace - Model
IstioEgressGatewayadded propertygateway_configuration_name - Model
ManagedClusterAgentPoolProfileadded propertylocal_dns_profile - Model
ManagedClusterAgentPoolProfilePropertiesadded propertylocal_dns_profile - Enum
WorkloadRuntimeadded memberKATA_VM_ISOLATION - Added enum
AdoptionPolicy - Added enum
DeletePolicy - Added enum
LocalDNSForwardDestination - Added enum
LocalDNSForwardPolicy - Added enum
LocalDNSMode - Added model
LocalDNSOverride - Added model
LocalDNSProfile - Added enum
LocalDNSProtocol - Added enum
LocalDNSQueryLogging - Added enum
LocalDNSServeStale - Added enum
LocalDNSState - Added model
ManagedNamespace - Added model
ManagedNamespaceListResult - Added model
NamespaceProperties - Added enum
NamespaceProvisioningState - Added model
NetworkPolicies - Added enum
PolicyRule - Added model
ResourceQuota - Added operation group
ManagedNamespacesOperations
41.0.0b1 (2025-10-24)
Features Added
- Client
ContainerServiceClientadded operation groupcontainer_service - Client
ContainerServiceClientadded operation groupmanaged_namespaces - Client
ContainerServiceClientadded operation groupoperation_status_result - Client
ContainerServiceClientadded operation groupmanaged_cluster_snapshots - Client
ContainerServiceClientadded operation groupload_balancers - Client
ContainerServiceClientadded operation groupidentity_bindings - Client
ContainerServiceClientadded operation groupjwt_authenticators - Client
ContainerServiceClientadded operation groupmesh_memberships - Model
AdvancedNetworkingadded propertyperformance - Model
AdvancedNetworkingSecurityadded propertytransit_encryption - Model
AgentPooladded propertyupgrade_strategy - Model
AgentPooladded propertyupgrade_settings_blue_green - Model
AgentPooladded propertynode_initialization_taints - Model
AgentPooladded propertyartifact_streaming_profile - Model
AgentPooladded propertylocal_dns_profile - Model
AgentPooladded propertynode_customization_profile - Enum
AgentPoolModeadded memberMACHINES - Enum
AgentPoolModeadded memberMANAGED_SYSTEM - Enum
AgentPoolSSHAccessadded memberENTRA_ID - Model
AgentPoolUpgradeProfileadded propertycomponents_by_releases - Model
AgentPoolUpgradeProfileadded propertyrecently_used_versions - Model
AgentPoolUpgradeProfilePropertiesUpgradesItemadded propertyis_out_of_support - Model
AgentPoolUpgradeSettingsadded propertymin_surge - Model
AgentPoolUpgradeSettingsadded propertymax_blocked_nodes - Model
ContainerServiceNetworkProfileadded propertypod_link_local_access - Model
ContainerServiceNetworkProfileadded propertykube_proxy_config - Model
GPUProfileadded propertydriver_type - Model
IstioComponentsadded propertyproxy_redirection_mechanism - Model
IstioEgressGatewayadded propertyname - Model
IstioEgressGatewayadded propertynamespace - Model
IstioEgressGatewayadded propertygateway_configuration_name - Model
KubeletConfigadded propertyseccomp_default - Model
MachineNetworkPropertiesadded propertyvnet_subnet_id - Model
MachineNetworkPropertiesadded propertypod_subnet_id - Model
MachineNetworkPropertiesadded propertyenable_node_public_ip - Model
MachineNetworkPropertiesadded propertynode_public_ip_prefix_id - Model
MachineNetworkPropertiesadded propertynode_public_ip_tags - Model
MachinePropertiesadded propertyhardware - Model
MachinePropertiesadded propertyoperating_system - Model
MachinePropertiesadded propertykubernetes - Model
MachinePropertiesadded propertymode - Model
MachinePropertiesadded propertysecurity - Model
MachinePropertiesadded propertypriority - Model
MachinePropertiesadded propertynode_image_version - Model
MachinePropertiesadded propertyprovisioning_state - Model
MachinePropertiesadded propertytags - Model
MachinePropertiesadded propertye_tag - Model
MachinePropertiesadded propertystatus - Model
ManagedClusteradded propertycreation_data - Model
ManagedClusteradded propertyenable_namespace_resources - Model
ManagedClusteradded propertyscheduler_profile - Model
ManagedClusteradded propertyhosted_system_profile - Model
ManagedClusterAgentPoolProfileadded propertyupgrade_strategy - Model
ManagedClusterAgentPoolProfileadded propertyupgrade_settings_blue_green - Model
ManagedClusterAgentPoolProfileadded propertynode_initialization_taints - Model
ManagedClusterAgentPoolProfileadded propertyartifact_streaming_profile - Model
ManagedClusterAgentPoolProfileadded propertylocal_dns_profile - Model
ManagedClusterAgentPoolProfileadded propertynode_customization_profile - Model
ManagedClusterAgentPoolProfilePropertiesadded propertyupgrade_strategy - Model
ManagedClusterAgentPoolProfilePropertiesadded propertyupgrade_settings_blue_green - Model
ManagedClusterAgentPoolProfilePropertiesadded propertynode_initialization_taints - Model
ManagedClusterAgentPoolProfilePropertiesadded propertyartifact_streaming_profile - Model
ManagedClusterAgentPoolProfilePropertiesadded propertylocal_dns_profile - Model
ManagedClusterAgentPoolProfilePropertiesadded propertynode_customization_profile - Model
ManagedClusterAzureMonitorProfileadded propertycontainer_insights - Model
ManagedClusterAzureMonitorProfileadded propertyapp_monitoring - Model
ManagedClusterHTTPProxyConfigadded propertyeffective_no_proxy - Model
ManagedClusterHTTPProxyConfigadded propertyenabled - Model
ManagedClusterIngressProfileadded propertygateway_api - Model
ManagedClusterLoadBalancerProfileadded propertycluster_service_load_balancer_health_probe_mode - Model
ManagedClusterPoolUpgradeProfileadded propertycomponents_by_releases - Model
ManagedClusterPoolUpgradeProfileUpgradesItemadded propertyis_out_of_support - Model
ManagedClusterSecurityProfileadded propertykubernetes_resource_object_encryption_profile - Model
ManagedClusterSecurityProfileadded propertyimage_integrity - Model
ManagedClusterSecurityProfileadded propertynode_restriction - Model
ManagedClusterSecurityProfileDefenderadded propertysecurity_gating - Model
ManagedClusterStorageProfileDiskCSIDriveradded propertyversion - Model
ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaleradded propertyaddon_autoscaling - Enum
OSSKUadded memberFLATCAR - Enum
OSSKUadded memberMARINER - Enum
OSSKUadded memberUBUNTU2404 - Enum
OSSKUadded memberWINDOWS2025 - Enum
OSSKUadded memberWINDOWS_ANNUAL - Enum
PublicNetworkAccessadded memberSECURED_BY_PERIMETER - Model
ScaleProfileadded property `autosca