вы можете сделать это, вот документы для метода (ов), который вы ищете. Вот код SDK для того же материала.Модель для управляемых кластеров
Пример кода будет выглядеть примерно так:
from azure.mgmt.containerservice import ContainerServiceClient # needed to create client
containerservice_client = ContainerServiceClient(get_credentials(), SUBSCRIPTION) # same way like you would for the resource_management_client
parameters = ManagedCluster(
location=location,
dns_prefix=dns_prefix,
kubernetes_version=kubernetes_version,
tags=stags,
service_principal_profile=service_principal_profile, # this needs to be a model as well
agent_pool_profiles=agent_pools, # this needs to be a model as well
linux_profile=linux_profile, # this needs to be a model as well
enable_rbac=true
)
containerservice_client.managed_clusters.create_or_update(resource_group, name, parameters)