Skip to content

Commit 77d59cd

Browse files
committed
Fixed Get and help files
1 parent bf2ef1a commit 77d59cd

5 files changed

+44
-93
lines changed

src/DataFactory/DataFactoryV2/Triggers/GetAzureDataFactoryTriggerSubscriptionStatusCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
namespace Microsoft.Azure.Commands.DataFactoryV2
1919
{
2020
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataFactoryV2TriggerSubscriptionStatus",
21-
DefaultParameterSetName = ParameterSetNames.ByFactoryName, SupportsShouldProcess = true), OutputType(typeof(PSTriggerSubscriptionStatus))]
22-
public class GetAzureDataFactoryTriggerSubscriptionStatusCommand : DataFactoryContextActionBaseCmdlet
21+
DefaultParameterSetName = ParameterSetNames.ByFactoryName), OutputType(typeof(PSTriggerSubscriptionStatus))]
22+
public class GetAzureDataFactoryTriggerSubscriptionStatusCommand : DataFactoryContextSubResourceBaseCmdlet
2323
{
2424
[Parameter(ParameterSetName = ParameterSetNames.ByFactoryName, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true,
2525
HelpMessage = Constants.HelpTriggerName)]

src/DataFactory/DataFactoryV2/Triggers/RemoveAzureDataFactoryTriggerSubscriptionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.DataFactoryV2
1919
{
2020
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataFactoryV2TriggerSubscription",
2121
DefaultParameterSetName = ParameterSetNames.ByFactoryName, SupportsShouldProcess = true), OutputType(typeof(void))]
22-
public class RemoveAzureDataFactoryTriggerSubscriptionCommand : DataFactoryContextSubResourceBaseCmdlet
22+
public class RemoveAzureDataFactoryTriggerSubscriptionCommand : DataFactoryContextActionBaseCmdlet
2323
{
2424
[Parameter(ParameterSetName = ParameterSetNames.ByFactoryName, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true,
2525
HelpMessage = Constants.HelpTriggerName)]

src/DataFactory/DataFactoryV2/help/Add-AzDataFactoryV2TriggerSubscription.md

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@ Subscribe the event trigger to external service events.
1515
### ByFactoryName (Default)
1616
```
1717
Add-AzDataFactoryV2TriggerSubscription [-Name] <String> [-ResourceGroupName] <String>
18-
[-DataFactoryName] <String> [-Force] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
18+
[-DataFactoryName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
19+
[<CommonParameters>]
1920
```
2021

2122
### ByInputObject
2223
```
23-
Add-AzDataFactoryV2TriggerSubscription [-InputObject] <PSTrigger> [-Force]
24-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
24+
Add-AzDataFactoryV2TriggerSubscription [-InputObject] <PSTrigger> [-DefaultProfile <IAzureContextContainer>]
25+
[-WhatIf] [-Confirm] [<CommonParameters>]
2526
```
2627

2728
### ByResourceId
2829
```
29-
Add-AzDataFactoryV2TriggerSubscription [-ResourceId] <String> [-Force]
30-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
30+
Add-AzDataFactoryV2TriggerSubscription [-ResourceId] <String> [-DefaultProfile <IAzureContextContainer>]
31+
[-WhatIf] [-Confirm] [<CommonParameters>]
3132
```
3233

3334
## DESCRIPTION
@@ -42,7 +43,6 @@ PS C:\> Add-AzDataFactoryV2TriggerSubscription -ResourceGroupName ADF -DataFacto
4243
TriggerName Status
4344
----------- ------
4445
Trigger1 Provisioning
45-
4646
```
4747

4848
This command will subscribe BlobEnetTrigger1 trigger to the specified events from the trigger defintion.
@@ -79,21 +79,6 @@ Accept pipeline input: False
7979
Accept wildcard characters: False
8080
```
8181
82-
### -Force
83-
Don't ask for confirmation.
84-
85-
```yaml
86-
Type: SwitchParameter
87-
Parameter Sets: (All)
88-
Aliases:
89-
90-
Required: False
91-
Position: Named
92-
Default value: None
93-
Accept pipeline input: False
94-
Accept wildcard characters: False
95-
```
96-
9782
### -InputObject
9883
The trigger object.
9984
@@ -185,17 +170,18 @@ Accept pipeline input: False
185170
Accept wildcard characters: False
186171
```
187172
173+
### CommonParameters
174+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
175+
188176
## INPUTS
189177
190178
### System.String
191179
Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger
192180
193-
194181
## OUTPUTS
195182
196183
### Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus
197184
198-
199185
## NOTES
200186
201187
## RELATED LINKS

src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2TriggerSubscriptionStatus.md

Lines changed: 7 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ Get the status of the subscription for the event trigger to the specified extern
1515
### ByFactoryName (Default)
1616
```
1717
Get-AzDataFactoryV2TriggerSubscriptionStatus [-Name] <String> [-ResourceGroupName] <String>
18-
[-DataFactoryName] <String> [-Force] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
18+
[-DataFactoryName] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1919
```
2020

2121
### ByInputObject
2222
```
23-
Get-AzDataFactoryV2TriggerSubscriptionStatus [-InputObject] <PSTrigger> [-Force]
24-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
23+
Get-AzDataFactoryV2TriggerSubscriptionStatus [-InputObject] <PSTrigger>
24+
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2525
```
2626

2727
### ByResourceId
2828
```
29-
Get-AzDataFactoryV2TriggerSubscriptionStatus [-ResourceId] <String> [-Force]
30-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
29+
Get-AzDataFactoryV2TriggerSubscriptionStatus [-ResourceId] <String> [-DefaultProfile <IAzureContextContainer>]
30+
[<CommonParameters>]
3131
```
3232

3333
## DESCRIPTION
@@ -42,7 +42,6 @@ PS C:\> Get-AzDataFactoryV2TriggerSubscriptionStatus -ResourceGroupName ADF -Dat
4242
TriggerName Status
4343
----------- ------
4444
Trigger1 Enabled
45-
4645
```
4746

4847
This command will get the status of the subscribtion for BlobEnetTrigger1 trigger to the external service events.
@@ -79,21 +78,6 @@ Accept pipeline input: False
7978
Accept wildcard characters: False
8079
```
8180
82-
### -Force
83-
Don't ask for confirmation.
84-
85-
```yaml
86-
Type: SwitchParameter
87-
Parameter Sets: (All)
88-
Aliases:
89-
90-
Required: False
91-
Position: Named
92-
Default value: None
93-
Accept pipeline input: False
94-
Accept wildcard characters: False
95-
```
96-
9781
### -InputObject
9882
The trigger object.
9983
@@ -154,48 +138,18 @@ Accept pipeline input: True (ByPropertyName)
154138
Accept wildcard characters: False
155139
```
156140
157-
### -Confirm
158-
Prompts you for confirmation before running the cmdlet.
159-
160-
```yaml
161-
Type: SwitchParameter
162-
Parameter Sets: (All)
163-
Aliases: cf
164-
165-
Required: False
166-
Position: Named
167-
Default value: None
168-
Accept pipeline input: False
169-
Accept wildcard characters: False
170-
```
171-
172-
### -WhatIf
173-
Shows what would happen if the cmdlet runs.
174-
The cmdlet is not run.
175-
176-
```yaml
177-
Type: SwitchParameter
178-
Parameter Sets: (All)
179-
Aliases: wi
180-
181-
Required: False
182-
Position: Named
183-
Default value: None
184-
Accept pipeline input: False
185-
Accept wildcard characters: False
186-
```
141+
### CommonParameters
142+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
187143
188144
## INPUTS
189145
190146
### System.String
191147
Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger
192148
193-
194149
## OUTPUTS
195150
196151
### Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus
197152
198-
199153
## NOTES
200154
201155
## RELATED LINKS

src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2TriggerSubscription.md

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,31 @@ Unsubscribe the event trigger to external service events.
1414

1515
### ByFactoryName (Default)
1616
```
17-
Remove-AzDataFactoryV2TriggerSubscription [-Name] <String> [-ResourceGroupName] <String>
18-
[-DataFactoryName] <String> [-Force] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
17+
Remove-AzDataFactoryV2TriggerSubscription [-Name] <String> [-PassThru] [-Force] [-ResourceGroupName] <String>
18+
[-DataFactoryName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
19+
[<CommonParameters>]
1920
```
2021

2122
### ByInputObject
2223
```
23-
Remove-AzDataFactoryV2TriggerSubscription [-InputObject] <PSTrigger> [-Force]
24-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
24+
Remove-AzDataFactoryV2TriggerSubscription [-InputObject] <PSTrigger> [-PassThru] [-Force]
25+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
2526
```
2627

2728
### ByResourceId
2829
```
29-
Remove-AzDataFactoryV2TriggerSubscription [-ResourceId] <String> [-Force]
30-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
30+
Remove-AzDataFactoryV2TriggerSubscription [-PassThru] [-Force] [-ResourceId] <String>
31+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
3132
```
3233

3334
## DESCRIPTION
3435
This command unsubscribes the event trigger to the specified external service events from the trigger defintion.
3536

36-
3737
## EXAMPLES
3838

3939
### Example 1
4040
```
4141
PS C:\> Remove-AzDataFactoryV2TriggerSubscription -ResourceGroupName ADF -DataFactoryName UncycloADF -Name Trigger1
42-
43-
TriggerName Status
44-
----------- ------
45-
Trigger1 Disabled
46-
4742
```
4843

4944
This command will unsubscribe BlobEnetTrigger1 trigger to the specified events from the trigger defintion.
@@ -125,6 +120,21 @@ Accept pipeline input: True (ByPropertyName)
125120
Accept wildcard characters: False
126121
```
127122
123+
### -PassThru
124+
If specified, cmdlet will return return true on successful delete.
125+
126+
```yaml
127+
Type: SwitchParameter
128+
Parameter Sets: (All)
129+
Aliases:
130+
131+
Required: False
132+
Position: Named
133+
Default value: None
134+
Accept pipeline input: False
135+
Accept wildcard characters: False
136+
```
137+
128138
### -ResourceGroupName
129139
The resource group name.
130140
@@ -186,17 +196,18 @@ Accept pipeline input: False
186196
Accept wildcard characters: False
187197
```
188198
199+
### CommonParameters
200+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
201+
189202
## INPUTS
190203
191204
### System.String
192205
Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger
193206
194-
195207
## OUTPUTS
196208
197209
### Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus
198210
199-
200211
## NOTES
201212
202213
## RELATED LINKS

0 commit comments

Comments
 (0)