Skip to content

Added daemon and databag secret-key options in ChefExtension for ASM and ARM commands. #3387

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

Aliasgar16
Copy link

@Aliasgar16 Aliasgar16 commented Jan 13, 2017

Done.

@azurecla
Copy link

Hi @Aliasgar16, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.

TTYL, AZPRBOT;

@azuresdkci
Copy link

Can one of the admins verify this patch?

@Aliasgar16
Copy link
Author

@cormacpayne I have created this new PR as it was impossible to re-base the earlier PR, can you review this now ?

@cormacpayne
Copy link
Member

@azuresdkci add to whitelist

@cormacpayne
Copy link
Member

@Aliasgar16 please pull the latest changes from dev

@Aliasgar16 Aliasgar16 force-pushed the ali/add_daemon_and_databag_secret_key_options_in_chef_extension branch from 79d0dd4 to debdc3a Compare January 19, 2017 04:11
@Aliasgar16
Copy link
Author

@cormacpayne I have re-based the branch with dev.

@@ -29,6 +29,10 @@
- FullBackupWindowInHours : Specifies the window (in hours) when Sql Server Full Backup should occur.
- LogBackupFrequencyInMinutes : Specifies the frequency of Sql Server Log Backup.
* New-AzureVMSqlServer* cmdlets are renamed to New-AzureRmVMSqlServer* now. Old ones will continue to work however.
* Updated Set-AzureRmVMChefExtension cmdlet to add following new options :
Copy link
Member

Choose a reason for hiding this comment

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

This shoudl go in the 'Current Release' section

@@ -33,6 +33,14 @@ public void TestSetAzureVMChefExtension()
this.RunPowerShellTest("Test-SetAzureVMChefExtension");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.AcceptanceType, Category.BVT)]
Copy link
Member

Choose a reason for hiding this comment

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

No need for the BVT trait, check-in tests are always included in every run

@@ -27,6 +27,10 @@
- FullBackupStartHour : Specifies the hour of the day when the Sql Server Full Backup should start.
- FullBackupWindowInHours : Specifies the window (in hours) when Sql Server Full Backup should occur.
- LogBackupFrequencyInMinutes : Specifies the frequency of Sql Server Log Backup.
* Updated Set-AzureVMChefExtension cmdlet to add following new options :
Copy link
Member

Choose a reason for hiding this comment

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

same comment - this belongs in the 'current release' section

@@ -162,6 +162,7 @@
<string>ServiceManagement\\Common\\Commands.ScenarioTest\\Resources\\RdfeTestDummy.publishsettings</string>
<string>ServiceManagement\\Common\\Commands.ScenarioTest\\Resources\\ChefExtension\\client.rb</string>
<string>ServiceManagement\\Common\\Commands.ScenarioTest\\Resources\\ChefExtension\\tstorgnztn-validator.pem</string>
<string>ServiceManagement\\Common\\Commands.ScenarioTest\\Resources\\ChefExtension\\encrypted_data_bag_secret</string>
Copy link
Member

Choose a reason for hiding this comment

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

Please ensure that this new file does not represent a credentials used anywhere in azure - it would be a security breach to include a real credential.

Copy link
Author

Choose a reason for hiding this comment

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

@markcowl yes..this is not a real credential.

@@ -13015,6 +13015,24 @@ PS C:\&gt; Set-AzureRmVMBootDiagnostics -VM $VM -Enable -ResourceGroupName "Reso
<maml:uri /></dev:type>
<dev:defaultValue>None</dev:defaultValue>
</command:parameter>
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByPropertyName)" position="named" aliases="none"><maml:name>Secret</maml:name>
<maml:Description><maml:para>The encryption key used to encrypt and decrypt the data bag item values.
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

@markcowl I have fixed all the review comments. Just I did not understand this part add regenerate the help xml. from the above comment, can you elaborate this part as I am not aware of this.

Copy link
Member

Choose a reason for hiding this comment

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

Our help now resides in Markdown files. See: https://github.com/Azure/azure-powershell/blob/dev/documentation/platyPSHelp-documentation.md for details. This is designed to make it easire for you to update the help for cmdlets, in this case, because you used a different mechanism, it's an extra step, but next time, this should make it easier.

@Aliasgar16 Aliasgar16 force-pushed the ali/add_daemon_and_databag_secret_key_options_in_chef_extension branch from debdc3a to ebfb8b4 Compare January 24, 2017 05:03
Signed-off-by: aliasgar16 <[email protected]>
@markcowl markcowl merged commit f1cbf62 into Azure:dev Jan 24, 2017
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.

5 participants