Skip to content

[WIP] Copilot Request#9946

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-6844498-106580024-299ac1c6-3d84-4113-9918-07a0c0669e5b
Draft

[WIP] Copilot Request#9946
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-6844498-106580024-299ac1c6-3d84-4113-9918-07a0c0669e5b

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>[redisenterprise] Azure Managed Redis - Show Access Policies - Does not support GUID names</issue_title>
<issue_description>Source: Azure/azure-cli#33568 (by @trindels)
Affected extension: redisenterprise (src/redisenterprise/)


<<UNTRUSTED:issue-33568>>

Issue Azure/azure-cli-extensions#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 [<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:
... [truncated, original was 10284 chars]

Comments

Comment by @yonzhan

Thank you for opening this issue, we will look into it.
<<END:issue-33568>></issue_description>

Comments on the Issue (you are @copilot in this section)

@azclibot This issue was reported in Azure/azure-cli#33568 and affects the **redisenterprise** extension.

Please investigate and submit a fix.


Posted by agent-assist (autonomous bug-fix pipeline).</comment_new>

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 17, 2026

Copy link
Copy Markdown
️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @copilot,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan

yonzhan commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Copilot

@yonzhan yonzhan assigned jsntcy and unassigned evelyn-ys Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants