Skip to content

Commit 8e66b0e

Browse files
committed
fixed pr comments from elvg
1 parent 5b0e2c0 commit 8e66b0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceManagement/Automation/Commands.Automation/Cmdlet/SetAzureAutomationVariable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class SetAzureAutomationVariable : AzureAutomationBaseCmdlet
4747
/// <summary>
4848
/// Gets or sets the variable description.
4949
/// </summary>
50-
[Parameter(ParameterSetName = AutomationCmdletParameterSets.UpdateVariableDescription, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The description of the variable.")]
50+
[Parameter(ParameterSetName = AutomationCmdletParameterSets.UpdateVariableDescription, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The description of the variable.")]
5151
public string Description { get; set; }
5252

5353
/// <summary>
@@ -67,7 +67,7 @@ protected override void AutomationExecuteCmdlet()
6767
Name = this.Name,
6868
Description = this.Description,
6969
Encrypted = this.Encrypted,
70-
Value = JsonConvert.SerializeObject(this.Value),
70+
Value = this.Value,
7171
AutomationAccountName = this.AutomationAccountName
7272
};
7373

0 commit comments

Comments
 (0)