[Redis Cache] az redis access-policy-assignment: Support GUID-format assignment names (portal-created)#33452
Draft
Copilot wants to merge 2 commits into
Draft
[Redis Cache] az redis access-policy-assignment: Support GUID-format assignment names (portal-created)#33452Copilot wants to merge 2 commits into
az redis access-policy-assignment: Support GUID-format assignment names (portal-created)#33452Copilot wants to merge 2 commits into
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
…upport portal-created assignments
Copilot
AI
changed the title
[WIP] Fix deletion of access policy assignments created via portal
[Redis Cache] May 28, 2026
az redis access-policy-assignment: Support GUID-format assignment names (portal-created)
Collaborator
|
Redis Cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related command
az redis access-policy-assignment create/update/show/deleteDescription
The Azure portal generates GUID names (e.g.
76e670c5-eaf4-4674-8a48-2def9d37929c) for access policy assignments. The existing test only exercised alphanumeric names, leaving GUID support untested and unguarded against regression.Investigation findings:
az redis access-policy-assignment(this repo): no client-side regex validation; SDK usesclient_side_validation=False; GUID names already work end-to-endaz redisenterprise database access-policy-assignment(inazure-cli-extensions): AAZ-generated code enforces^[A-Za-z0-9]{1,60}$which rejects hyphens — that fix must be applied toazure-cli-extensionsby changing the pattern to^[A-Za-z0-9-]{1,60}$in_delete.py,_create.py,_update.py,_show.py, and_wait.pyChanges in this PR:
test_redis_cache_authenticationto use GUID76e670c5-eaf4-4674-8a48-2def9d37929cas the access policy assignment nametest_redis_cache_authentication.yaml) to matchTesting Guide
History Notes
[Redis Cache]
az redis access-policy-assignment: Test now covers GUID-format assignment names (portal-created)This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.