added logic to handle Azure deploys