Advent of 2022, Day 21 – Using Azure Machine Learning terminal

In the series of Azure Machine Learning posts:

Using Azure CLI can help you progress faster, make repetitve tasks automated and even use the GIT integration, for faster and better collaboration.

So we have created a YAML file on Day20 and we can use it also with Azure CLI to create an environment.

name: aml_sweep
channels:
  - anaconda
  - conda-forge
dependencies:
  - python==3.10.4
  - mlflow==1.26.0
  - yapf==0.31.0
  - pylint==2.12.2
  - mypy==0.910
  - pip==21.2.3
  - pip:
    - types-tqdm==4.64.7.1
    - pandas-stubs==1.5.0.221012

And with opening terminal

Fig 1: Creating new conda environment using Azure CLI

With YAML file in place, simply just call your standard conda command:

conda env create -f environment.yaml

and simply call the environment with

conda activate env  /anaconda/envs/azureml_py38_PT_TF
Fig 2: Activating environment

Creating an computer instance is also an easy way to create using Azure CLI

az ml compute create -f create_cluster.yaml

YAML definition is (name of file is create_cluster.yaml):

$schema: https://azuremlschemas.azureedge.net/latest/amlCompute.schema.json
name: AMLBlog2022-ds4-v2
type: amlcompute
size: Standard_DS11_v2
min_instances: 0
max_instances: 1

and you will get a new compute cluster defined as:

Fig 3: JSON result of new compute created

prior to creating a compute, make sure to be logged in. You can always do this with az login.

Fig 4: create login with az login

With Azure CLI you can create any asset, from pipelines, datastores, datasets, deployment jobs, inference models, endpoints, and many many others.

Compete set of code, documents, notebooks, and all of the materials will be available at the Github repository: https://github.com/tomaztk/Azure-Machine-Learning

Happy Advent of 2022!

Tagged with: , , , , , ,
Posted in Azure Machine Learning, Uncategorized
3 comments on “Advent of 2022, Day 21 – Using Azure Machine Learning terminal
  1. […] Dec 21: Using Azure Machine Learning terminal […]

    Like

  2. […] Dec 21: Using Azure Machine Learning terminal […]

    Like

Leave a comment

Follow TomazTsql on WordPress.com
Programs I Use: SQL Search
Programs I Use: R Studio
Programs I Use: Plan Explorer
Rdeči Noski – Charity

Rdeči noski

100% of donations made here go to charity, no deductions, no fees. For CLOWNDOCTORS - encouraging more joy and happiness to children staying in hospitals (http://www.rednoses.eu/red-noses-organisations/slovenia/)

€2.00

Top SQL Server Bloggers 2018
TomazTsql

Tomaz doing BI and DEV with SQL Server and R, Python, Power BI, Azure and beyond

Discover WordPress

A daily selection of the best content published on WordPress, collected for you by humans who love to read.

Revolutions

Tomaz doing BI and DEV with SQL Server and R, Python, Power BI, Azure and beyond

tenbulls.co.uk

tenbulls.co.uk - attaining enlightenment with the Microsoft Data and Cloud Platforms with a sprinkling of Open Source and supporting technologies!

SQL DBA with A Beard

He's a SQL DBA and he has a beard

Reeves Smith's SQL & BI Blog

A blog about SQL Server and the Microsoft Business Intelligence stack with some random Non-Microsoft tools thrown in for good measure.

SQL Server

for Application Developers

Business Analytics 3.0

Data Driven Business Models

SQL Database Engine Blog

Tomaz doing BI and DEV with SQL Server and R, Python, Power BI, Azure and beyond

Search Msdn

Tomaz doing BI and DEV with SQL Server and R, Python, Power BI, Azure and beyond

R-bloggers

Tomaz doing BI and DEV with SQL Server and R, Python, Power BI, Azure and beyond

R-bloggers

R news and tutorials contributed by hundreds of R bloggers

Data Until I Die!

Data for Life :)

Paul Turley's SQL Server BI Blog

sharing my experiences with the Microsoft data platform, SQL Server BI, Data Modeling, SSAS Design, Power Pivot, Power BI, SSRS Advanced Design, Power BI, Dashboards & Visualization since 2009

Grant Fritchey

Intimidating Databases and Code

Madhivanan's SQL blog

A modern business theme

Alessandro Alpi's Blog

DevOps could be the disease you die with, but don’t die of.

Paul te Braak

Business Intelligence Blog

Sql Insane Asylum (A Blog by Pat Wright)

Information about SQL (PostgreSQL & SQL Server) from the Asylum.

Gareth's Blog

A blog about Life, SQL & Everything ...