Skip to content

Commit 62de610

Browse files
author
Nicholas King
committed
Moved switch parameters to end positions
1 parent 5f81534 commit 62de610

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/ResourceManager/Websites/Commands.Websites/Cmdlets/BackupRestore/EditAzureWebAppBackupConfiguration.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ public class EditAzureWebAppBackupConfiguration : WebAppOptionalSlotBaseCmdlet
4949
[Parameter(Position = 7, Mandatory = false, HelpMessage = "The time when the automatic backups should begin. Backups will begin immediately if this is null.", ValueFromPipelineByPropertyName = true)]
5050
public DateTime StartTime { get; set; }
5151

52-
[Parameter(Position = 8, Mandatory = false, HelpMessage = "True if one backup should always be kept in the storage account, regardless of how old it is.", ValueFromPipelineByPropertyName = true)]
53-
public SwitchParameter KeepAtLeastOneBackup { get; set; }
54-
55-
[Parameter(Position = 9, Mandatory = false, HelpMessage = "The databases to backup.", ValueFromPipelineByPropertyName = true)]
52+
[Parameter(Position = 8, Mandatory = false, HelpMessage = "The databases to backup.", ValueFromPipelineByPropertyName = true)]
5653
public DatabaseBackupSetting[] Databases;
5754

55+
[Parameter(Position = 9, Mandatory = false, HelpMessage = "True if one backup should always be kept in the storage account, regardless of how old it is.", ValueFromPipelineByPropertyName = true)]
56+
public SwitchParameter KeepAtLeastOneBackup { get; set; }
57+
5858
public override void ExecuteCmdlet()
5959
{
6060
base.ExecuteCmdlet();

src/ResourceManager/Websites/Commands.Websites/Cmdlets/BackupRestore/RestoreAzureWebAppBackup.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public class RestoreAzureWebAppBackup : WebAppOptionalSlotBaseCmdlet
3434
[ValidateNotNullOrEmpty]
3535
public string BlobName;
3636

37-
[Parameter(Position = 5, Mandatory = false, HelpMessage = "If specified, an existing web app will be overwritten by the contents of the backup.", ValueFromPipelineByPropertyName = true)]
37+
[Parameter(Position = 5, Mandatory = false, HelpMessage = "The databases to restore. Must match the list of databases in the backup.", ValueFromPipelineByPropertyName = true)]
38+
public DatabaseBackupSetting[] Databases { get; set; }
39+
40+
[Parameter(Position = 6, Mandatory = false, HelpMessage = "If specified, an existing web app will be overwritten by the contents of the backup.", ValueFromPipelineByPropertyName = true)]
3841
public SwitchParameter Overwrite;
3942

40-
[Parameter(Position = 6, Mandatory = false, HelpMessage = "If specified, custom domains are removed automatically during restore. Otherwise, custom domains are added to the site object when it is being restored, but the restore might fail due to conflicts.", ValueFromPipelineByPropertyName = true)]
43+
[Parameter(Position = 7, Mandatory = false, HelpMessage = "If specified, custom domains are removed automatically during restore. Otherwise, custom domains are added to the site object when it is being restored, but the restore might fail due to conflicts.", ValueFromPipelineByPropertyName = true)]
4144
public SwitchParameter IgnoreConflictingHostNames { get; set; }
4245

43-
[Parameter(Position = 7, Mandatory = false, HelpMessage = "The databases to restore. Must match the list of databases in the backup.", ValueFromPipelineByPropertyName = true)]
44-
public DatabaseBackupSetting[] Databases { get; set; }
45-
4646
public override void ExecuteCmdlet()
4747
{
4848
base.ExecuteCmdlet();

0 commit comments

Comments
 (0)