I have come across weird errors in attempt to upgrade a package in Azure. Sometimes it says “Role not found” or “Different number of input endpoints for role” etc. I was trying to find out the point that causes these errors but it turns out the only thing I can do is to delete the package once then deploy it again. It may sound strange but this is how it works for now.