You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// True to overwrite the existing configuration; false otherwise.
35
+
/// </summary>
36
+
privatebooloverwriteExistingConfiguration;
37
+
33
38
/// <summary>
34
39
/// Gets or sets the source path.
35
40
/// </summary>
36
-
[Parameter(Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="Path to the node configuration script .mof to import.")]
41
+
[Parameter(Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="Path to the node configuration .mof to import.")]
37
42
[Alias("Path")]
38
43
[ValidateNotNullOrEmpty]
39
44
publicstringSourcePath{get;set;}
40
45
41
46
/// <summary>
42
-
/// Gets or sets the node configuration name.
47
+
/// Gets or sets the configuration name for the node configuration.
43
48
/// </summary>
44
-
[Parameter(Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The dsc node configuration name for which .mof is imported.")]
45
-
[Alias("Name")]
46
-
publicstringName{get;set;}
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("NodeConfigurationName")]
51
+
publicstringConfigurationName{get;set;}
52
+
47
53
48
54
/// <summary>
49
-
/// Gets or sets the configuration name for the node configuration.
55
+
/// Gets or sets switch parameter to confirm overwriting of existing configurations.
50
56
/// </summary>
51
-
[Parameter(Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The dsc configuration name for .mof imported")]
52
-
[Alias("ConfigurationName")]
53
-
publicstringConfigurationName{get;set;}
57
+
[Parameter(Mandatory=false,HelpMessage="Forces the command to overwrite an existing configuration.")]
58
+
publicSwitchParameterForce
59
+
{
60
+
get{returnthis.overwriteExistingConfiguration;}
61
+
set{this.overwriteExistingConfiguration=value;}
62
+
}
54
63
55
64
/// <summary>
56
65
/// Execute this cmdlet.
@@ -62,8 +71,8 @@ public override void ExecuteCmdlet()
Copy file name to clipboardExpand all lines: src/ResourceManager/Automation/Commands.Automation/Properties/Resources.resx
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -414,4 +414,8 @@
414
414
<value>This connection type has connections associated with it. If you delete this connection type, all connections associated with it will be unusable and should be removed, unless you create a new connection type with the same name that has the same field definitions as the deleted connection type. However, it can have additional fields as well. Are you sure you want to remove the Azure Automation {0} ?</value>
0 commit comments