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

Conversation

yanjungao718
Copy link
Contributor

Description

Set default value for auto pause and auto scale settings of New-AzSynapseSparkPool cmdlet

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
      • {Please put the link here}
    • the markdown help files have been regenerated using the commands listed here

@@ -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 = this.enableAutoScale } : new AutoScaleProperties
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.enableAutoScale

Just use false for simplicity

{
Enabled = this.enableAutoScale,
MinNodeCount = AutoScaleMinNodeCount,
MaxNodeCount = AutoScaleMaxNodeCount
},
AutoPause = !EnableAutoPause ? null : new AutoPauseProperties
AutoPause = !EnableAutoPause ? new AutoPauseProperties { Enabled = EnableAutoPause.IsPresent } : new AutoPauseProperties
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EnableAutoPause.IsPresent

Just use false for simplicity

idear1203
idear1203 previously approved these changes Aug 3, 2021
Copy link
Contributor

@idear1203 idear1203 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@VeryEarly
Copy link
Collaborator

please add changelog

@VeryEarly VeryEarly self-assigned this Aug 4, 2021
@yanjungao718 yanjungao718 force-pushed the synapse-spark-pool branch 2 times, most recently from f6562da to c1c24d7 Compare August 4, 2021 05:07
@yanjungao718
Copy link
Contributor Author

hi @idear1203 @VeryEarly , merging is blocked due to unauthorized, could you please help to do this?

@VeryEarly VeryEarly merged commit c24f304 into Azure:main Aug 5, 2021
@yanjungao718 yanjungao718 deleted the synapse-spark-pool branch August 16, 2021 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants