Skip to content

Commit ac03922

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

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

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)