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
Copy file name to clipboardExpand all lines: src/ResourceManager/Insights/Commands.Insights/ActivityLogAlert/DisableAzureRmActivityLogAlertCommand.cs
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ public class DisableAzureRmActivityLogAlertCommand : ManagementCmdletBase
50
50
/// Gets or sets the Tags of the activity log alert resource
51
51
/// </summary>
52
52
[Parameter(ParameterSetName=DisableActivityLogAlertDeafultParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The tags of the activity log alert resource")]
53
+
[Parameter(ParameterSetName=DisableActivityLogAlertFromPipeParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The tags of the activity log alert resource")]
54
+
[Parameter(ParameterSetName=DisableActivityLogAlertFromResourceIdParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The tags of the activity log alert resource")]
Copy file name to clipboardExpand all lines: src/ResourceManager/Insights/Commands.Insights/ActivityLogAlert/EnableAzureRmActivityLogAlertCommand.cs
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ public class EnableAzureRmActivityLogAlertCommand : ManagementCmdletBase
50
50
/// Gets or sets the Tags of the activity log alert resource
51
51
/// </summary>
52
52
[Parameter(ParameterSetName=EnableActivityLogAlertDeafultParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The tags of the activity log alert resource")]
53
+
[Parameter(ParameterSetName=EnableActivityLogAlertFromPipeParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The tags of the activity log alert resource")]
54
+
[Parameter(ParameterSetName=EnableActivityLogAlertFromResourceIdParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The tags of the activity log alert resource")]
Copy file name to clipboardExpand all lines: src/ResourceManager/Insights/Commands.Insights/ActivityLogAlert/SetAzureRmActivityLogAlertCommand.cs
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -35,45 +35,45 @@ public class SetAzureRmActivityLogAlertCommand : ManagementCmdletBase
35
35
/// <summary>
36
36
/// Gets or sets the Location parameter of the cmdlet
37
37
/// </summary>
38
-
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The location of the activity log rule resource")]
38
+
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipeline=true,HelpMessage="The location of the activity log rule resource")]
39
39
[Parameter(ParameterSetName=SetActivityLogAlertFromResourceIdParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The location of the activity log rule resource")]
40
40
[ValidateNotNullOrEmpty]
41
41
publicstringLocation{get;set;}
42
42
43
43
/// <summary>
44
44
/// Gets or sets the alert name parameter of the cmdlet
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource group name of the activity log rule resource")]
53
+
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipeline=true,HelpMessage="The resource group name of the activity log rule resource")]
54
54
[ValidateNotNullOrEmpty]
55
55
publicstringResourceGroupName{get;set;}
56
56
57
57
/// <summary>
58
58
/// Gets or sets the scopes of the activity log alert
59
59
/// </summary>
60
-
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The list scopes")]
60
+
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipeline=true,HelpMessage="The list scopes")]
61
61
[Parameter(ParameterSetName=SetActivityLogAlertFromResourceIdParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The list scopes")]
62
62
[ValidateNotNullOrEmpty]
63
63
publicList<string>Scope{get;set;}
64
64
65
65
/// <summary>
66
66
/// Gets or sets the conditions of the activity log alert
67
67
/// </summary>
68
-
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The list of leaf conditions of the activity log alert")]
68
+
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipeline=true,HelpMessage="The list of leaf conditions of the activity log alert")]
69
69
[Parameter(ParameterSetName=SetActivityLogAlertFromResourceIdParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The list of leaf conditions of the activity log alert")]
/// Gets or sets the actions of the activity log alert
75
75
/// </summary>
76
-
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The list actions of the activity log alert")]
76
+
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=true,ValueFromPipeline=true,HelpMessage="The list actions of the activity log alert")]
77
77
[Parameter(ParameterSetName=SetActivityLogAlertFromResourceIdParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The list actions of the activity log alert")]
@@ -89,15 +89,17 @@ public class SetAzureRmActivityLogAlertCommand : ManagementCmdletBase
89
89
/// <summary>
90
90
/// Gets or set the alert description
91
91
/// </summary>
92
-
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The description of the activity log rule resource")]
92
+
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=false,ValueFromPipeline=true,HelpMessage="The description of the activity log rule resource")]
93
+
[Parameter(ParameterSetName=SetActivityLogAlertFromPipeParamGroup,Mandatory=false,ValueFromPipeline=true,HelpMessage="The description of the activity log rule resource")]
93
94
[Parameter(ParameterSetName=SetActivityLogAlertFromResourceIdParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The description of the activity log rule resource")]
94
95
[ValidateNotNullOrEmpty]
95
96
publicstringDescription{get;set;}
96
97
97
98
/// <summary>
98
99
/// Gets or sets the Tags of the activity log alert resource
99
100
/// </summary>
100
-
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The tags of the activity log alert resource")]
101
+
[Parameter(ParameterSetName=SetActivityLogAlertDefaultParamGroup,Mandatory=false,ValueFromPipeline=true,HelpMessage="The tags of the activity log alert resource")]
102
+
[Parameter(ParameterSetName=SetActivityLogAlertFromPipeParamGroup,Mandatory=false,ValueFromPipeline=true,HelpMessage="The tags of the activity log alert resource")]
101
103
[Parameter(ParameterSetName=SetActivityLogAlertFromResourceIdParamGroup,Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The tags of the activity log alert resource")]
0 commit comments