in playbooks/roles/ood-applications/files/bc_amlsdk/template/amlwrapperfunctions.py [0:0]
def setupenv(subscription_id, location, resource_group, workspace_name,
amlenv, machine_type, max_instances):
envsetup.subscription_id = subscription_id
envsetup.location = location
envsetup.resource_group = resource_group
envsetup.workspace_name = workspace_name
envsetup.amlenv = amlenv
envsetup.machine_type = machine_type
envsetup.max_instances = max_instances
print("Setting up environment...")
ws, ml_client = setupenv_ws()
envsetup.workspace = ws
envsetup.ml_client = ml_client
ml_client = setupenv_cluster()
envsetup.ml_client = ml_client
print("Environment ready for job submission")