def METHOD_NAME(cli_ctx, resource_group, name):
    from azext_aks_preview._client_factory import cf_managed_clusters
    results = cf_managed_clusters(cli_ctx).get_upgrade_profile(resource_group, name).as_dict()
    return results['control_plane_profile']['upgrades']