fix new-azurevm & update-azurevm issues