33# Licensed under the MIT License. See License.txt in the project root for license information.
44# --------------------------------------------------------------------------------------------
55
6-
76def _resource_client_factory (cli_ctx , ** _ ):
87 from azure .cli .core .commands .client_factory import get_mgmt_service_client
98 from azure .cli .core .profiles import ResourceType
109 return get_mgmt_service_client (cli_ctx , ResourceType .MGMT_RESOURCE_RESOURCES )
1110
1211
12+ def _resource_deployments_client_factory (cli_ctx , ** _ ):
13+ from azure .cli .core .commands .client_factory import get_mgmt_service_client
14+ from azure .cli .core .profiles import ResourceType
15+ return get_mgmt_service_client (cli_ctx , ResourceType .MGMT_RESOURCE_RESOURCES )
16+
17+
1318def _resource_feature_client_factory (cli_ctx , ** _ ):
1419 from azure .cli .core .commands .client_factory import get_mgmt_service_client
1520 from azure .cli .core .profiles import ResourceType
@@ -76,7 +81,7 @@ def _resource_privatelinks_client_factory(cli_ctx, **_):
7681 return get_mgmt_service_client (cli_ctx , ResourceType .MGMT_RESOURCE_PRIVATELINKS )
7782
7883
79- def cf_resource_groups (cli_ctx , _ ):
84+ def cf_resource_groups (cli_ctx , * _ ):
8085 return _resource_client_factory (cli_ctx ).resource_groups
8186
8287
@@ -92,12 +97,16 @@ def cf_tags(cli_ctx, _):
9297 return _resource_client_factory (cli_ctx ).tags
9398
9499
95- def cf_deployments (cli_ctx , _ ):
96- return _resource_client_factory (cli_ctx ).deployments
100+ def cf_deployments (cli_ctx , * _ ):
101+ return _resource_deployments_client_factory (cli_ctx ).deployments
97102
98103
99- def cf_deployment_operations (cli_ctx , _ ):
100- return _resource_client_factory (cli_ctx ).deployment_operations
104+ def cf_deployment_operations (cli_ctx , * _ ):
105+ return _resource_deployments_client_factory (cli_ctx ).deployment_operations
106+
107+
108+ def cf_deploymentscripts (cli_ctx , * _ ):
109+ return _resource_deploymentscripts_client_factory (cli_ctx ).deployment_scripts
101110
102111
103112def cf_features (cli_ctx , _ ):
@@ -128,10 +137,6 @@ def cf_resource_links(cli_ctx, _):
128137 return _resource_links_client_factory (cli_ctx ).resource_links
129138
130139
131- def cf_resource_deploymentscripts (cli_ctx , _ ):
132- return _resource_deploymentscripts_client_factory (cli_ctx ).deployment_scripts
133-
134-
135140def cf_resource_managedapplications (cli_ctx , _ ):
136141 return _resource_managedapps_client_factory (cli_ctx ).applications
137142
@@ -160,11 +165,11 @@ def cf_hierarchy_settings(cli_ctx, _):
160165 return _resource_managementgroups_client_factory (cli_ctx ).hierarchy_settings
161166
162167
163- def cf_resource_templatespecs (cli_ctx , _ ):
168+ def cf_resource_templatespecs (cli_ctx , * _ ):
164169 return _resource_templatespecs_client_factory (cli_ctx ).template_specs
165170
166171
167- def cf_resource_deploymentstacks (cli_ctx , _ ):
172+ def cf_resource_deploymentstacks (cli_ctx , * _ ):
168173 return _resource_deploymentstacks_client_factory (cli_ctx ).deployment_stacks
169174
170175
0 commit comments