Skip to content

Conversation

@bingosummer
Copy link
Member


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Copilot AI review requested due to automatic review settings October 30, 2025 06:54
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Oct 30, 2025

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@yonzhan
Copy link
Collaborator

yonzhan commented Oct 30, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

github-actions bot commented Oct 30, 2025

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the --azure-keyvault-kms-key-vault-network-access parameter was not being correctly applied during Azure Key Vault KMS configuration for AKS clusters. The version is bumped from 19.0.0b8 to 19.0.0b9.

  • Added the missing key_vault_network_access parameter to the AzureKeyVaultKms model initialization in both create and update decorators
  • Added comprehensive test coverage for both create and update scenarios with Public and Private network access
  • Updated integration tests to include the network access parameter

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/aks-preview/setup.py Version bump from 19.0.0b8 to 19.0.0b9
src/aks-preview/azext_aks_preview/managed_cluster_decorator.py Added key_vault_network_access parameter to AzureKeyVaultKms initialization in set_up_kms_pmk_and_cmk and update_kms_pmk_cmk methods
src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py Added unit tests for create/update scenarios with Public/Private network access
src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py Updated integration tests to include network access parameter in test commands
src/aks-preview/HISTORY.rst Added changelog entry for the bug fix

* `az aks machine update`: Add support for updating machine tags, node taints and node labels.
* Fix `az aks bastion` subshell defaulting to cmd on Windows when invoked from PowerShell by implementing grandparent process detection to identify the actual user shell.
* Fix `az aks bastion` subshell defaulting to cmd on Windows when invoked from PowerShell by implementing grandparent process detection to identify the actual user shell.
* `az aks update`: Fix `--azure-keyvault-kms-key-vault-network-access` parameter not being correctly applied during cluster creation and updates.
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog entry mentions 'az aks update' but the fix also applies to 'az aks create'. The entry should mention both commands for accuracy. Consider: 'az aks create and az aks update: Fix --azure-keyvault-kms-key-vault-network-access parameter not being correctly applied during cluster creation and updates.'

Suggested change
* `az aks update`: Fix `--azure-keyvault-kms-key-vault-network-access` parameter not being correctly applied during cluster creation and updates.
* `az aks create` and `az aks update`: Fix `--azure-keyvault-kms-key-vault-network-access` parameter not being correctly applied during cluster creation and updates.

Copilot uses AI. Check for mistakes.
Copy link
Member

@AbelHu AbelHu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the PR.

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

update_cmd = (
"aks update --resource-group={resource_group} --name={name} "
"--enable-azure-keyvault-kms --azure-keyvault-kms-key-id={key_id} "
"--azure-keyvault-kms-key-vault-network-access=Public "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Live test passed!

FumingZhang
FumingZhang previously approved these changes Oct 31, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 31, 2025

Please fix CI issues

@bingosummer bingosummer force-pushed the binxi/aks-kms-fix-network-access branch from c2968f9 to 1291854 Compare November 3, 2025 09:59
@github-actions github-actions bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Nov 3, 2025
@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

…ot being correctly applied during cluster creation and updates when PMK is enabled
@bingosummer bingosummer force-pushed the binxi/aks-kms-fix-network-access branch from 1291854 to 1a90eb6 Compare November 4, 2025 00:34
@github-actions github-actions bot removed the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Nov 4, 2025
@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@yanzhudd yanzhudd merged commit ce4786f into Azure:main Nov 4, 2025
25 checks passed
@azclibot
Copy link
Collaborator

azclibot commented Nov 4, 2025

[Release] Update index.json for extension [ aks-preview-19.0.0b10 ] : https://dev.azure.com/msazure/One/_build/results?buildId=142554597&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants