I get DefaultAzureCredential Error after succesful authentication #30589
Labels
Account
az login/account
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
Error:
Related command
Errors
Issue script & Debug output
from azure.identity import DefaultAzureCredential
from azure.ai.ml import MLClient
Create an MLClient instance
ml_client = MLClient(
DefaultAzureCredential(),
subscription_id,
resource_group,
workspace_name
)
from azure.ai.ml.entities import Job
Replace with your job name
job_name = "stoic_celery_rw59fzkbsx"
automl_job = ml_client.jobs.get(name=job_name)
Expected behavior
I expect to be able to access the job
Environment Summary
{
"azure-cli": "2.65.0",
"azure-cli-core": "2.65.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"ai-examples": "0.2.5",
"ml": "2.30.1",
"ssh": "2.0.5"
}
}
Additional context
Working from VSCode Studio
The text was updated successfully, but these errors were encountered: