Knowledge Graph — Coursera NotesAcademic disciplinesInformation Technology / Computer ScienceArtificial IntelligenceMachine Learning & DataAzure Machine Learning Service

Azure ML authentication methods

feature · part of Azure Machine Learning Service

Azure Machine Learning supports multiple authentication methods to secure access to workspaces and resources. The five primary methods are:

Each method has specific use cases and setup steps.

For troubleshooting, specify Subscription ID, Resource group, and Workspace name from Azure portal.

az login
from azureml.core.authentication import AzureCliAuthentication
cli_auth = AzureCliAuthentication()
ws = Workspace.from_config(auth=cli_auth)
from azure.identity import ManagedIdentityCredential
from azureml.core import Workspace
credential = ManagedIdentityCredential()
ws = Workspace(subscription_id="your_subscription_id", resource_group="your_resource_group", workspace_name="your_workspace_name", credential=credential)
from azureml.core.authentication import ServicePrincipalAuthentication
svc_pr = ServicePrincipalAuthentication(tenant_id="your_tenant_id", service_principal_id="your_application_id", service_principal_password="your_client_secret")
ws = Workspace.from_config(auth=svc_pr)
from azureml.core.authentication import InteractiveLoginAuthentication
token_auth = InteractiveLoginAuthentication(token="your_token_here")
ws = Workspace.from_config(auth=token_auth)
from azureml.core import Workspace
ws = Workspace.from_config()
secret = ws.get_default_keyvault().get_secret(name="your_secret_name")

Also known as: Azure ML authentication methods, ML authentication methods

This is the text view of an interactive 3D knowledge graph — open this page with JavaScript enabled to explore it visually.

🧠 Knowledge Graph

Select a node

The owner's editing tools — shown here so you can see how the graph is grown, but read-only.

Click a bubble to drill in · click again to collapse · drag to move around