Move code from deploymentScript to kuduscript