Resolve various problem that caused Azure failed to deploy