Skip to content

Commit 1a06246

Browse files
authored
Updated the max value for HAReplicaCount parameter (#20752)
* Updated the max value for HAReplicaCount parameter * updated changelog * Fixed help message
1 parent c54c766 commit 1a06246

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Sql/Sql/Database Backup/Cmdlet/RestoreAzureRMSqlDatabase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ public class RestoreAzureRmSqlDatabase
284284
/// Gets or sets the HA Replica Count option.
285285
/// </summary>
286286
[Parameter(Mandatory = false,
287-
HelpMessage = "The HA Replica Count used to store backups for the SQL Database. Options are: 0, 1, 2.")]
288-
[ValidateRange(0, 2)]
287+
HelpMessage = "The HA Replica Count used to store backups for the SQL Database.")]
288+
[ValidateRange(0, int.MaxValue)]
289289
public int HAReplicaCount { get; set; }
290290

291291
/// <summary>

src/Sql/Sql/help/Restore-AzSqlDatabase.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Accept wildcard characters: False
155155
```
156156
157157
### -BackupStorageRedundancy
158-
The Backup storage redundancy used to store backups for the SQL Database. Options are: Local, Zone and Geo.
158+
The Backup storage redundancy used to store backups for the SQL Database. Options are: Local, Zone, Geo and GeoZone.
159159
160160
```yaml
161161
Type: System.String
@@ -333,10 +333,9 @@ Accept wildcard characters: False
333333
The high availability replica count to associate with the Azure Sql Database.
334334
335335
```yaml
336-
Type: System.Management.Automation.SwitchParameter
336+
Type: System.Int32
337337
Parameter Sets: (All)
338338
Aliases:
339-
Accepted values: 0, 1, 2
340339

341340
Required: False
342341
Position: Named

0 commit comments

Comments
 (0)