We have set up a pipeline to upload the libraries/packages to synpase workspace using Azure commands
az synapse workspace-package upload --workspace-name testsw --package C:/python.whl
I tried appending –overwrite just to overwrite the existing library but it threw error.
Do we have any command to overwrite the existing package in Synapse Workspace?
Edit:
Error I got while I appended –overwrite is as below:
Unrecognized arguments : –overwrite
2
Answers
I was able to fix the issue with the answer provided by @JayashankarGS A slight change I have made:
The reason why I was getting error while deleting the existing whl file was , in Synapse the whl file was being used by some pipeline
There is no option like
--overwrite
in az command, but what you can do is check if package exists.If exists delete and upload new one.
Below are the commands for that.