Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,5 @@
/src/storage-discovery/ @shanefujs @calvinhzy

/src/aks-agent/ @feiskyer @mainred @nilo19

/src/migrate/ @saifaldin14
3 changes: 3 additions & 0 deletions src/migrate/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ Release History
+++++++++++++++
* Initial release.

2.0.0
+++++++++++++++
* New version.

15 changes: 12 additions & 3 deletions src/migrate/azext_migrate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# --------------------------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azure.cli.core.profiles import ResourceType


class MigrateCommandsLoader(AzCommandsLoader):
Expand All @@ -18,13 +17,23 @@ def __init__(self, cli_ctx=None):

super().__init__(
cli_ctx=cli_ctx,
custom_command_type=migrate_custom,
resource_type=ResourceType.MGMT_MIGRATE
custom_command_type=migrate_custom
)

def load_command_table(self, args):
from azext_migrate.commands \
import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
except ImportError:
aaz = None
if aaz:
load_aaz_command_table(
loader=self,
aaz_pkg_name=aaz.__name__,
args=args
)
load_command_table(self, args)
return self.command_table

Expand Down
6 changes: 6 additions & 0 deletions src/migrate/azext_migrate/aaz/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------------------------------------------------------------------
3 changes: 1 addition & 2 deletions src/migrate/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
[bdist_wheel]
universal=1
#setup.cfg
7 changes: 3 additions & 4 deletions src/migrate/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from codecs import open
from setuptools import setup, find_packages

VERSION = "1.0.0"
VERSION = "2.0.0"

CLASSIFIERS = [
'Development Status :: 4 - Beta',
Expand All @@ -32,8 +31,8 @@
description='Support for Azure Migrate preview',
long_description='Support for Azure Migrate preview',
license='MIT',
author='Jeffrey Li',
author_email='jefl@microsoft.com',
author='Saif Al-Din Ali',
author_email='saifaldinali@microsoft.com',
url='https://github.com/Azure/azure-cli-extensions/tree/main/src/migrate',
classifiers=CLASSIFIERS,
packages=find_packages(exclude=["tests"]),
Expand Down
5 changes: 5 additions & 0 deletions src/service_name.json
Original file line number Diff line number Diff line change
Expand Up @@ -973,5 +973,10 @@
"Command": "az site",
"AzureServiceName": "Azure Arc site manager",
"URL": "https://learn.microsoft.com/en-us/azure/azure-arc/site-manager/"
},
{
"Command": "az migrate",
"AzureServiceName": "Azure Migrate",
"URL": "https://learn.microsoft.com/azure/migrate"
Comment thread
saifaldin14 marked this conversation as resolved.
}
]
Loading