Skip to content

Commit 892dba1

Browse files
authored
Merge pull request #118955 from srbrills/patch-1
Update move-resource-group-and-subscription.md
2 parents 4334b04 + 0e822be commit 892dba1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/azure-resource-manager/management/move-resource-group-and-subscription.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,11 @@ $destinationResourceGroup = Get-AzResourceGroup -Name $destinationName
179179
$resources = Get-AzResource -ResourceGroupName $sourceName | Where-Object { $_.Name -in $resourcesToMove }
180180
181181
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+
}
184187
```
185188

186189
If validation passes, you see no output.

0 commit comments

Comments
 (0)