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