Skip to content

Commit c560815

Browse files
committed
--remote-volume-resource-id breaking
1 parent 6f7a202 commit c560815

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/azure-cli/azure/cli/command_modules/netappfiles/_breaking_change.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
5+
from azure.cli.core.breaking_change import register_argument_deprecate
6+
register_argument_deprecate('netappfiles volume update', '--remote-volume-resource-id')

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
410410
help="Name or Resource ID of the vnet. If you want to use a vnet in other resource group or subscription, please provide the Resource ID instead of the name of the vnet.",
411411
required=False,
412412
)
413-
413+
args_schema.remote_volume_resource_id = AAZStrArg(
414+
options=["--remote-volume-id", "--remote-volume-resource-id"],
415+
arg_group="Replication",
416+
help="The resource ID of the remote volume.",
417+
nullable=True,
418+
)
414419
args_schema.usage_threshold._fmt = AAZIntArgFormat(
415420
maximum=2457600,
416421
minimum=50

0 commit comments

Comments
 (0)