-
Notifications
You must be signed in to change notification settings - Fork 1.6k
az aks bastion does not open the expected subshell #9060
Copy link
Copy link
Closed
Labels
AKSAuto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
AKSAuto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
When running the
az aks bastion ...from PowerShell 7 on Windows 11 (via Windows Terminal) command we end up withLaunching subshell with command 'cmd.exe'.
Based on the logic here
azure-cli-extensions/src/aks-preview/azext_aks_preview/bastion/bastion.py
Lines 237 to 242 in ecb6680
Related command
az aks bastion --name xx --resource-group yyy --bastion zzErrors
No error
Issue script & Debug output
Not relevant
Expected behavior
Would expect the subshell launched to be of type pwsh.exe
Environment Summary
azure-cli 2.75.0 *
core 2.75.0 *
telemetry 1.1.0
Extensions:
aks-preview 18.0.0b26
bastion 1.4.0
ssh 2.0.6
Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\xxx.azure'
Extensions directory 'C:\Users\xxx.azure\cliextensions'
Python (Windows) 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
Additional context
No response