Skip to content

Unable to set Diagnostics for Azure Managed Redis #32355

@levenaux

Description

@levenaux

Describe the bug

Azure CLI Version: 2.78.0
Service: Azure Monitor (Azure Managed Redis)
Description: I’m able to add the diagnostics through the Portal, but I’m experiencing errors when using the Azure CLI

Related command

az monitor diagnostics-settings create —name diag-managed-redis —resource /subscriptions/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/rg-managed-redis/providers/Microsoft.Cache/redisEnterprise/managed-redis —logs “[{‘categoryGroup’: ‘allLogs’, ‘enabled’: true}]” —workspace /subscriptions/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/rg-managed-redis/providers/microsoft.operationalinsights/workspaces/oms-managed-redis

Errors

(BadRequest) CategoryGroup: ‘AllLogs’ is not supported, supported ones are ‘’ Code: BadRequest Message: CategoryGroup: ‘AllLogs’ is not supported, supported ones are: ‘’

Issue script & Debug output

cli.knack.cli: Command arguments: ['monitor', 'diagnostic-settings', 'create', '--name', 'diag-managed-redis', '--resource', '/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/rg-managed-redis/providers/Microsoft.Cache/redisEnterprise/managed-redis', '--logs', "[{'categoryGroup':'AllLogs','enabled':true}]", '--workspace', '/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourcegroups/rg-managed-redis/providers/microsoft.operationalinsights/workspaces/oms-managed-redis', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x1006328e0>, <function OutputProducer.on_global_arguments at 0x100e2fba0>, <function CLIQuery.on_global_arguments at 0x100e79f80>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'monitor': ['azure.cli.command_modules.monitor']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: monitor 4.623 24 69
cli.azure.cli.core: Total (1) 4.623 24 69
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: Loaded 24 groups, 69 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : monitor diagnostic-settings create
cli.azure.cli.core: Command table: monitor diagnostic-settings create
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x101e5d620>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/jamie/.azure/commands/2025-10-29.11-59-51.monitor_diagnostic-settings_create.93460.log'.
az_command_data_logger: command args: monitor diagnostic-settings create --name {} --resource {} --logs {} --workspace {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x101ea7060>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x101ec14e0>, <function register_cache_arguments..add_cache_arguments at 0x101ec16c0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x101ec1760>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x100e2fc40>, <function CLIQuery.handle_query_parameter at 0x100e7a020>, <function register_ids_argument..parse_ids_arguments at 0x101ec1580>]
cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/jamie/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /Users/jamie/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx
msal.authority: openid_config(https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx/v2.0/.well-known/openid-configuration) = {'token_endpoint': 'https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? None
cli.azure.cli.core._debug: Using CA bundle file at '/etc/ssl/certs/ca-certs.pem'.
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 6c9f7074-e273-491c-accf-80f5c95cfab2
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/rg-managed-redis/providers/Microsoft.Cache/redisEnterprise/managed-redis/providers/Microsoft.Insights/diagnosticSettings/diag-managed-redis?api-version=2021-05-01-preview'
cli.azure.cli.core.sdk.policies: Request method: 'PUT'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json'
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'Content-Length': '260'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': ‘xxxxxxxxxx-xxxx-xxxx-xxxxx-22542c1c8be6'
cli.azure.cli.core.sdk.policies: 'CommandName': 'monitor diagnostic-settings create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource --logs --workspace --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.78.0 (HOMEBREW) azsdk-python-core/1.35.0 Python/3.13.9 (macOS-15.7.1-arm64-arm-64bit-Mach-O)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: {"properties": {"logs": [{"categoryGroup": "AllLogs", "enabled": true}], "workspaceId": "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourcegroups/rg-managed-redis/providers/microsoft.operationalinsights/workspaces/oms-managed-redis"}}
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "PUT /subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/rg-managed-redis/providers/Microsoft.Cache/redisEnterprise/managed-redis/providers/Microsoft.Insights/diagnosticSettings/diag-managed-redis?api-version=2021-05-01-preview HTTP/1.1" 400 99
cli.azure.cli.core.sdk.policies: Response status: 400
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '99'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '00000000-0000-0000-0000-000000000000'
cli.azure.cli.core.sdk.policies: 'x-ms-operation-identifier': 'tenantId=xxxx-xxxx-xxxx-xxxxxxxxx-xxxxxxx,objectId=xxxxx-xxxxx-xxxxxx-xxxxx/xxxxxxxx'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-resource-requests': '99'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '5'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': ''
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: CAJBJKSBDAKSJBDSD Ref B: ASDKLJFNDALKJNFAKDJF Ref C: 2025-10-29T11:59:52Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Wed, 29 Oct 2025 11:59:52 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"code":"BadRequest","message":"CategoryGroup: 'AllLogs' is not supported, supported ones are: ''"}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/core/aaz/_command.py", line 155, in call
return self._handler(*args, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/_create.py", line 33, in _handler
self._execute_operations()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/_create.py", line 177, in _execute_operations
self.DiagnosticSettingsCreateOrUpdate(ctx=self.ctx)()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/_create.py", line 201, in call
return self.on_error(session.http_response)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/core/aaz/_operation.py", line 327, in on_error
raise HttpResponseError(response=response, error_format=error_format)
azure.core.exceptions.HttpResponseError: (BadRequest) CategoryGroup: 'AllLogs' is not supported, supported ones are: ''
Code: BadRequest
Message: CategoryGroup: 'AllLogs' is not supported, supported ones are: ''

cli.azure.cli.core.azclierror: (BadRequest) CategoryGroup: 'AllLogs' is not supported, supported ones are: ''
Code: BadRequest
Message: CategoryGroup: 'AllLogs' is not supported, supported ones are: ''
az_command_data_logger: (BadRequest) CategoryGroup: 'AllLogs' is not supported, supported ones are: ''
Code: BadRequest
Message: CategoryGroup: 'AllLogs' is not supported, supported ones are: ''
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x101e5d8a0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 6.912 seconds (init: 0.880, invoke: 6.032)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4225 in cache file under /Users/jamie/.azure/telemetry/20251029115953139
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/bin/python /Users/jamie/homebrew/Cellar/azure-cli/2.78.0/libexec/lib/python3.13/site-packages/azure/cli/telemetry/init.py /Users/jamie/.azure /Users/jamie/.azure/telemetry/20251029115953139"
telemetry.process: Return from creating process 93756
telemetry.main: Finish creating telemetry upload process.

Expected behavior

Diagnostics should be created and sending logs to Azure Monitor

Environment Summary

azure-cli: 2.78.0
Azure-cli-core: 2.78.0
Azure-cli-telemetry: 1.1.0
Extensions:

  • account: 0.2.5
  • bastion: 0.3.0
  • datafactory: 1.0.0
  • rdbms-connect: 1.0.7
  • redisenterprise: 1.2.3

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamMonitoraz monitorcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions