add cli auth
"import matplotlib.pyplot as plt\n",
"\n",
"import azureml.core\n",
+ "from azureml.core.authentication import AzureCliAuthentication\n",
+ "cli_auth = AzureCliAuthentication()\n",
"from azureml.core import Workspace\n",
"\n",
"# check core SDK version number, note AML Python SDK 1.30 or above is required for this sample notebook\n",
"outputs": [],
"source": [
"# load workspace configuration from the config.json file in the current folder.\n",
- "ws = Workspace.from_config()\n",
+ "ws = Workspace.from_config(auth=cli_auth)\n",
"print(ws.name, ws.location, ws.resource_group, sep='\\t')"
]
},
