Skip to content
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
884a215
Adding machine learning extension
achauhan-scc Jun 26, 2025
fda9106
adding azure-ai-ml
achauhan-scc Jul 16, 2025
8b8ed0e
removing azure-mgmt-resource
achauhan-scc Jul 16, 2025
34fba34
fixing linting issues
achauhan-scc Aug 11, 2025
d8ddd27
fixing more linting issues
achauhan-scc Aug 11, 2025
fd97882
linting
achauhan-scc Aug 11, 2025
a7cb103
linting
achauhan-scc Aug 11, 2025
eaad285
linting
achauhan-scc Aug 11, 2025
8d1a9b3
linting
achauhan-scc Aug 11, 2025
09d8023
linting
achauhan-scc Aug 11, 2025
ce2ab7f
linting
achauhan-scc Aug 11, 2025
74c6643
linting
achauhan-scc Aug 11, 2025
941b468
linting
achauhan-scc Aug 11, 2025
ef90af6
linting
achauhan-scc Aug 12, 2025
f95488d
linting
achauhan-scc Aug 12, 2025
4cb2421
linting
achauhan-scc Aug 12, 2025
336b73d
linting
achauhan-scc Aug 12, 2025
2f58de6
linting
achauhan-scc Aug 12, 2025
b4de185
linting
achauhan-scc Aug 12, 2025
efc635d
linting
achauhan-scc Aug 12, 2025
3cbd264
flake fix
achauhan-scc Aug 12, 2025
be0026c
flake fixes
achauhan-scc Aug 12, 2025
900aeb9
flake
achauhan-scc Aug 12, 2025
41e1ed1
more flake and linting
achauhan-scc Aug 12, 2025
99e5c36
fixing backward compatability issue
achauhan-scc Aug 12, 2025
d1144d1
more fixes for linting and backward support
achauhan-scc Aug 12, 2025
2ea9bb7
updating version
achauhan-scc Aug 12, 2025
10a3c87
add history
achauhan-scc Aug 12, 2025
0f8caf7
updating version with last released version
achauhan-scc Aug 12, 2025
4defba8
correcting version
achauhan-scc Aug 12, 2025
e377569
removing sensitive info from recording
achauhan-scc Aug 12, 2025
933f3b1
removing all sensitive information
achauhan-scc Aug 12, 2025
eec3c56
pointing to existing versin
achauhan-scc Aug 12, 2025
6ebf287
upgrading to next minor version
achauhan-scc Aug 12, 2025
237035d
fixing MIT license header for all the missing files
achauhan-scc Aug 14, 2025
117f345
fixing license check for missing files
achauhan-scc Aug 18, 2025
d641a36
fixing test cases
achauhan-scc Aug 18, 2025
46cb9b7
fixing secrets and comments
achauhan-scc Aug 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
421 changes: 421 additions & 0 deletions src/machinelearningservices/CHANGELOG.rst

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/machinelearningservices/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. :changelog:

Release History
===============

2.38.0
++++++
* Fix a bug compute update which caused Enable SSO property to reset.
20 changes: 20 additions & 0 deletions src/machinelearningservices/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Azure CLI ml extension
==============================================================================

.. contents::
:depth: 1
:local:

Overview
------------------------------------------------------------------------------
This is the extension for ml


Get started with Azure CLI ml extension
------------------------------------------------------------------------------

Install this extension using the below CLI command:

.. code-block:: bash

az extension add --name ml
55 changes: 55 additions & 0 deletions src/machinelearningservices/azext_mlv2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader

from azext_mlv2.generated._help import helps # pylint: disable=unused-import

try:
from azext_mlv2.manual._help import helps # pylint: disable=reimported
except ImportError as e:
print(e)


class AzureMachineLearningWorkspacesCommandsLoader(AzCommandsLoader):
def __init__(self, cli_ctx=None):
from azext_mlv2.generated._client_factory import cf_ml_cl

from azure.cli.core.commands import CliCommandType

ml_custom = CliCommandType(operations_tmpl="azext_mlv2.custom#{}", client_factory=cf_ml_cl)
parent = super(AzureMachineLearningWorkspacesCommandsLoader, self)
parent.__init__(cli_ctx=cli_ctx, custom_command_type=ml_custom)

def load_command_table(self, args):
from azext_mlv2.generated.commands import load_command_table

load_command_table(self, args)
try:
from azext_mlv2.manual.commands import load_command_table as load_command_table_manual

load_command_table_manual(self, args)
except ImportError:
pass
return self.command_table

def load_arguments(self, command):
from azext_mlv2.generated._params import load_arguments

load_arguments(self, command)
try:
from azext_mlv2.manual._params import load_arguments as load_arguments_manual

load_arguments_manual(self, command)
except ImportError:
pass


COMMAND_LOADER_CLS = AzureMachineLearningWorkspacesCommandsLoader
18 changes: 18 additions & 0 deletions src/machinelearningservices/azext_mlv2/action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.action import * # noqa: F403

try:
from .manual.action import * # noqa: F403
except ImportError:
pass
3 changes: 3 additions & 0 deletions src/machinelearningservices/azext_mlv2/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"azext.minCliCoreVersion": "2.15.0"
}
18 changes: 18 additions & 0 deletions src/machinelearningservices/azext_mlv2/custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.custom import * # noqa: F403

try:
from .manual.custom import * # noqa: F403
except ImportError:
pass
12 changes: 12 additions & 0 deletions src/machinelearningservices/azext_mlv2/generated/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------


def cf_ml_cl(cli_ctx, *_):
from azext_mlv2.manual.custom.utils import _get_cloud_information_from_cli

# the client used here doesn't matter since it isn't used by any command
from azure.ai.ml._restclient.v2022_02_01_preview import AzureMachineLearningWorkspaces
from azure.cli.core.commands.client_factory import get_mgmt_service_client

kwargs = _get_cloud_information_from_cli(cli_ctx=cli_ctx)
return get_mgmt_service_client(cli_ctx, AzureMachineLearningWorkspaces, **kwargs)
12 changes: 12 additions & 0 deletions src/machinelearningservices/azext_mlv2/generated/_help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=too-many-lines

from knack.help_files import helps
14 changes: 14 additions & 0 deletions src/machinelearningservices/azext_mlv2/generated/_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=unused-argument


def load_arguments(self, _):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
10 changes: 10 additions & 0 deletions src/machinelearningservices/azext_mlv2/generated/action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=protected-access
19 changes: 19 additions & 0 deletions src/machinelearningservices/azext_mlv2/generated/commands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=too-many-statements
# pylint: disable=too-many-locals

from azure.cli.core.commands import CliCommandType


def load_command_table(self, _):

with self.command_group("ml", is_experimental=True):
pass
10 changes: 10 additions & 0 deletions src/machinelearningservices/azext_mlv2/generated/custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=too-many-lines
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[bumpversion]
current_version = 0.0.139
commit = True
12 changes: 12 additions & 0 deletions src/machinelearningservices/azext_mlv2/manual/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Loading
Loading