Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seligj95 committed Mar 7, 2025
1 parent 1c20fa6 commit 1cf9073
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def load_arguments(self, _):
with self.argument_context('webapp config backup') as c:
c.argument('storage_account_url', help='URL with SAS token to the blob storage container',
options_list=['--container-url'])
c.argument('webapp_name', help='The name of the web app',
c.argument('webapp_name', help='The name of the web app', options_list=['--webapp-name', '-n'],
local_context_attribute=LocalContextAttribute(name='web_name', actions=[LocalContextAction.GET]))
c.argument('db_name', help='Name of the database in the backup', arg_group='Database')
c.argument('db_connection_string', help='Connection string for the database in the backup',
Expand Down
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/appservice/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3296,10 +3296,10 @@ def update_backup_schedule(cmd, resource_group_name, webapp_name, storage_accoun

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

backup_schedule = BackupSchedule(frequency_interval=frequency_num, frequency_unit=frequency_unit.name,
backup_schedule = BackupSchedule(frequency_interval=frequency_num, frequency_unit=frequency_unit,
keep_at_least_one_backup=keep_at_least_one_backup,
retention_period_in_days=retention_period_in_days)
backup_request = BackupRequest(backup_request_name=backup_name, backup_schedule=backup_schedule,
backup_request = BackupRequest(backup_name=backup_name, backup_schedule=backup_schedule,
enabled=True, storage_account_url=storage_account_url,
databases=db_setting)
return _generic_site_operation(cmd.cli_ctx, resource_group_name, webapp_name, 'update_backup_configuration',
Expand Down

0 comments on commit 1cf9073

Please sign in to comment.