Build with an Azure free account. Get USD200 credit for 30 days and 12 months of free services.

Start free today

How do you connect your Azure Machine Learning resources to your local Visual Studio Code environment? (10 of 28)

Play How do you connect your Azure Machine Learning resources to your local Visual Studio Code environment? (10 of 28)

The Discussion

  • User profile image
    TPCWare
    Warning:
    If you have more than one tenant in Azure tied to your account (as I have), chances are that with the new interactive login from Jupyter Notebooks you receive an error because it logins you to the wrong tenant (i.e. not the one with the subscription where the the AzureML resource has been created). To solve, use this on the Notebook:

    from azureml.core.authentication import InteractiveLoginAuthentication
    interactive_auth = InteractiveLoginAuthentication(tenant_id="")

    then the

    from azureml.core import Workspace, Experiment
    ws = Workspace.from_config()
    experiment_name="automl_bikeshare_forecast"
    experiment = Experiment(ws, experiment_name)

    should works :)

Add Your 2 Cents