# 01-create-workspace.py from azureml.core import Workspace # Example locations: 'westeurope' or 'eastus2' or 'westus2' or 'southeastasia'. ws = Workspace.create(name='', subscription_id='', resource_group='', create_resource_group=True, location='') # write out the workspace details to a configuration file: .azureml/config.json ws.write_config(path='.azureml')