Skip to content

Commit 1cf9073

Browse files
committed
fix
1 parent 1c20fa6 commit 1cf9073

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def load_arguments(self, _):
631631
with self.argument_context('webapp config backup') as c:
632632
c.argument('storage_account_url', help='URL with SAS token to the blob storage container',
633633
options_list=['--container-url'])
634-
c.argument('webapp_name', help='The name of the web app',
634+
c.argument('webapp_name', help='The name of the web app', options_list=['--webapp-name', '-n'],
635635
local_context_attribute=LocalContextAttribute(name='web_name', actions=[LocalContextAction.GET]))
636636
c.argument('db_name', help='Name of the database in the backup', arg_group='Database')
637637
c.argument('db_connection_string', help='Connection string for the database in the backup',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3296,10 +3296,10 @@ def update_backup_schedule(cmd, resource_group_name, webapp_name, storage_accoun
32963296

32973297
db_setting = _create_db_setting(cmd, db_name, db_type=db_type, db_connection_string=db_connection_string)
32983298

3299-
backup_schedule = BackupSchedule(frequency_interval=frequency_num, frequency_unit=frequency_unit.name,
3299+
backup_schedule = BackupSchedule(frequency_interval=frequency_num, frequency_unit=frequency_unit,
33003300
keep_at_least_one_backup=keep_at_least_one_backup,
33013301
retention_period_in_days=retention_period_in_days)
3302-
backup_request = BackupRequest(backup_request_name=backup_name, backup_schedule=backup_schedule,
3302+
backup_request = BackupRequest(backup_name=backup_name, backup_schedule=backup_schedule,
33033303
enabled=True, storage_account_url=storage_account_url,
33043304
databases=db_setting)
33053305
return _generic_site_operation(cmd.cli_ctx, resource_group_name, webapp_name, 'update_backup_configuration',

0 commit comments

Comments
 (0)