Skip to content

Commit 5236eb7

Browse files
authored
{Compute} az vmss run-command: Migrate to AAZ (#32178)
1 parent 60e7765 commit 5236eb7

File tree

16 files changed

+3987
-933
lines changed

16 files changed

+3987
-933
lines changed

src/azure-cli/azure/cli/command_modules/vm/_client_factory.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ def cf_images(cli_ctx, _):
6767
return _compute_client_factory(cli_ctx).images
6868

6969

70-
def cf_vmss_run_commands(cli_ctx, _):
71-
return _compute_client_factory(cli_ctx).virtual_machine_scale_set_vm_run_commands
72-
73-
7470
def cf_rolling_upgrade_commands(cli_ctx, _):
7571
return _compute_client_factory(cli_ctx).virtual_machine_scale_set_rolling_upgrades
7672

src/azure-cli/azure/cli/command_modules/vm/_help.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2726,25 +2726,6 @@
27262726
--run-command-name "myRunCommand" --vmss-name "myVMSS"
27272727
"""
27282728

2729-
helps['vmss run-command delete'] = """
2730-
type: command
2731-
short-summary: "The operation to delete the run command."
2732-
examples:
2733-
- name: The operation to delete the VMSS run command..
2734-
text: |-
2735-
az vmss run-command delete --resource-group "myResourceGroup" --instance-id "0" --run-command-name \
2736-
"myRunCommand" --vmss-name "myVMSS"
2737-
"""
2738-
2739-
helps['vmss run-command list'] = """
2740-
type: command
2741-
short-summary: "The operation to get all run commands of an instance in Virtual Machine Scaleset."
2742-
examples:
2743-
- name: List run commands in Vmss instance.
2744-
text: |-
2745-
az vmss run-command list --resource-group "myResourceGroup" --vmss-name "myVMSS" --instance-id "0"
2746-
"""
2747-
27482729
helps['vmss run-command show'] = """
27492730
type: command
27502731
short-summary: "The operation to get the VMSS run command."
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
#
5+
# Code generated by aaz-dev-tools
6+
# --------------------------------------------------------------------------------------------
7+
8+
# pylint: skip-file
9+
# flake8: noqa
10+
11+
from azure.cli.core.aaz import *
12+
13+
14+
@register_command_group(
15+
"vmss run-command",
16+
)
17+
class __CMDGroup(AAZCommandGroup):
18+
"""Manage Run Command
19+
"""
20+
pass
21+
22+
23+
__all__ = ["__CMDGroup"]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
#
5+
# Code generated by aaz-dev-tools
6+
# --------------------------------------------------------------------------------------------
7+
8+
# pylint: skip-file
9+
# flake8: noqa
10+
11+
from .__cmd_group import *
12+
from ._create import *
13+
from ._delete import *
14+
from ._invoke import *
15+
from ._list import *
16+
from ._show import *
17+
from ._update import *
18+
from ._wait import *

0 commit comments

Comments
 (0)