from azureml.core import Workspace
subscription_id ='97fdb0ec-6341-4370-a234-394b1581d86c'
resource_group ='Xiangzhe-ML'
workspace_name = 'Xiangzhe-WS'
try:
ws = Workspace(subscription_id = subscription_id, resource_group = resource_group, workspace_name = workspace_name)
ws.write_config()
print('Library configuration succeeded')
except:
print('Workspace not found')
Performing interactive authentication. Please follow the instructions on the terminal.
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code F6TP7754H to authenticate.
Interactive authentication successfully completed. Wrote the config file config.json to: /home/nbuser/library/aml_config/config.json Library configuration succeeded