Skip to content

Commit e264092

Browse files
[AKS] az aks machine show/list: Show more details (#9040)
1 parent 54368f7 commit e264092

File tree

6 files changed

+543
-439
lines changed

6 files changed

+543
-439
lines changed

src/aks-preview/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ To release a new version, please select a new version number (usually plus 1 to
1212
Pending
1313
+++++++
1414

15+
18.0.0b25
16+
+++++++
17+
* Update for `az aks machine show` and `az aks machine list` to show more details about the machine.
18+
1519
18.0.0b24
1620
+++++++
1721
* Suppress the ssh access annoying message if the cluster sku name is automatic.

src/aks-preview/azext_aks_preview/_format.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,18 @@ def parser(entry):
6262
entry["ipv4"] = ipv4_addresses
6363
entry["ipv6"] = ipv6_addresses
6464
parsed = compile_jmes("""{
65-
name: name,
66-
ipv4: ipv4,
67-
ipv6: ipv6
68-
}""")
65+
name: name,
66+
zones: zones,
67+
ipv4: ipv4,
68+
ipv6: ipv6,
69+
nodeImageVersion: nodeImageVersion,
70+
provisioningState: provisioningState,
71+
orchestratorVersion: orchestratorVersion,
72+
currentOrchestratorVersion: currentOrchestratorVersion,
73+
vmSize: vmSize,
74+
priority: priority,
75+
mode: mode
76+
}""")
6977
return parsed.search(entry, Options(dict_cls=OrderedDict))
7078
return parser(result)
7179

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,22 +2372,22 @@
23722372

23732373
helps['aks machine list'] = """
23742374
type: command
2375-
short-summary: Get information about IP Addresses, Hostname for all machines in an agentpool
2375+
short-summary: List the details for all machines in an agentpool
23762376
parameters:
23772377
- name: --cluster-name
23782378
type: string
23792379
short-summary: Name of the managed cluster
23802380
- name: --nodepool-name
23812381
type: string
23822382
short-summary: Name of the agentpool of a managed cluster
2383-
exmaples:
2384-
- name: Get information about IP Addresses, Hostname for all machines in an agentpool
2385-
text: az aks machine list --cluster-name <clusterName> --nodepool-name <apName>
2383+
examples:
2384+
- name: List the details for all machines in an agentpool
2385+
text: az aks machine list --resource-group <resourceGroupName> --cluster-name <clusterName> --nodepool-name <apName>
23862386
"""
23872387

23882388
helps['aks machine show'] = """
23892389
type: command
2390-
short-summary: Show IP Addresses, Hostname for a specific machine in an agentpool for a managedcluster.
2390+
short-summary: Show the details of a specific machine in an agentpool of a managedcluster.
23912391
parameters:
23922392
- name: --cluster-name
23932393
type: string
@@ -2397,10 +2397,10 @@
23972397
short-summary: Name of the agentpool of a managed cluster
23982398
- name: --machine-name
23992399
type: string
2400-
short-summary: Get IP Addresses, Hostname for a specific machine in an agentpool
2401-
exmaples:
2402-
- name: Get IP Addresses, Hostname for a specific machine in an agentpool
2403-
text: az aks machine show --cluster-name <clusterName> --nodepool-name <apName> --machine-name <machineName>
2400+
short-summary: Name of the machine
2401+
examples:
2402+
- name: Show the details of a specific machine in an agentpool of a managedcluster.
2403+
text: az aks machine show --resource-group <resourceGroupName> --cluster-name <clusterName> --nodepool-name <apName> --machine-name <machineName>
24042404
"""
24052405

24062406
helps['aks operation'] = """

0 commit comments

Comments
 (0)