Azure / Azure/azure-cli-extensions

[redisenterprise] Azure Managed Redis - Show Access Policies - Does not support GUID names

Open
#9,945 2 comments 1 reaction 2 assignees Claimed by @azclibot View on GitHub
Auto-Assign Redis Enterprise Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

Source: https://github.com/Azure/azure-cli/issues/33568 (by @trindels)
Affected extension: `redisenterprise` (`src/redisenterprise/`)

---

<<>>
# Issue #33568 (by @trindels)
## Title
Azure Managed Redis - Show Access Policies - Does not support GUID names

## Body
### 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 [, , ]
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 []
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 [.add_subscription_parameter at 0x0000021133F0C4A0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x0000021133F0CAE0>, .add_global_policy_argument at 0x0000021133F0CC20>, .add_cache_arguments at 0x0000021133F0CCC0>, .update_breaking_change_info at 0x0000021133F0CD60>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [, , .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:
... [truncated, original was 10284 chars]

## Comments
### Comment by @yonzhan

Thank you for opening this issue, we will look into it.
<<>>

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.