Skip to content

Updated the max value for HAReplicaCount parameter #20752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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