Skip to content

Commit

Permalink
Updated the max value for HAReplicaCount parameter (#20752)
Browse files Browse the repository at this point in the history
* Updated the max value for HAReplicaCount parameter

* updated changelog

* Fixed help message
  • Loading branch information
rebeccaxu-ms authored Jan 28, 2023
1 parent c54c766 commit 1a06246
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ public class RestoreAzureRmSqlDatabase
/// Gets or sets the HA Replica Count option.
/// </summary>
[Parameter(Mandatory = false,
HelpMessage = "The HA Replica Count used to store backups for the SQL Database. Options are: 0, 1, 2.")]
[ValidateRange(0, 2)]
HelpMessage = "The HA Replica Count used to store backups for the SQL Database.")]
[ValidateRange(0, int.MaxValue)]
public int HAReplicaCount { get; set; }

/// <summary>
Expand Down
5 changes: 2 additions & 3 deletions src/Sql/Sql/help/Restore-AzSqlDatabase.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Accept wildcard characters: False
```
### -BackupStorageRedundancy
The Backup storage redundancy used to store backups for the SQL Database. Options are: Local, Zone and Geo.
The Backup storage redundancy used to store backups for the SQL Database. Options are: Local, Zone, Geo and GeoZone.
```yaml
Type: System.String
Expand Down Expand Up @@ -333,10 +333,9 @@ Accept wildcard characters: False
The high availability replica count to associate with the Azure Sql Database.
```yaml
Type: System.Management.Automation.SwitchParameter
Type: System.Int32
Parameter Sets: (All)
Aliases:
Accepted values: 0, 1, 2

Required: False
Position: Named
Expand Down

0 comments on commit 1a06246

Please sign in to comment.