@@ -11,45 +11,59 @@ schema: 2.0.0
11
11
Retrieves the PSProjectTask object associated with an Azure Database Migration Service migration task.
12
12
13
13
## SYNTAX
14
- ### ComponentNameParameterSet (Default)
14
+
15
+ ### ListByComponent (Default)
15
16
```
16
17
Get-AzureRmDataMigrationTask -ResourceGroupName <String> -ServiceName <String> -ProjectName <String>
18
+ [-TaskType <TaskTypeEnum>] [-DefaultProfile <IAzureContextContainer>]
19
+ ```
20
+
21
+ ### ListByInputObject
22
+ ```
23
+ Get-AzureRmDataMigrationTask [-InputObject] <PSProject> [-TaskType <TaskTypeEnum>]
17
24
[-DefaultProfile <IAzureContextContainer>]
18
25
```
19
26
20
- ### ComponentObjectParameterSet
27
+ ### GetByInputObject
21
28
```
22
- Get-AzureRmDataMigrationTask [-InputObject] <PSProject> [ -Name <String>]
29
+ Get-AzureRmDataMigrationTask [-InputObject] <PSProject> -Name <String> [-Expand ]
23
30
[-DefaultProfile <IAzureContextContainer>]
24
31
```
25
32
26
- ### ResourceIdParameterSet
33
+ ### GetByInputObjectResultType
27
34
```
28
- Get-AzureRmDataMigrationTask [-ResourceId] <String> [-Name <String>] [-DefaultProfile <IAzureContextContainer>]
35
+ Get-AzureRmDataMigrationTask [-InputObject] <PSProject> -Name <String> [-Expand] -ResultType <ResultTypeEnum>
36
+ [-DefaultProfile <IAzureContextContainer>]
29
37
```
30
38
31
- ### TaskSet
39
+ ### ListByResourceId
32
40
```
33
- Get-AzureRmDataMigrationTask -ResourceGroupName <String> -ServiceName <String> -ProjectName <String>
34
- [-Name <String>] [- DefaultProfile <IAzureContextContainer>]
41
+ Get-AzureRmDataMigrationTask [-ResourceId] <String> [-TaskType <TaskTypeEnum>]
42
+ [-DefaultProfile <IAzureContextContainer>]
35
43
```
36
44
37
- ### ExpandTaskSet
45
+ ### GetByResourceId
38
46
```
39
- Get-AzureRmDataMigrationTask -ResourceGroupName <String> -ServiceName <String> -ProjectName <String>
40
- -Name <String> [-Expand] [-DefaultProfile <IAzureContextContainer>]
47
+ Get-AzureRmDataMigrationTask [-ResourceId] <String> -Name <String> [-Expand]
48
+ [-DefaultProfile <IAzureContextContainer>]
41
49
```
42
50
43
- ### ExpandTaskResultTypeSet
51
+ ### GetByResourceIdResultType
52
+ ```
53
+ Get-AzureRmDataMigrationTask [-ResourceId] <String> -Name <String> [-Expand] -ResultType <ResultTypeEnum>
54
+ [-DefaultProfile <IAzureContextContainer>]
55
+ ```
56
+
57
+ ### GetByComponent
44
58
```
45
59
Get-AzureRmDataMigrationTask -ResourceGroupName <String> -ServiceName <String> -ProjectName <String>
46
- -Name <String> [-Expand] -ResultType <ResultTypeEnum> [-DefaultProfile <IAzureContextContainer>]
60
+ [ -Name <String>] [-Expand] [-DefaultProfile <IAzureContextContainer>]
47
61
```
48
62
49
- ### TaskTypeSet
63
+ ### GetByComponentResultType
50
64
```
51
65
Get-AzureRmDataMigrationTask -ResourceGroupName <String> -ServiceName <String> -ProjectName <String>
52
- [-TaskType <TaskTypeEnum>] [-DefaultProfile <IAzureContextContainer>]
66
+ -Name <String> [-Expand] -ResultType <ResultTypeEnum> [-DefaultProfile <IAzureContextContainer>]
53
67
```
54
68
55
69
## DESCRIPTION
@@ -59,18 +73,14 @@ The Get-AzureRmDataMigrationTask cmdlet retrieves the properties associated with
59
73
60
74
### Example 1
61
75
```
62
- PS C:\> Get -AzureRmDataMigrationTask –TaskName myTestTask -ServiceName myTestService -ProjectName MyTestProject -ResourceGroupName MyResourceGroup -Expand
63
-
64
-
76
+ PS C:\> Get -AzureRmDataMigrationTask -TaskName myTestTask -ServiceName myTestService -ProjectName MyTestProject -ResourceGroupName MyResourceGroup -Expand
65
77
```
66
78
67
79
The above example illustrates the use of Get-AzureRmDataMigrationTask cmdlet to retrieve the properties associated with an Azure Database Migration Service migration task based on task name passed in as input parameter
68
80
69
81
### Example 2
70
82
```
71
- PS C:\> Get -AzureRmDataMigrationTask –Project $myProject
72
-
73
-
83
+ PS C:\> Get -AzureRmDataMigrationTask -Project $myProject
74
84
```
75
85
76
86
The above example illustrates the use of Get-AzureRmDataMigrationTask cmdlet to retrieve all of the migration tasks associated with PSProject object passed in as input parameter
@@ -97,12 +107,24 @@ Expand output
97
107
98
108
` ` ` yaml
99
109
Type : SwitchParameter
100
- Parameter Sets : ExpandTaskSet, ExpandTaskResultTypeSet
110
+ Parameter Sets : GetByInputObject, GetByResourceId, GetByComponent
111
+ Aliases :
112
+
113
+ Required : False
114
+ Position : Named
115
+ Default value : False
116
+ Accept pipeline input : False
117
+ Accept wildcard characters : False
118
+ ` ` `
119
+
120
+ ` ` ` yaml
121
+ Type : SwitchParameter
122
+ Parameter Sets : GetByInputObjectResultType, GetByResourceIdResultType, GetByComponentResultType
101
123
Aliases :
102
124
103
125
Required : True
104
126
Position : Named
105
- Default value : None
127
+ Default value : False
106
128
Accept pipeline input : False
107
129
Accept wildcard characters : False
108
130
` ` `
@@ -112,7 +134,19 @@ PSProject Object.
112
134
113
135
` ` ` yaml
114
136
Type : PSProject
115
- Parameter Sets : ComponentObjectParameterSet
137
+ Parameter Sets : ListByInputObject
138
+ Aliases : Project
139
+
140
+ Required : True
141
+ Position : 0
142
+ Default value : None
143
+ Accept pipeline input : True (ByValue)
144
+ Accept wildcard characters : False
145
+ ` ` `
146
+
147
+ ` ` ` yaml
148
+ Type : PSProject
149
+ Parameter Sets : GetByInputObject, GetByInputObjectResultType
116
150
Aliases : Project
117
151
118
152
Required : True
@@ -127,10 +161,10 @@ The name of the task.
127
161
128
162
` ` ` yaml
129
163
Type : String
130
- Parameter Sets : ComponentObjectParameterSet, ResourceIdParameterSet, TaskSet
164
+ Parameter Sets : GetByInputObject, GetByInputObjectResultType, GetByResourceId, GetByResourceIdResultType, GetByComponentResultType
131
165
Aliases : TaskName
132
166
133
- Required : False
167
+ Required : True
134
168
Position : Named
135
169
Default value : None
136
170
Accept pipeline input : False
@@ -139,10 +173,10 @@ Accept wildcard characters: False
139
173
140
174
` ` ` yaml
141
175
Type : String
142
- Parameter Sets : ExpandTaskSet, ExpandTaskResultTypeSet
176
+ Parameter Sets : GetByComponent
143
177
Aliases : TaskName
144
178
145
- Required : True
179
+ Required : False
146
180
Position : Named
147
181
Default value : None
148
182
Accept pipeline input : False
@@ -154,7 +188,7 @@ The name of the project.
154
188
155
189
` ` ` yaml
156
190
Type : String
157
- Parameter Sets : ComponentNameParameterSet, TaskSet, ExpandTaskSet, ExpandTaskResultTypeSet, TaskTypeSet
191
+ Parameter Sets : ListByComponent, GetByComponent, GetByComponentResultType
158
192
Aliases :
159
193
160
194
Required : True
@@ -169,7 +203,7 @@ The name of the resource group.
169
203
170
204
` ` ` yaml
171
205
Type : String
172
- Parameter Sets : ComponentNameParameterSet, TaskSet, ExpandTaskSet, ExpandTaskResultTypeSet, TaskTypeSet
206
+ Parameter Sets : ListByComponent, GetByComponent, GetByComponentResultType
173
207
Aliases :
174
208
175
209
Required : True
@@ -184,7 +218,19 @@ Project Resource Id.
184
218
185
219
` ` ` yaml
186
220
Type : String
187
- Parameter Sets : ResourceIdParameterSet
221
+ Parameter Sets : ListByResourceId
222
+ Aliases :
223
+
224
+ Required : True
225
+ Position : 0
226
+ Default value : None
227
+ Accept pipeline input : True (ByPropertyName)
228
+ Accept wildcard characters : False
229
+ ` ` `
230
+
231
+ ` ` ` yaml
232
+ Type : String
233
+ Parameter Sets : GetByResourceId, GetByResourceIdResultType
188
234
Aliases :
189
235
190
236
Required : True
@@ -199,7 +245,7 @@ Expand output of given result type.
199
245
200
246
` ` ` yaml
201
247
Type : ResultTypeEnum
202
- Parameter Sets : ExpandTaskResultTypeSet
248
+ Parameter Sets : GetByInputObjectResultType, GetByResourceIdResultType, GetByComponentResultType
203
249
Aliases :
204
250
Accepted values : MigrationLevelOutput, DatabaseLevelOutput, TableLevelOutput, MigrationValidationOutput, MigrationValidationDatabaseLevelOutput
205
251
@@ -215,7 +261,7 @@ Data Migration Service Name.
215
261
216
262
` ` ` yaml
217
263
Type : String
218
- Parameter Sets : ComponentNameParameterSet, TaskSet, ExpandTaskSet, ExpandTaskResultTypeSet, TaskTypeSet
264
+ Parameter Sets : ListByComponent, GetByComponent, GetByComponentResultType
219
265
Aliases :
220
266
221
267
Required : True
@@ -230,7 +276,7 @@ Filter by TaskType.
230
276
231
277
` ` ` yaml
232
278
Type : TaskTypeEnum
233
- Parameter Sets : TaskTypeSet
279
+ Parameter Sets : ListByComponent, ListByInputObject, ListByResourceId
234
280
Aliases :
235
281
Accepted values : MigrateSqlServerSqlDb, ConnectToSourceSqlServer, ConnectToTargetSqlDb, GetUserTablesSql
236
282
@@ -246,12 +292,10 @@ Accept wildcard characters: False
246
292
### Microsoft.Azure.Commands.DataMigration.Models.PSProject
247
293
System.String
248
294
249
-
250
295
## OUTPUTS
251
296
252
297
### System.Collections.Generic.IList` 1[[Microsoft.Azure.Commands.DataMigration.Models.PSProjectTask, Microsoft.Azure.Commands.DataMigration, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null]]
253
298
254
-
255
299
# # NOTES
256
300
257
301
# # RELATED LINKS
0 commit comments