Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,3 @@ def cf_capacity_reservations(cli_ctx, *_):

def cf_restore_point(cli_ctx, *_):
return cf_vm_cl(cli_ctx).restore_points


def cf_restore_point_collection(cli_ctx, *_):
return cf_vm_cl(cli_ctx).restore_point_collections
30 changes: 0 additions & 30 deletions src/azure-cli/azure/cli/command_modules/vm/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -3014,33 +3014,3 @@
text: |-
az restore-point collection show --resource-group "myResourceGroup" --collection-name "rpcName"
"""

helps['restore-point collection create'] = """
type: command
short-summary: "Create the restore point collection. Please refer to https://aka.ms/RestorePoints \
for more details. When updating a restore point collection, only tags may be modified."
examples:
- name: Create or update a restore point collection.
text: |-
az restore-point collection create --location "norwayeast" --source-id "/subscriptions/{subscription-id}\
/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" --tags myTag1="tagValue1" \
--resource-group "myResourceGroup" --collection-name "myRpc"
"""

helps['restore-point collection update'] = """
type: command
short-summary: "Update the restore point collection."
"""

helps['restore-point collection wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of the restore-point-collection is met.
parameters:
- name: --expand
short-summary: The expand expression to apply on the operation. If expand=restorePoints, server will return all
contained restore points in the restorePointCollection. "restorePoints" Default value is None.
examples:
- name: Pause executing next line of CLI script until the restore-point-collection is successfully deleted.
text: |-
az restore-point collection wait --resource-group "myResourceGroup" --collection-name "rpcName" --deleted
"""
10 changes: 0 additions & 10 deletions src/azure-cli/azure/cli/command_modules/vm/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,16 +1516,6 @@ def load_arguments(self, _):
# endRegion

# region Restore point collection
with self.argument_context('restore-point collection create') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False,
validator=get_default_location_from_resource_group)
c.argument('tags', tags_type)
c.argument('source_id', help='Resource Id of the source resource used to create this restore point collection',
arg_group='Source')

with self.argument_context('restore-point collection update') as c:
c.argument('tags', tags_type)

with self.argument_context('restore-point collection show') as c:
c.argument('expand', help='The expand expression to apply on the operation.',
deprecate_info=c.deprecate(hide=True))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._list_all import *
from ._show import *
from ._update import *
from ._wait import *
Loading