-
Notifications
You must be signed in to change notification settings - Fork 4k
Support creating Spark 2.0 cluster using Azure HDInsight PowerShell #3110
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
Conversation
version of a service. Added a new cmdlet Add-AzureRmHDInsightComponentVersion to specify the component version of the service during cluster creation. Get-AzureRmHDInsightCluster cmdlet will also return the component version of the service if specified during cluster creation
Hi @iyerrb, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
TTYL, AZPRBOT; |
Can one of the admins verify this patch? |
@azuresdkci add to whitelist |
@@ -20,7 +20,8 @@ namespace Microsoft.Azure.Commands.HDInsight | |||
{ | |||
[Cmdlet( | |||
VerbsCommon.Add, | |||
Constants.CommandNames.AzureHDInsightComponentVersion), | |||
Constants.CommandNames.AzureHDInsightComponentVersion, | |||
SupportsShouldProcess = true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is not all. You also need to either call ConfirmAction or ShoudlProcess correctly during cmdlet execution. See: https://gist.github.com/markcowl/338e16fe5c8bbf195aff9f8af0db585d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated the PR with a call to ConfirmAction from the cmdlet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any more comments on this change?
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markcowl ping
{ | ||
Config.ComponentVersion.Add(ComponentName, ComponentVersion); | ||
WriteObject(Config); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iyerrb the build is failing because you are missing a semicolon here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have fixed this and the other error due to 'Name' parameter in ConfirmAction
Can we get this merged please? |
@@ -47,12 +47,12 @@ public class AddAzureHDInsightComponentVersionCommand : HDInsightCmdletBase | |||
|
|||
public override void ExecuteCmdlet() | |||
{ | |||
ConfirmAction("Adding Component Version", Name, | |||
ConfirmAction("Adding Component Version", "AzureHDInsightConfig", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be 'ComponentName'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the resource being modified is the AzureHDInsightConfig because there's no ComponentName object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is today the cutoff to get on the next release train due next Tuesday (first Tuesday of the month?) |
I wanted to update my manager whether this change will be shipped next week or next month. Kindly let me know the ship date for this change. |
@iyerrb this will be shipped next Wednesday for the November release of Azure PowerShell |
What's the |
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThrough
parameter.Cmdlet Parameter Guidelines
version of a service. Added a new cmdlet
Add-AzureRmHDInsightComponentVersion to specify the component version of
the service during cluster creation. Get-AzureRmHDInsightCluster cmdlet
will also return the component version of the service if specified during
cluster creation