in src/python-sdk-v2/create_batch_endpoint.py [0:0]
def main():
args = parse_args()
print(args)
credential = DefaultAzureCredential()
try:
ml_client = MLClient.from_config(credential, path='config.json')
except Exception as ex:
print("HERE IN THE EXCEPTION BLOCK")
print(ex)
# create batch endpoint
batch_endpoint = BatchEndpoint(
name=args.endpoint_name,
description=args.description,
auth_mode=args.auth_mode
)
endpoint_job = ml_client.batch_endpoints.begin_create_or_update(batch_endpoint)
endpoint_job.wait()