Skip to content

Azure Managed Redis - Show Access Policies - Does not support GUID names #33568

@trindels

Description

@trindels

Describe the bug

We cannot view any details of an individual access policy assignment on Azure Managed Redis.

Related command

az redisenterprise database access-policy-assignment show --resource-group rxr-rxi-devqe-01-cus-rg --cluster-name rxr-rxi-devqe-cus-redis-goods-receiving-01 --database-name default --access-policy-assignment-name 91c1e064-da28-45b9-936a-bc638d7bac55

Errors

InvalidArgumentValue: -n: Invalid format: '/subscriptions/{00000000-0000-0000-0000-000000000000}/resourceGroups/{rgname}/providers/Microsoft.Cache/redisEnterprise/{cacheName}/databases/default/accessPolicyAssignments/{objectIdGuid}' does not fully match regular expression pattern '^[A-Za-z0-9]{1,60}$'

Issue script & Debug output

cli.knack.cli: Command arguments: ['redisenterprise', 'database', 'access-policy-assignment', 'show', '--resource-group', 'rxr-rxi-devqe-01-cus-rg', '--cluster-name', 'rxr-rxi-devqe-cus-redis-goods-receiving-01', '--database-name', 'default', '--access-policy-assignment-name', '/subscriptions/117cc72c-bb3d-4b86-beba-be946bf2f5d8/resourceGroups/rxr-rxi-devqe-01-cus-rg/providers/Microsoft.Cache/redisEnterprise/rxr-rxi-devqe-cus-redis-goods-receiving-01/databases/default/accessPolicyAssignments/91c1e064-da28-45b9-936a-bc638d7bac55', '--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 0x0000021133719C60>, <function OutputProducer.on_global_arguments at 0x00000211338B1D00>, <function CLIQuery.on_global_arguments at 0x00000211338FFD80>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Using packaged command index for profile 'latest'.
cli.azure.cli.core: Found installed extension 'azure-devops' (azext_devops).
cli.azure.cli.core: Blending packaged core index with local extension index.
cli.azure.cli.core: Modules found from index for 'redisenterprise': ['azext_redisenterprise']
cli.azure.cli.core: Loading command modules...
cli.azure.cli.core: Loaded command modules in parallel:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.006 0 0
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: redisenterprise 0.119 4 29 C:\Users\trrind4x.azure\cliextensions\redisenterprise
cli.azure.cli.core: Total (1) 0.119 4 29
cli.azure.cli.core: Loaded 4 groups, 29 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : redisenterprise database access-policy-assignment show
cli.azure.cli.core: Command table: redisenterprise database access-policy-assignment show
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000021133EB7420>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\trrind4x.azure\commands\2026-06-16.10-36-36.redisenterprise_database_access-policy-assignment_show.18604.log'.
az_command_data_logger: command args: redisenterprise database access-policy-assignment show --resource-group {} --cluster-name {} --database-name {} --access-policy-assignment-name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000021133F0C4A0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0000021133F0CAE0>, <function register_global_policy_argument..add_global_policy_argument at 0x0000021133F0CC20>, <function register_cache_arguments..add_cache_arguments at 0x0000021133F0CCC0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x0000021133F0CD60>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x00000211338B1DA0>, <function CLIQuery.handle_query_parameter at 0x00000211338FFE20>, <function register_ids_argument..parse_ids_arguments at 0x0000021133F0CB80>]
az_command_data_logger: extension name: redisenterprise
az_command_data_logger: extension version: 1.4.0
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command_ctx.py", line 53, in format_args
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_arg_fmt.py", line 402, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_arg_fmt.py", line 399, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_arg_fmt.py", line 56, in call
azure.cli.core.aaz.exceptions.AAZInvalidArgValueError: InvalidArgumentValue: -n: Invalid format: '/subscriptions/117cc72c-bb3d-4b86-beba-be946bf2f5d8/resourceGroups/rxr-rxi-devqe-01-cus-rg/providers/Microsoft.Cache/redisEnterprise/rxr-rxi-devqe-cus-redis-goods-receiving-01/databases/default/accessPolicyAssignments/91c1e064-da28-45b9-936a-bc638d7bac55' does not fully match regular expression pattern '^[A-Za-z0-9]{1,60}$'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 677, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 820, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 789, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command.py", line 154, in call
File "C:\Users\trrind4x.azure\cliextensions\redisenterprise\azext_redisenterprise\aaz\latest\redisenterprise\database\access_policy_assignment_show.py", line 33, in _handler
super()._handler(command_args)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command.py", line 164, in _handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command_ctx.py", line 55, in format_args
azure.cli.core.azclierror.InvalidArgumentValueError: InvalidArgumentValue: -n: Invalid format: '/subscriptions/117cc72c-bb3d-4b86-beba-be946bf2f5d8/resourceGroups/rxr-rxi-devqe-01-cus-rg/providers/Microsoft.Cache/redisEnterprise/rxr-rxi-devqe-cus-redis-goods-receiving-01/databases/default/accessPolicyAssignments/91c1e064-da28-45b9-936a-bc638d7bac55' does not fully match regular expression pattern '^[A-Za-z0-9]{1,60}$'

cli.azure.cli.core.azclierror: InvalidArgumentValue: -n: Invalid format: '/subscriptions/117cc72c-bb3d-4b86-beba-be946bf2f5d8/resourceGroups/rxr-rxi-devqe-01-cus-rg/providers/Microsoft.Cache/redisEnterprise/rxr-rxi-devqe-cus-redis-goods-receiving-01/databases/default/accessPolicyAssignments/91c1e064-da28-45b9-936a-bc638d7bac55' does not fully match regular expression pattern '^[A-Za-z0-9]{1,60}$'
az_command_data_logger: InvalidArgumentValue: -n: Invalid format: '/subscriptions/117cc72c-bb3d-4b86-beba-be946bf2f5d8/resourceGroups/rxr-rxi-devqe-01-cus-rg/providers/Microsoft.Cache/redisEnterprise/rxr-rxi-devqe-cus-redis-goods-receiving-01/databases/default/accessPolicyAssignments/91c1e064-da28-45b9-936a-bc638d7bac55' does not fully match regular expression pattern '^[A-Za-z0-9]{1,60}$'
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0000021133EB76A0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 0.793 seconds (init: 0.166, invoke: 0.627)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4488 in cache file under C:\Users\trrind4x.azure\telemetry\20260616103636817
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\trrind4x.azure C:\Users\trrind4x.azure\telemetry\20260616103636817"
telemetry.process: Return from creating process 19216
telemetry.main: Finish creating telemetry upload process.

Expected behavior

By default, all azure-policy-assignment names are created with the GUID of the User / Service Principal ObjectId when using the portal. This can be seen with the az redisenterprise database access-policy-assignment list ... command.

Environment Summary

azure-cli 2.87.0

core 2.87.0
telemetry 1.1.0

Extensions:
azure-devops 1.0.2
bastion 1.4.2
redisenterprise 1.4.0

Dependencies:
msal 1.36.0
azure-mgmt-resource 24.0.0

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\trrind4x.azure'
Extensions directory 'C:\Users\trrind4x.azure\cliextensions'

Python (Windows) 3.13.13 (tags/v3.13.13:01104ce, Apr 7 2026, 19:25:48) [MSC v.1944 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Redis CacheService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions