Migrating Service Instances Created with LRS to ZRS
You can migrate existing service instances created with Locally Redundant Storage (LRS) to new instances with Zone Redundant Storage (ZRS).
Prerequisites
You have a SAS token. You can either use the binding or service key credentials of an existing instance, or create a new service key, as long as the total count of bindings does not surpass the limit of 5.
This migration is only applicable for Object Store instances created with an azure-standard plan on Cloud Foundry.
Procedure
Log in to Cloud Foundry and navigate to the organization and space where the existing Object Store service instance is located. Ensure that Object Store service access is enabled.
Create a new Object Store service instance with a standard plan.
Create a service key for the new instance.
The LRS-based containers and ZRS-based containers can be differentiated by the zrs suffix in the container_name.
Execute the following command using the respective SAS tokens obtained in the service key credentials to initiate migration. Ensure that you remove \u0026 and replace it with & in the SAS tokens:
The above command may take several hours depending on the number and sizes of blobs present in the source and destination containers. In addition, once this command is completed, the same command can be run a second time to confirm that the blobs have been copied.
Once the migration is complete and you have verified that all of the data has been copied to the new container successfully, delete the bindings and service keys from the old instances.
Delete the old instance.
Rename the new instance to the old instance's name. You can choose to delete the service key for the new instance as well.