Skip to content

set default value for auto pause and auto scale settings of New-AzSynapseSparkPool cmdlet #15600

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 2 commits into from
Aug 5, 2021
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
1 change: 1 addition & 0 deletions src/Synapse/Synapse/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Added `New-AzSynapseManagedPrivateEndpoint` cmdlet
- Added `Get-AzSynapseManagedPrivateEndpoint` cmdlet
- Added `Remove-AzSynapseManagedPrivateEndpoint` cmdlet
* Fixed the blank page issue of pause setting and scale setting for Apache Spark pool through management API

## Version 0.14.0
* Added parameter `-ManagedResourceGroupName` for the `New-AzSynapseWorkspace` cmdlet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ public override void ExecuteCmdlet()
NodeCount = this.enableAutoScale ? (int?) null : this.NodeCount,
NodeSizeFamily = NodeSizeFamily.MemoryOptimized,
NodeSize = NodeSize,
AutoScale = !this.enableAutoScale ? null : new AutoScaleProperties
AutoScale = !this.enableAutoScale ? new AutoScaleProperties { Enabled = false } : new AutoScaleProperties
{
Enabled = this.enableAutoScale,
MinNodeCount = AutoScaleMinNodeCount,
MaxNodeCount = AutoScaleMaxNodeCount
},
AutoPause = !EnableAutoPause ? null : new AutoPauseProperties
AutoPause = !EnableAutoPause ? new AutoPauseProperties { Enabled = false } : new AutoPauseProperties
{
Enabled = EnableAutoPause.IsPresent,
DelayInMinutes = AutoPauseDelayInMinute
Expand Down