Skip to content

[AKS] az aks nodepool add/update: Add parameter --localdns-config to config local dns profile for the nodepool#32392

Merged
yanzhudd merged 5 commits intoAzure:devfrom
nirnaymsft:nirnayba/localdns-profile-feature
Nov 10, 2025
Merged

[AKS] az aks nodepool add/update: Add parameter --localdns-config to config local dns profile for the nodepool#32392
yanzhudd merged 5 commits intoAzure:devfrom
nirnaymsft:nirnayba/localdns-profile-feature

Conversation

@nirnaymsft
Copy link
Contributor

@nirnaymsft nirnaymsft commented Nov 6, 2025

This PR adds option --localdns-config to config local dns profile for the nodepool at az aks nodepool add/update cli

Changes

  • Added localdns profile configuration support to AKS nodepool commands
  • Implemented validation for localdns configuration parameters
  • Added comprehensive test coverage for the new functionality
  • Updated help documentation and parameter definitions

Testing

  • Added unit tests for localdns profile validation
  • Added integration tests for nodepool operations with localdns configuration
  • All existing tests continue to pass

Copilot AI review requested due to automatic review settings November 6, 2025 03:40
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 6, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link

Hi @nirnaymsft,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 6, 2025

❌AzureCLI-BreakingChangeTest
❌acs
rule cmd_name rule_message suggest_message
1010 - ParaPropUpdate aks nodepool add cmd aks nodepool add update parameter spot_max_price: updated property default from nan to nan please change property default from nan to nan for parameter spot_max_price of cmd aks nodepool add
⚠️ 1006 - ParaAdd aks nodepool add cmd aks nodepool add added parameter localdns_config
⚠️ 1006 - ParaAdd aks nodepool update cmd aks nodepool update added parameter localdns_config

Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:

  • Breaking changes can only be merged during the designated breaking change window
  • A pre-announcement must be released at least one month in advance

For more details on how to introduce breaking changes, refer to the documentation: azure-cli/doc/how_to_introduce_breaking_changes.md

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 6, 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 Nov 6, 2025

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>

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

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 adds comprehensive test coverage for local DNS profile configuration in AKS node pools, including both valid and invalid configuration scenarios. The changes include removing extraneous blank lines from existing test files and adding new test files for local DNS profile functionality.

Key Changes

  • Added new test file test_localdns_profile.py with unit tests for local DNS profile parsing and validation
  • Added extensive integration tests in test_aks_commands.py covering various local DNS configuration scenarios (valid/invalid modes, DNS overrides, updates)
  • Added test data files for different local DNS configuration scenarios
  • Removed trailing blank lines from test files for consistency

Reviewed Changes

Copilot reviewed 34 out of 43 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test_managed_cluster_decorator.py Removed extraneous blank lines
test_localdns_profile.py New test file with unit tests for local DNS profile configuration parsing
test_aks_commands.py Added 1400+ lines of integration tests for local DNS profile functionality
test_agentpool_decorator.py Removed blank lines and added unit tests for local DNS profile update methods
test_aks_nodepool_update_localdns_required_to_localdnsconfig_with_extra_property_in_dnsOverrides.yaml New test recording file
required_mode_with_valid_vnetdns.json Test data for valid vnet DNS override configuration
required_mode_with_valid_kubedns.json Test data for valid kube DNS override configuration
required_mode_partial_invalid.json Test data for invalid partial DNS override configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nirnaymsft nirnaymsft changed the title Adding localdns profile to az aks nodepool cli [AKS] Adding localdns profile to az aks nodepool cli Nov 6, 2025
- Clean up test files and recordings
- Fix whitespace and formatting in source files
- Remove unused test data files and recordings
- Update test files to meet style requirements
@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@nirnaymsft nirnaymsft changed the title [AKS] Adding localdns profile to az aks nodepool cli [AKS] Adding localdns profile to 'az aks nodepool' cli Nov 7, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 7, 2025

Please fix CI issues

@nirnaymsft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 32392 in repo Azure/azure-cli

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 8, 2025

Please fix CI issues

@nirnaymsft nirnaymsft changed the title [AKS] Adding localdns profile to 'az aks nodepool' cli [AKS] Adding localdns profile to 'az aks nodepool' Nov 8, 2025
@nirnaymsft
Copy link
Contributor Author

Please fix CI issues

@yonzhan Fixed the PR Title. Can you please retrigger the check.

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@nirnaymsft nirnaymsft changed the title [AKS] Adding localdns profile to 'az aks nodepool' [AKS] Adding localdns profile to az aks nodepool Nov 9, 2025
@nirnaymsft
Copy link
Contributor Author

@FumingZhang, @yonzhan Can you trigger "Azure.azure-cli (Check the Format of Pull Request Title and Content)" again.

@FumingZhang
Copy link
Member

please follow the guidance to rename your PR title to something like [AKS] `az aks nodepool add/update`: Add option `--localdns-config` to config local dns profile for the nodepool. Alternatively, if you’d like to provide more details about the new feature in the azure-cli release history, please use the same format and add additional notes to the PR description under the ‘History Notes’ section @nirnaymsft

@nirnaymsft nirnaymsft changed the title [AKS] Adding localdns profile to az aks nodepool [AKS] az aks nodepool add/update: Add option --localdns-config to config local dns profile for the nodepool Nov 9, 2025
@nirnaymsft
Copy link
Contributor Author

@FumingZhang Changed. Thank you.

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd yanzhudd changed the title [AKS] az aks nodepool add/update: Add option --localdns-config to config local dns profile for the nodepool [AKS] az aks nodepool add/update: Add parameter --localdns-config to config local dns profile for the nodepool Nov 10, 2025
@yanzhudd yanzhudd merged commit 473446f into Azure:dev Nov 10, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AKS az aks/acs/openshift Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants