ci: adding script to remove unused packages on run
Adding script and updating pipeline to remove unused packages and remove code when no needed for azure image.
Adding script and updating pipeline to remove unused packages and remove code when no needed for azure image.