10
10
cf_snapshots ,
11
11
cf_trustedaccess_role ,
12
12
cf_trustedaccess_role_binding ,
13
+ cf_machines
13
14
)
14
15
from azure .cli .command_modules .acs ._format import (
15
16
aks_agentpool_list_table_format ,
23
24
aks_versions_table_format ,
24
25
aks_mesh_revisions_table_format ,
25
26
aks_mesh_upgrades_table_format ,
27
+ aks_machine_list_table_format ,
28
+ aks_machine_show_table_format ,
26
29
)
27
30
from azure .cli .core .commands import CliCommandType
28
31
from azure .cli .core .profiles import ResourceType
@@ -48,6 +51,12 @@ def load_command_table(self, _):
48
51
client_factory = cf_managed_clusters
49
52
)
50
53
54
+ machines_sdk = CliCommandType (
55
+ operations_tmpl = 'azext_aks_preview.vendored_sdks.azure_mgmt_preview_aks.'
56
+ 'operations._machine_operations#MachinesOperations.{}' ,
57
+ client_factory = cf_managed_clusters
58
+ )
59
+
51
60
maintenance_configuration_sdk = CliCommandType (
52
61
operations_tmpl = 'aazure.mgmt.containerservice.operations.'
53
62
'_maintenance_configurations_operations#MaintenanceConfigurationsOperations.{}' ,
@@ -110,6 +119,12 @@ def load_command_table(self, _):
110
119
g .custom_command ('get-versions' , 'aks_get_versions' ,
111
120
table_transformer = aks_versions_table_format )
112
121
122
+ with self .command_group ('aks machine' , machines_sdk , client_factory = cf_machines ) as g :
123
+ g .custom_command ('list' , 'aks_machine_list' ,
124
+ table_transformer = aks_machine_list_table_format )
125
+ g .custom_show_command ('show' , 'aks_machine_show' ,
126
+ table_transformer = aks_machine_show_table_format )
127
+
113
128
# AKS maintenance configuration commands
114
129
with self .command_group ('aks maintenanceconfiguration' , maintenance_configuration_sdk , client_factory = cf_maintenance_configurations ) as g :
115
130
g .custom_command ('list' , 'aks_maintenanceconfiguration_list' )
0 commit comments