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
4 changes: 4 additions & 0 deletions src/log-analytics-solution/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

1.0.0
+++++++++++++++
* Make extension from experimental to stable.

0.1.1
+++++++++++++++
* deprecate --plan-publisher, --name, --plan-product and add --solution-type for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@ class LogAnalyticsSolutionCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_log_analytics_solution._client_factory import cf_log_analytics_solution
log_analytics_solution_custom = CliCommandType(
operations_tmpl='azext_log_analytics_solution.custom#{}',
client_factory=cf_log_analytics_solution)
super(LogAnalyticsSolutionCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=log_analytics_solution_custom)
operations_tmpl='azext_log_analytics_solution.custom#{}')
super().__init__(cli_ctx=cli_ctx, custom_command_type=log_analytics_solution_custom)

def load_command_table(self, args):
from azext_log_analytics_solution.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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,3 @@
# pylint: disable=too-many-lines
# pylint: disable=line-too-long
from knack.help_files import helps # pylint: disable=unused-import


helps['monitor log-analytics solution'] = """
type: group
short-summary: Commands to manage monitor log-analytics solution.
"""

helps['monitor log-analytics solution create'] = """
type: command
short-summary: Create a log-analytics solution.
examples:
- name: Create a log-analytics solution of type Containers
text: |-
az monitor log-analytics solution create --resource-group MyResourceGroup \\
--solution-type Containers --tags key=value \\
--workspace "/subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/ \\
Microsoft.OperationalInsights/workspaces/{WorkspaceName}"
"""

helps['monitor log-analytics solution update'] = """
type: command
short-summary: Update an existing log-analytics solution.
examples:
- name: Update a log-analytics solution
text: |-
az monitor log-analytics solution update --resource-group MyResourceGroup \\
--name SolutionName --tags key=value
"""

helps['monitor log-analytics solution delete'] = """
type: command
short-summary: Delete a log-analytics solution.
examples:
- name: Delete a log-analytics solution
text: |-
az monitor log-analytics solution delete --resource-group MyResourceGroup --name SolutionName
"""

helps['monitor log-analytics solution show'] = """
type: command
short-summary: Get details about the specified log-analytics solution.
examples:
- name: Get a log-analytics solution
text: |-
az monitor log-analytics solution show --resource-group MyResourceGroup --name SolutionName
"""

helps['monitor log-analytics solution list'] = """
type: command
short-summary: List all of the log-analytics solutions in the specified subscription or resource group
examples:
- name: List all log-analytics solutions in the current subscription
text: |-
az monitor log-analytics solution list
- name: List all log-analytics solutions in a subscription
text: |-
az monitor log-analytics solution list --subscription MySubscription
- name: List all log-analytics solutions in a resource group
text: |-
az monitor log-analytics solution list --resource-group MyResourceGroup
"""
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,8 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=line-too-long
# pylint: disable=too-many-lines
# pylint: disable=too-many-statements

from azure.cli.core.commands.parameters import tags_type
from knack.arguments import CLIArgumentType
from ._validators import validate_workspace_resource_id

solution_name = CLIArgumentType(options_list=['--name', '-n'],
help='Name of the log-analytics solution. It should be in the format of '
'solutionType(workspaceName). SolutionType part is case sensitive. ')
# pylint: disable=unused-argument


def load_arguments(self, _):

with self.argument_context('monitor log-analytics solution create') as c:
c.ignore('location')
c.argument('solution_type', options_list=['--solution-type', '-t'],
help='Type of the log-analytics solution. The most used are: SecurityCenterFree, Security, Updates, '
'ContainerInsights, ServiceMap, AzureActivity, ChangeTracking, VMInsights, SecurityInsights, '
'NetworkMonitoring, SQLVulnerabilityAssessment, SQLAdvancedThreatProtection, AntiMalware, '
'AzureAutomation, LogicAppsManagement, SQLDataClassification')
c.argument('solution_name', solution_name, deprecate_info=c.deprecate(hide=True))
c.argument('tags', tags_type)
c.argument('plan_publisher',
help='Publisher name of the plan for solution. For gallery solution, it is Microsoft.',
deprecate_info=c.deprecate(hide=True))
c.argument('plan_product',
help='Product name of the plan for solution. It should be in the format of OMSGallery/<solutionType>. This is case sensitive.',
deprecate_info=c.deprecate(hide=True))
c.argument('workspace_resource_id', options_list=['--workspace', '-w'],
validator=validate_workspace_resource_id,
help='The name or resource ID of the log analytics workspace with which the solution will be linked.')

with self.argument_context('monitor log-analytics solution update') as c:
c.argument('solution_name', solution_name)
c.argument('tags', tags_type)

with self.argument_context('monitor log-analytics solution delete') as c:
c.argument('solution_name', solution_name)

with self.argument_context('monitor log-analytics solution show') as c:
c.argument('solution_name', solution_name)
pass

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +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
# --------------------------------------------------------------------------------------------

__import__('pkg_resources').declare_namespace(__name__)
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
# --------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"monitor",
)
class __CMDGroup(AAZCommandGroup):
"""Manage the Azure Monitor Service.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# 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.
# 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.
# --------------------------------------------------------------------------
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

VERSION = "0.1.0"
# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"monitor log-analytics",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure log analytics.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"monitor log-analytics solution",
)
class __CMDGroup(AAZCommandGroup):
"""Commands to manage monitor log-analytics solution.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._show import *
from ._update import *
from ._wait import *
Loading