{AKS} az aks create/update: Update container network logs error message to mention portal enablement of ACNS#33299
Conversation
❌AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull request overview
Updates the AKS managed cluster decorator validation message shown when users enable container network logs (CNL) without meeting prerequisites, expanding the guidance beyond just the CLI flag.
Changes:
- Updated the
InvalidArgumentValueErrormessage for CNL prerequisite validation to mention enabling ACNS via portal or--enable-acns. - Reworded the message to be more descriptive about required services/addons.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "Container network logs require Advanced Container Networking Services to be enabled. " | ||
| "Activate this service through the portal or use the CLI with --enable-acns flag. " |
There was a problem hiding this comment.
The new error message introduces the term "Advanced Container Networking Services" for ACNS, but the rest of this command module’s help/params text expands ACNS as "Azure Container Networking Solution (ACNS)". To avoid user confusion, please align this message’s terminology with the existing ACNS naming (or update the other user-facing strings consistently in the same PR). Also consider saying "Azure portal" (consistent with other help strings) instead of the generic "portal".
| "Container network logs require Advanced Container Networking Services to be enabled. " | |
| "Activate this service through the portal or use the CLI with --enable-acns flag. " | |
| "Container network logs require Azure Container Networking Solution (ACNS) to be enabled. " | |
| "Activate this service through the Azure portal or use the CLI with --enable-acns flag. " |
az aks create/update: Update container network logs error message to mention portal enablement of ACNS
Related command
az aks create,az aks updateDescription
Updated the error message shown when a user tries to enable container network logs (CNL) without having Advanced Container Networking Services (ACNS) enabled. Previously, the message only referenced the
--enable-acnsCLI flag. Since ACNS can now also be enabled through the Azure portal, the error message has been updated to inform users of both options.New message:
Testing Guide
# Attempt to enable CNL without ACNS — should show updated error message az aks create -g myRG -n myCluster --network-plugin azure --network-plugin-mode overlay --network-dataplane cilium --enable-addons monitoring --enable-container-network-logsHistory Notes
[AKS]
az aks create/update: Update container network logs error message to mention portal enablement of ACNSThe 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.