Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/aks-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ To release a new version, please select a new version number (usually plus 1 to
Pending
+++++++

18.0.0b25
+++++++
* Update for `az aks machine show` and `az aks machine list` to show more details about the machine.

18.0.0b24
+++++++
* Suppress the ssh access annoying message if the cluster sku name is automatic.
Expand Down
16 changes: 12 additions & 4 deletions src/aks-preview/azext_aks_preview/_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,18 @@ def parser(entry):
entry["ipv4"] = ipv4_addresses
entry["ipv6"] = ipv6_addresses
parsed = compile_jmes("""{
name: name,
ipv4: ipv4,
ipv6: ipv6
}""")
name: name,
zones: zones,
ipv4: ipv4,
ipv6: ipv6,
nodeImageVersion: nodeImageVersion,
provisioningState: provisioningState,
orchestratorVersion: orchestratorVersion,
currentOrchestratorVersion: currentOrchestratorVersion,
vmSize: vmSize,
priority: priority,
mode: mode
}""")
return parsed.search(entry, Options(dict_cls=OrderedDict))
return parser(result)

Expand Down
18 changes: 9 additions & 9 deletions src/aks-preview/azext_aks_preview/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -2372,22 +2372,22 @@

helps['aks machine list'] = """
type: command
short-summary: Get information about IP Addresses, Hostname for all machines in an agentpool
short-summary: List the details for all machines in an agentpool
parameters:
- name: --cluster-name
type: string
short-summary: Name of the managed cluster
- name: --nodepool-name
type: string
short-summary: Name of the agentpool of a managed cluster
exmaples:
- name: Get information about IP Addresses, Hostname for all machines in an agentpool
text: az aks machine list --cluster-name <clusterName> --nodepool-name <apName>
examples:
- name: List the details for all machines in an agentpool
text: az aks machine list --resource-group <resourceGroupName> --cluster-name <clusterName> --nodepool-name <apName>
"""

helps['aks machine show'] = """
type: command
short-summary: Show IP Addresses, Hostname for a specific machine in an agentpool for a managedcluster.
short-summary: Show the details of a specific machine in an agentpool of a managedcluster.
parameters:
- name: --cluster-name
type: string
Expand All @@ -2397,10 +2397,10 @@
short-summary: Name of the agentpool of a managed cluster
- name: --machine-name
type: string
short-summary: Get IP Addresses, Hostname for a specific machine in an agentpool
exmaples:
- name: Get IP Addresses, Hostname for a specific machine in an agentpool
text: az aks machine show --cluster-name <clusterName> --nodepool-name <apName> --machine-name <machineName>
short-summary: Name of the machine
examples:
- name: Show the details of a specific machine in an agentpool of a managedcluster.
text: az aks machine show --resource-group <resourceGroupName> --cluster-name <clusterName> --nodepool-name <apName> --machine-name <machineName>
"""

helps['aks operation'] = """
Expand Down
Loading
Loading