Skip to content

Commit d6e3c28

Browse files
committed
report model update5
1 parent 147200b commit d6e3c28

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationDscNodeConfiguration.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,15 @@ public class ImportAzureAutomationDscNodeConfiguration : AzureAutomationBaseCmdl
3838
/// <summary>
3939
/// Gets or sets the source path.
4040
/// </summary>
41-
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Path to the node configuration .mof to import.")]
42-
[Alias("Path")]
41+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Path to the node configuration .mof to import.")]
4342
[ValidateNotNullOrEmpty]
44-
public string SourcePath { get; set; }
43+
public string Path { get; set; }
4544

4645
/// <summary>
4746
/// Gets or sets the configuration name for the node configuration.
4847
/// </summary>
49-
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the DSC Configuration to import the Node Configuration under. All Node Configurations in Azure Automation must exist under a Configuration. The name of the Configuration will become the namespace of the imported Node Configuration, in the form of 'ConfigurationName.MofFileName'")]
50-
[Alias("ConfigurationName")]
51-
public string ConfigName { get; set; }
48+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the DSC Configuration to import the Node Configuration under. All Node Configurations in Azure Automation must exist under a Configuration. The name of the Configuration will become the namespace of the imported Node Configuration, in the form of 'ConfigurationName.MofFileName'")]
49+
public string ConfigurationName { get; set; }
5250

5351

5452
/// <summary>
@@ -70,8 +68,8 @@ public override void ExecuteCmdlet()
7068
var nodeConfiguration = this.AutomationClient.CreateNodeConfiguration(
7169
this.ResourceGroupName,
7270
this.AutomationAccountName,
73-
this.SourcePath,
74-
this.ConfigName,
71+
this.Path,
72+
this.ConfigurationName,
7573
this.Force);
7674

7775
this.WriteObject(nodeConfiguration);

0 commit comments

Comments
 (0)