Skip to content

Commit 6ba0cb5

Browse files
subhrobsubhrob
andauthored
Added Standby option to SecondaryType parameter to New-AzSqlDatabaseSecondary (Azure#19742)
* Added Standby option to SecondaryType parameter to New-AzSqlDatabaseSecondary to support creation of standby geo * Updated help doc for New-AzSqlDatabaseSecondary Co-authored-by: subhrob <[email protected]>
1 parent f716d78 commit 6ba0cb5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Sql/Sql/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* Changed the returned object for the following cmdlets: `Get-AzSqlServerAdvancedThreatProtectionSetting` and `Get-AzSqlDatabaseAdvancedThreatProtectionSetting`
2828
* Changed the parameters for the following cmdlets: `Update-AzSqlServerAdvancedThreatProtectionSetting` and `Update-AzSqlDatabaseAdvancedThreatProtectionSetting`. Only `Enable` parameter is now supported.
2929
* Changed endpoint used in SQL Server and SQL Instance from AD Graph to MS Graph
30+
* Added `Standby` option to `SecondaryType` parameter to `New-AzSqlDatabaseSecondary`.
3031

3132
## Version 3.11.0
3233
* Removed the warning messages for MSGraph migration [#18856]

src/Sql/Sql/Replication/Cmdlet/NewAzureSqlDatabaseSecondary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ public class NewAzureSqlDatabaseSecondary : AzureSqlDatabaseSecondaryCmdletBase
160160
/// Gets or sets the secondary type for the database if it is a secondary.
161161
/// </summary>
162162
[Parameter(Mandatory = false,
163-
HelpMessage = "The secondary type of the database if it is a secondary. Valid values are Geo and Named.")]
164-
[ValidateSet("Named", "Geo")]
163+
HelpMessage = "The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby.")]
164+
[ValidateSet("Named", "Geo", "Standby")]
165165
public string SecondaryType { get; set; }
166166

167167
/// <summary>

src/Sql/Sql/help/New-AzSqlDatabaseSecondary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ The secondary type of the database if it is a secondary. Valid values are Geo a
276276
Type: System.String
277277
Parameter Sets: (All)
278278
Aliases:
279-
Accepted values: Named, Geo
279+
Accepted values: Named, Geo, Standby
280280

281281
Required: False
282282
Position: Named

0 commit comments

Comments
 (0)