File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
articles/azure-resource-manager/management Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -179,8 +179,11 @@ $destinationResourceGroup = Get-AzResourceGroup -Name $destinationName
179
179
$resources = Get-AzResource -ResourceGroupName $sourceName | Where-Object { $_.Name -in $resourcesToMove }
180
180
181
181
Invoke-AzResourceAction -Action validateMoveResources `
182
- -ResourceId $sourceResourceGroup.ResourceId `
183
- -Parameters @{ resources= $resources.ResourceId;targetResourceGroup = $destinationResourceGroup.ResourceId }
182
+ -ResourceId $sourceResourceGroup.ResourceId `
183
+ -Parameters @{
184
+ resources = $resources.ResourceId; # Wrap in an @() array if providing a single resource ID string.
185
+ targetResourceGroup = $destinationResourceGroup.ResourceId
186
+ }
184
187
```
185
188
186
189
If validation passes, you see no output.
You can’t perform that action at this time.
0 commit comments