[Data Factory] Unable to preserve metadata with Data factory v2 blob to blob CopyActivity
- Package Name: azure-mgmt-datafactory
- Package Version: 0.10.0
- Operating System: Linux
- Python Version: 3.8.2
Describe the bug Preserve metadata is not getting updated in copy activity with below code. As this is for automation, manually adding preserve element from data factory from UI is not feasible. blob_source = BlobSource() blob_sink = BlobSink() dsin_ref = DatasetReference(reference_name=source_ds_name) dsOut_ref = DatasetReference(reference_name=target_ds_name) copy_activity = CopyActivity(name=act_name, inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink, preserve=["Attributes"])
As preserve element is not getting updated, blob metadata and properties is not getting copied for blob to blob copy.
To Reproduce Steps to reproduce the behavior: Followed https://docs.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python. Added preserve parameter in CopyActivity
Expected behavior Preserve element in blob CopyActivity should have "Attributes"
Screenshots

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shawnxzq, @lmy269.
@shawnxzq, can you take a look?
"preserve" is not supported properties in copy activity, we don't allow arbitrary properties and it's by design.
@zikalino @changlong-liu I can't close this issue, could you please help close it? Thx!
Hi @shawnxzq , thank you!