Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
Hi Garth Meyer - Thanks for reaching out.
I tried the below sample script to create 2 rules was able to configure the policy on the destination account correctly.
$rgName = "ResourceGroupName"
$srcAccountName = "Source Account Name"
$destAccountName = "Destination Account Name"
$srcContainerName1 = "Source Container 1"
$destContainerName1 = "Destination Container 1"
$srcContainerName2 = "Source Container 2"
$destContainerName2 = "Destination Container 2"
Define replication rules for each container.
$rule1 = New-AzStorageObjectReplicationPolicyRule -SourceContainer $srcContainerName1 `
-DestinationContainer $destContainerName1 `
$rule2 = New-AzStorageObjectReplicationPolicyRule -SourceContainer $srcContainerName2 `
-DestinationContainer $destContainerName2 `
Create the replication policy on the destination account.
$destPolicy = Set-AzStorageObjectReplicationPolicy -ResourceGroupName $rgName `
-StorageAccountName $destAccountName `
-PolicyId default `
-SourceAccount $srcAccountName `
-Rule $rule1,$rule2
Reference Link:
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.