-
Notifications
You must be signed in to change notification settings - Fork 4k
ADLA and ADLS Update: Compute Policy, Job Recurrence, App ID and Key Rotation #4136
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
Update to official ADLA sdk package. Update help based on feedback. Updates to support data lake resource ID auth. Update for Submit-Job to include relationship Flesh out all of the commands. Next step is adding in the tests. Add tests for new cmdlets Update help update an incorrect copy/paste for help
The AzureRMProfileTest hardcodes an expected json object, which is incredibly dangerous and fragile. In this case, I just updated the json string to resemble exactly what is output, including the new properties that I added.
This is why direct comparison of string tests are bad for json objects. In visual studio Environment comes first, but when run outside of visualstudio Account comes first.
@cormacpayne on demand failed, but I have no idea why, none of the build artifacts in the run indicate there was a failure that I can see. Can you take a look? |
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.
LGTM
{ | ||
[Cmdlet(VerbsCommon.Remove, "AzureRmDataLakeAnalyticsComputePolicy", SupportsShouldProcess = true), OutputType(typeof(bool))] | ||
[Alias("Remove-AdlAnalyticsComputePolicy")] | ||
public class RemoveAzureDataLakeAnalyticsComputePolicy : DataLakeAnalyticsCmdletBase |
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.
We talked about adding InputObject
parameter (and parameter set) to this cmdlet (and all cmdlets that follow that this would apply to) in our cmdlet review and decided against it for now until we had a more pipeline focused review with @begoldsm and his PM
Description
This set of changes does the following:
1. Update PowerShell to support Compute Policy CRUD cmdlets
2. Update for Job Relationship (pipeline and recurrence)
3. Update for Resource App ID for ADLA and ADLS FE services
4. Updates for Key rotation for user managed key vault keys
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 aPassThru
parameter.Cmdlet Parameter Guidelines