diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/_create.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/_create.py index 7bcd774ab99..dff43b84760 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/_create.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/_create.py @@ -63,7 +63,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.logs = AAZListArg( options=["--logs"], - help="JSON encoded list of logs settings. Use '@{file}' to load from a file.For more information, visit: https://learn.microsoft.com/rest/api/monitor/diagnosticsettings/createorupdate#logsettings.", + help="JSON encoded list of logs settings. Use '@{file}' to load from a file. For more information, visit: https://learn.microsoft.com/rest/api/monitor/diagnosticsettings/createorupdate#logsettings.", ) _args_schema.marketplace_partner_id = AAZStrArg( options=["--marketplace-partner-id"], @@ -100,12 +100,12 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _element.enabled = AAZBoolArg( options=["enabled"], - help="a value indicating whether this log is enabled.", + help="A value indicating whether this log is enabled.", required=True, ) _element.retention_policy = AAZObjectArg( options=["retention-policy"], - help="the retention policy for this log.", + help="The retention policy for this log.", ) cls._build_args_retention_policy_create(_element.retention_policy) @@ -119,17 +119,17 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _element.enabled = AAZBoolArg( options=["enabled"], - help="a value indicating whether this category is enabled.", + help="A value indicating whether this category is enabled.", required=True, ) _element.retention_policy = AAZObjectArg( options=["retention-policy"], - help="the retention policy for this category.", + help="The retention policy for this category.", ) cls._build_args_retention_policy_create(_element.retention_policy) _element.time_grain = AAZDurationArg( options=["time-grain"], - help="the timegrain of the metric in ISO8601 format.", + help="The timegrain of the metric in ISO8601 format.", ) # define Arg Group "Target Resource" @@ -157,7 +157,7 @@ def _build_args_retention_policy_create(cls, _schema): retention_policy_create = cls._args_retention_policy_create retention_policy_create.days = AAZIntArg( options=["days"], - help="the number of days for the retention in days. A value of 0 will retain the events indefinitely.", + help="The number of days for the retention. A value of 0 will retain the events indefinitely.", required=True, fmt=AAZIntArgFormat( minimum=0, @@ -165,7 +165,7 @@ def _build_args_retention_policy_create(cls, _schema): ) retention_policy_create.enabled = AAZBoolArg( options=["enabled"], - help="a value indicating whether the retention policy is enabled.", + help="A value indicating whether the retention policy is enabled.", required=True, ) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/diagnostics_settings.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/diagnostics_settings.py index cc3c1322b3a..fc7ce2b4787 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/operations/diagnostics_settings.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/diagnostics_settings.py @@ -80,8 +80,8 @@ def _build_arguments_schema(cls, *args, **kwargs): options=['--export-to-resource-specific'], help="Indicate that the export to LA must be done to a resource specific table, a.k.a. " "dedicated or fixed schema table, as opposed to the default dynamic schema table called " - "AzureDiagnostics. This argument is effective only when the argument --workspace is also given." - " Allowed values: false, true." + "AzureDiagnostics. This argument is effective only when the argument --workspace is also given. " + "Allowed values: false, true." ) arg_schema.log_analytics_destination_type._registered = False # pylint:disable=protected-access arg_schema.service_bus_rule_id._registered = False # pylint:disable=protected-access