Skip to content

Commit d3bbc82

Browse files
committed
add warning
1 parent 1d062ee commit d3bbc82

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/azure-cli/azure/cli/command_modules/storage/commands.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,3 +957,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT
957957
g.storage_custom_command_oauth('set-recursive', 'set_access_control_recursive', min_api='2020-02-10')
958958
g.storage_custom_command_oauth('update-recursive', 'update_access_control_recursive', min_api='2020-02-10')
959959
g.storage_custom_command_oauth('remove-recursive', 'remove_access_control_recursive', min_api='2020-02-10')
960+
961+
with self.command_group('storage account migration'):
962+
from .operations.account import AccountMigrationStart
963+
self.command_table['storage account migration start'] = AccountMigrationStart(loader=self)

src/azure-cli/azure/cli/command_modules/storage/operations/account.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from azure.cli.command_modules.storage._client_factory import storage_client_factory, cf_sa_for_keys
1111
from azure.cli.core.util import get_file_json, shell_safe_json_parse, find_child_item, user_confirmation
1212
from azure.cli.core.profiles import ResourceType, get_sdk
13+
from ..aaz.latest.storage.account.migration._start import Start as _AccountMigrationStart
1314
from knack.log import get_logger
1415
from knack.util import CLIError
1516

@@ -1209,3 +1210,13 @@ def clear_blob_cors_rules(cmd, client, resource_group_name, account_name):
12091210
account_name=account_name,
12101211
parameters=blob_service_properties)
12111212
return []
1213+
1214+
1215+
class AccountMigrationStart(_AccountMigrationStart):
1216+
def pre_operations(self):
1217+
logger.warning('After your request to convert the account’s redundancy configuration is validated, the '
1218+
'conversion will typically complete in a few days, but can take a few weeks depending on '
1219+
'current resource demands in the region, account size, and other factors. The conversion can’t '
1220+
'be stopped after being initiated, and for accounts with geo redundancy a failover can’t be '
1221+
'initiated while conversion is in progress. The data within the storage account will continue '
1222+
'to be accessible with no loss of durability or availability.')

0 commit comments

Comments
 (0)