File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 19
19
-->
20
20
## Upcoming Release
21
21
* Added support for database ReadReplicaCount.
22
+ * Fixed Set-AzSqlDatabase when zone redundancy not set
22
23
23
24
## Version 2.0.0
24
25
* Added support for restore of dropped databases on Managed Instances.
Original file line number Diff line number Diff line change @@ -262,10 +262,7 @@ protected override IEnumerable<AzureSqlDatabaseModel> ApplyUserInputToModel(IEnu
262
262
ElasticPoolName = ElasticPoolName ,
263
263
Location = model . FirstOrDefault ( ) . Location ,
264
264
ReadScale = ReadScale ,
265
- ZoneRedundant =
266
- ZoneRedundant != null
267
- ? ( bool ? ) ZoneRedundant . ToBool ( )
268
- : null ,
265
+ ZoneRedundant = MyInvocation . BoundParameters . ContainsKey ( "ZoneRedundant" ) ? ( bool ? ) ZoneRedundant . ToBool ( ) : null ,
269
266
LicenseType = LicenseType ?? model . FirstOrDefault ( ) . LicenseType , // set to original license type
270
267
AutoPauseDelayInMinutes = this . IsParameterBound ( p => p . AutoPauseDelayInMinutes ) ? AutoPauseDelayInMinutes : ( int ? ) null ,
271
268
MinimumCapacity = this . IsParameterBound ( p => p . MinimumCapacity ) ? MinimumCapacity : ( double ? ) null ,
You can’t perform that action at this time.
0 commit comments