Skip to content

Commit ebcbc36

Browse files
author
aliasgar16
committed
Fixed the review comments.
Signed-off-by: aliasgar16 <[email protected]>
1 parent ebfb8b4 commit ebcbc36

File tree

4 files changed

+60
-11
lines changed

4 files changed

+60
-11
lines changed

src/ResourceManager/Compute/ChangeLog.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Updated Set-AzureRmVMChefExtension cmdlet to add following new options :
22+
- Daemon: Configures the chef-client service for unattended execution. e.g. -Daemon 'none' or e.g. -Daemon 'service'."
23+
- Secret: The encryption key used to encrypt and decrypt the data bag item values.
24+
- SecretFile: The path to the file that contains the encryption key used to encrypt and decrypt the data bag item values.
2125

2226
## Version 2.5.0
2327
* Fix Get-AzureRmVM with -Status issue: Get-AzureRmVM throws an exception when Get-AzureRmVM lists multiple VMs and some of the VMs are deleted during Get-AzureRmVM is performed.
@@ -29,10 +33,6 @@
2933
- FullBackupWindowInHours : Specifies the window (in hours) when Sql Server Full Backup should occur.
3034
- LogBackupFrequencyInMinutes : Specifies the frequency of Sql Server Log Backup.
3135
* New-AzureVMSqlServer* cmdlets are renamed to New-AzureRmVMSqlServer* now. Old ones will continue to work however.
32-
* Updated Set-AzureRmVMChefExtension cmdlet to add following new options :
33-
- Daemon: Configures the chef-client service for unattended execution. e.g. -Daemon 'none' or e.g. -Daemon 'service'."
34-
- Secret: The encryption key used to encrypt and decrypt the data bag item values.
35-
- SecretFile: The path to the file that contains the encryption key used to encrypt and decrypt the data bag item values.
3636

3737
## Version 2.4.0
3838
* Add Remove-AzureRmVMSecret cmdlet.

src/ResourceManager/Compute/Commands.Compute/help/Set-AzureRmVMChefExtension.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Set-AzureRmVMChefExtension [-ResourceGroupName] <String> [-VMName] <String> [[-T
1919
[-ChefServerUrl <String>] [-ValidationClientName <String>] [-OrganizationName <String>]
2020
[-BootstrapVersion <String>] [-Linux] [[-Location] <String>] [[-Name] <String>]
2121
[[-AutoUpgradeMinorVersion] <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
22+
[-Secret <String>]
2223
```
2324

2425
### Windows
@@ -28,6 +29,7 @@ Set-AzureRmVMChefExtension [-ResourceGroupName] <String> [-VMName] <String> [[-T
2829
[-ChefServerUrl <String>] [-ValidationClientName <String>] [-OrganizationName <String>]
2930
[-BootstrapVersion <String>] [-Windows] [[-Location] <String>] [[-Name] <String>]
3031
[[-AutoUpgradeMinorVersion] <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
32+
[-Daemon <String>] [-SecretFile <String>]
3133
```
3234

3335
## DESCRIPTION
@@ -37,15 +39,15 @@ The **Set-AzureVMChefExtension** cmdlet adds the Chef extension to the virtual m
3739

3840
### Example 1: Add a Chef extension to a Windows virtual machine
3941
```
40-
PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName "ResourceGroup001" -VMName "WindowsVM001" -ValidationPem "C:\my-org-validator.pem" -ClientRb "C:\client.rb" -RunList "Apache" -Windows
42+
PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName "ResourceGroup001" -VMName "WindowsVM001" -ValidationPem "C:\my-org-validator.pem" -ClientRb "C:\client.rb" -RunList "Apache" -Daemon "service" -SecretFile "C:\my_encrypted_data_bag_secret" -Windows
4143
```
4244

4345
This command adds a Chef extension to a Windows virtual machine named WindowsVM001.
4446
When the virtual machine starts, Chef bootstraps the virtual machine to run Apache.
4547

4648
### Example 2: Add a Chef extension to a Linux virtual machine
4749
```
48-
PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName "ResourceGroup002" -VMName "LinuxVM001" -ValidationPem "C:\my-org-validator.pem" -ClientRb "C:\client.rb" -RunList "Apache" -Linux
50+
PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName "ResourceGroup002" -VMName "LinuxVM001" -ValidationPem "C:\my-org-validator.pem" -ClientRb "C:\client.rb" -RunList "Apache" -Secret "my_secret" -Linux
4951
```
5052

5153
This command adds a Chef extension to a Linux virtual machine named LinuxVM001.
@@ -284,6 +286,54 @@ Accept pipeline input: True (ByPropertyName)
284286
Accept wildcard characters: False
285287
```
286288
289+
### -Daemon
290+
Configures the chef-client service for unattended execution. The node platform should be Windows.
291+
Options: 'none' or 'service'
292+
none - Currently prevents the chef-client service from being configured as a service.
293+
service - Configures the chef-client to run automatically in the background as a service.
294+
295+
```yaml
296+
Type: String
297+
Parameter Sets: Windows
298+
Aliases:
299+
300+
Required: False
301+
Position: Named
302+
Default value: None
303+
Accept pipeline input: True (ByPropertyName)
304+
Accept wildcard characters: False
305+
```
306+
307+
### -Secret
308+
The encryption key used to encrypt and decrypt the data bag item values.
309+
310+
```yaml
311+
Type: String
312+
Parameter Sets: (All)
313+
Aliases:
314+
315+
Required: False
316+
Position: Named
317+
Default value: None
318+
Accept pipeline input: True (ByPropertyName)
319+
Accept wildcard characters: False
320+
```
321+
322+
### -SecretFile
323+
The path to the file that contains the encryption key used to encrypt and decrypt the data bag item values.
324+
325+
```yaml
326+
Type: String
327+
Parameter Sets: (All)
328+
Aliases:
329+
330+
Required: False
331+
Position: Named
332+
Default value: None
333+
Accept pipeline input: True (ByPropertyName)
334+
Accept wildcard characters: False
335+
```
336+
287337
### -Windows
288338
Indicates that this cmdlet creates a Windows virtual machine.
289339

src/ServiceManagement/Common/Commands.ScenarioTest/ChefExtension/ChefExtensionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public void TestSetAzureVMChefExtension()
3535

3636
[Fact]
3737
[Trait(Category.AcceptanceType, Category.CheckIn)]
38-
[Trait(Category.AcceptanceType, Category.BVT)]
3938
public void TestSetAzureVMChefExtensionAdvancedOptions()
4039
{
4140
this.RunPowerShellTest("Test-SetAzureVMChefExtensionAdvancedOptions");

src/ServiceManagement/Services/Commands.Utilities/ChangeLog.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Updated Set-AzureVMChefExtension cmdlet to add following new options :
22+
- Daemon: Configures the chef-client service for unattended execution. e.g. -Daemon 'none' or e.g. -Daemon 'service'."
23+
- Secret: The encryption key used to encrypt and decrypt the data bag item values.
24+
- SecretFile: The path to the file that contains the encryption key used to encrypt and decrypt the data bag item values.
2125

2226
## Version 3.4.0
2327
* New parameters in New-AzureVMSqlServerAutoBackupConfig cmdlet to support Auto Backup for SQL Server 2016 VMs.
@@ -27,10 +31,6 @@
2731
- FullBackupStartHour : Specifies the hour of the day when the Sql Server Full Backup should start.
2832
- FullBackupWindowInHours : Specifies the window (in hours) when Sql Server Full Backup should occur.
2933
- LogBackupFrequencyInMinutes : Specifies the frequency of Sql Server Log Backup.
30-
* Updated Set-AzureVMChefExtension cmdlet to add following new options :
31-
- Daemon: Configures the chef-client service for unattended execution. e.g. -Daemon 'none' or e.g. -Daemon 'service'."
32-
- Secret: The encryption key used to encrypt and decrypt the data bag item values.
33-
- SecretFile: The path to the file that contains the encryption key used to encrypt and decrypt the data bag item values.
3434

3535
## Version 3.3.0
3636
* Updated Set-AzureVMChefExtension cmdlet to add following new options :

0 commit comments

Comments
 (0)