Skip to content

Commit 14f0abe

Browse files
committed
remove custom code of delete command
1 parent ac286ec commit 14f0abe

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2726,16 +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-
27392729
helps['vmss run-command list'] = """
27402730
type: command
27412731
short-summary: "The operation to get all run commands of an instance in Virtual Machine Scaleset."

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,10 +953,6 @@ def load_arguments(self, _):
953953
c.argument('output_blob_uri', help='Specify the Azure storage blob (SAS URI) where script output stream will be uploaded.')
954954
c.argument('error_blob_uri', help='Specify the Azure storage blob where script error stream will be uploaded.')
955955

956-
with self.argument_context('vm run-command delete') as c:
957-
c.argument('vm_name', run_cmd_vm_name)
958-
c.argument('run_command_name', run_cmd_name_type)
959-
960956
with self.argument_context('vm run-command list') as c:
961957
c.argument('vm_name', run_cmd_vm_name, id_part=None)
962958
c.argument('expand', help='The expand expression to apply on the operation.')

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,20 +2933,6 @@ def pre_instance_update(self, instance):
29332933
return LongRunningOperation(cmd.cli_ctx)(Update(cli_ctx=cmd.cli_ctx)(command_args=args))
29342934

29352935

2936-
def vm_run_command_delete(cmd,
2937-
resource_group_name,
2938-
vm_name,
2939-
run_command_name,
2940-
no_wait=False):
2941-
from .aaz.latest.vm.run_command import Delete
2942-
return LongRunningOperation(cmd.cli_ctx)(Delete(cli_ctx=cmd.cli_ctx)(command_args={
2943-
"resource_group": resource_group_name,
2944-
"vm_name": vm_name,
2945-
"run_command_name": run_command_name,
2946-
"no_wait": no_wait
2947-
}))
2948-
2949-
29502936
def vm_run_command_list(cmd,
29512937
resource_group_name=None,
29522938
vm_name=None,

0 commit comments

Comments
 (0)