From 698c379359b1bc566099a30935b050d1c3a62a03 Mon Sep 17 00:00:00 2001 From: Raj Shah Date: Thu, 31 May 2018 13:23:44 -0700 Subject: [PATCH] Supress extension --- .../azure/cli/command_modules/resource/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/__init__.py b/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/__init__.py index 15c858870eb..59f85fab501 100644 --- a/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/__init__.py +++ b/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/__init__.py @@ -12,9 +12,14 @@ class ResourceCommandsLoader(AzCommandsLoader): def __init__(self, cli_ctx=None): from azure.cli.core.commands import CliCommandType + from azure.cli.core import ModExtensionSuppress resource_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.resource.custom#{}') super(ResourceCommandsLoader, self).__init__(cli_ctx=cli_ctx, - custom_command_type=resource_custom) + custom_command_type=resource_custom, + suppress_extension=ModExtensionSuppress( + __name__, 'managementgroups', '0.1.0', + reason='The management groups commands are now in CLI.', + recommend_remove=True)) def load_command_table(self, args): from azure.cli.command_modules.resource.commands import load_command_table