While configuring cross tenant object replication using policy definition json (referencing 'https://learn.microsoft.com/en-us/azure/storage/blobs/object-replication-overview'), getting error : ''The value 'default' is not allowed for property policyId"

Shubhangi Shukla 25 Reputation points
2024-09-19T09:12:59.0966667+00:00

JSON FILE USED:
{

"properties": {

"policyId": "default",

"sourceAccount": "/subscriptions/<subscriptionId>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>",

"destinationAccount": "/subscriptions/<subscriptionId>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>",

"rules": [

  {

    "ruleId": "default",

    "sourceContainer": "<source-container>",

    "destinationContainer": "<destination-container>"

  }

]

}

}

Also how can I configure in this json to set "Copy Over" option to "Everything"??

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,224 questions
0 comments No comments
{count} votes

Accepted answer
  1. Silvia Wibowo 3,986 Reputation points Microsoft Employee
    2024-09-23T23:46:04.77+00:00

    Hi @Shubhangi Shukla , I understand that you have difficulty setting object replication from one storage account to another.

    Please note that setting object replication using JSON file from Azure Portal, it's a 3-step process:

    1. Upload a JSON file with policyId : default when you're defining the replication policy on destination storage account.
    2. Download a policy definition JSON file with the policyId set by destination storage account.
    3. Use the policy definition JSON file you downloaded from Azure Portal to set the object replication on source storage account.

    Please follow the steps from https://learn.microsoft.com/en-us/azure/storage/blobs/object-replication-configure?tabs=portal#configure-object-replication-using-a-json-file

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.