Skip to content

Commit cd1a60a

Browse files
committed
use false to fix autopause,autoscale null issue
1 parent 94dbd6d commit cd1a60a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Synapse/Synapse/Commands/ManagementCommands/SparkPool/NewAzureSynapseSparkPool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ public override void ExecuteCmdlet()
178178
NodeCount = this.enableAutoScale ? (int?) null : this.NodeCount,
179179
NodeSizeFamily = NodeSizeFamily.MemoryOptimized,
180180
NodeSize = NodeSize,
181-
AutoScale = !this.enableAutoScale ? null : new AutoScaleProperties
181+
AutoScale = !this.enableAutoScale ? new AutoScaleProperties { Enabled = false } : new AutoScaleProperties
182182
{
183183
Enabled = this.enableAutoScale,
184184
MinNodeCount = AutoScaleMinNodeCount,
185185
MaxNodeCount = AutoScaleMaxNodeCount
186186
},
187-
AutoPause = !EnableAutoPause ? null : new AutoPauseProperties
187+
AutoPause = !EnableAutoPause ? new AutoPauseProperties { Enabled = false } : new AutoPauseProperties
188188
{
189189
Enabled = EnableAutoPause.IsPresent,
190190
DelayInMinutes = AutoPauseDelayInMinute

0 commit comments

Comments
 (0)