Repository navigation
[Network] az network authentication-policy: Support authentication policy commands - #34447
Merged
Merged
Conversation
Contributor
|
Hi Jian Hui (@huiii99), |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Jian Hui (huiii99)
force-pushed
the
network-feat-34269
branch
from
November 19, 2026 03:05
5360d8c to
834d6a9
Compare
az network authentication-policy: Add new command group to support authentication policyaz network authentication-policy: Support authentication policy commands
Jian Hui (huiii99)
marked this pull request as ready for review
November 19, 2026 05:16
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Identity removal matches ARM IDs case-sensitively, so casing-only differences can silently leave an identity assigned while reporting success.
1 open issue
What changed in this PR
Adds az network authentication-policy to manage Application Gateway authentication policies, addressing #34269 with API version 2026-01-01.
Changes:
- Adds policy create, update, delete, show, list, and wait commands.
- Adds user-assigned managed identity assignment, removal, inspection, and wait commands.
- Adds scenarios covering policy lifecycle and binding policies to basic and advanced Application Gateway routing rules.
Paths below are relative to src/azure-cli/azure/cli/command_modules/network/.
| File | Description |
|---|---|
tests/latest/test_network_commands.py |
Adds lifecycle, identity, and gateway-binding scenarios. |
aaz/latest/network/authentication_policy/identity/_wait.py |
Waits for policy provisioning conditions after identity changes. |
aaz/latest/network/authentication_policy/identity/_show.py |
Displays policy managed identities. |
aaz/latest/network/authentication_policy/identity/_remove.py |
Removes user-assigned identities. |
aaz/latest/network/authentication_policy/identity/_assign.py |
Assigns user-assigned identities. |
aaz/latest/network/authentication_policy/identity/__init__.py |
Exports identity commands. |
aaz/latest/network/authentication_policy/identity/__cmd_group.py |
Registers the identity command subgroup. |
aaz/latest/network/authentication_policy/_wait.py |
Waits for policy resource conditions. |
aaz/latest/network/authentication_policy/_update.py |
Updates policy properties and supports generic updates. |
aaz/latest/network/authentication_policy/_show.py |
Retrieves a policy. |
aaz/latest/network/authentication_policy/_list.py |
Lists policies by resource group or subscription with pagination. |
aaz/latest/network/authentication_policy/_delete.py |
Deletes policies with confirmation and asynchronous support. |
aaz/latest/network/authentication_policy/_create.py |
Creates policies with authentication settings and optional identities. |
aaz/latest/network/authentication_policy/__init__.py |
Exports policy commands. |
aaz/latest/network/authentication_policy/__cmd_group.py |
Registers the authentication-policy command group. |
Review effort: Balanced
| value=instance, | ||
| typ=AAZIdentityObjectType | ||
| ) | ||
| _builder.set_prop("userAssigned", AAZListType, ".mi_user_assigned", typ_kwargs={"flags": {"action": "remove"}}) |
Jian Hui (huiii99)
force-pushed
the
network-feat-34269
branch
from
November 20, 2026 02:38
834d6a9 to
c86fd37
Compare
Ethan Yang (necusjz)
approved these changes
Nov 23, 2026
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.

🤖 PR Validation —⚠️ Review suggested
Related command
az network authentication-policy create/update/delete/show/list/waitaz network authentication-policy identity assign/remove/show/waitDescription
Resolve #34269
AAZ: Azure/aaz#1171
Add the new
az network authentication-policycommand group for theMicrosoft.Network/authenticationPoliciesresource (API version2026-01-01). It has CRUD, list (resource group and subscription), wait, and user-assigned identity management commands. An authentication policy can be bound to Application Gateway basic routing rules, the advanced routing map default, and advanced routing map rules through the existing--auth-configs/--default-auth-configsarguments.Testing Guide
Scenario tests (recorded live, then replayed):
test_network_authentication_policy: create/update/show/list/wait/delete, identity assign/show/remove.test_network_ag_authentication_policy: binds JWT and sign-in policies to a basic routing rule, the advanced routing map default and map rules; checks that deleting a policy in use fails; unbinds the policies withnull; then deletes them.History Notes
[Network]
az network authentication-policy: Add command group to support authentication policyThis 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.