Skip to content

Warning for --ssh-access disabled should only show when --generate-ssh-keys is not explicitly configured. #9423

@tdihp

Description

@tdihp

Describe the bug

As titled. Customers opting to use ssh key should not be warned with this.

Related command

az aks create --generate-ssh-keys

Errors

n/a

Issue script & Debug output

n/a

Expected behavior

now showing the line

The new node pool will enable SSH access, recommended to use '--ssh-access disabled' option to disable SSH access for the node pool to make it more secure.

Environment Summary

azure-cli 2.78.0 *

core 2.78.0 *
telemetry 1.1.0

Extensions:
aks-preview 19.0.0b16
azure-iot-ops 0.4.0b3
k8s-configuration 2.0.0
k8s-extension 1.6.1
resource-graph 2.1.0

Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0

Python location '/opt/az/bin/python3'
Config directory '/home/ubuntu/.azure'
Extensions directory '/home/ubuntu/.azure/cliextensions'

Python (Linux) 3.13.7 (main, Oct 9 2025, 05:49:51) [GCC 11.4.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AKSAuto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions