I have had Azure Cloud service and I've tried to upgrade it to Standard D2 size, but upgrade failed, and I got same errors as in this question: link
After that I created new Cloud Service in Azure portal and published my project with Standard D2 size, and that went well, but when I tried to integrate Continuous Deployment (with Git) it failed (I've tired my own Build Controller, and Hosted build Controller). After that I've tried with A5 instance size, but it failed too. The error I got both times was:
Exception Message: Invalid enum value 'A5' cannot be deserialized into type 'Microsoft.TeamFoundation.Deployment.Workflow.AzureManagement.v1_7.InstanceSize'. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute. (type SerializationException)
Strangely I can publish my Cloud Service without problems, but I cannot use continuous deployment for some reason.
After that I removed Azure Cloud Service Project from my solution and added new Cloud Service Project, but with same results.
Then I tried to set instance size to "Large" and build went well.
And there is one more thing. In web role which is connected to ASP.net MVC project from drop down I can choose instances such as Standard D1, Satndard D2 etc. But from web role which is connected to ASP.net WEB Api project I can choose only Small, Large Medium, A5, etc. instances. (I've attached screenshots)
Why is this happening ?
Web API options:
MVC options: