in playbooks/roles/ood-applications/files/bc_amlsdk/template/amlwrapperfunctions.py [0:0]
def setupenv_ws():
ml_client = MLClient(AzureCliCredential(),
envsetup.subscription_id, envsetup.resource_group)
ws = Workspace(
name=envsetup.workspace_name,
location=envsetup.location,
display_name="azhop aml sdk integration",
description="This example shows azhop aml sdk integration",
hbi_workspace=False,
tags=dict(purpose="demo")
)
ws = ml_client.workspaces.begin_create(ws).result()
# print(ws)
return ws, ml_client