Hi Akash Singh,
Thank you for reaching out to us on the Microsoft Q&A forum.
We understand from your question that there might be instances where learners might be confusing to some but using ml_client
as an instance of azure.ai.ml.MLClient
follows standard practices. The code is kept short in the documentation to highlight the main idea: setting up an Azure Machine Learning workspace. It's typical in programming to skip some details, like declaring variables, when showing specific actions.
Hope we were able to resolve your confusion.
Please Upvote & Accept Answer so that it would be helpful to community members.