No support for "-Force" option when upgrading Azure cloud service
See original GitHub issueI’m using Azure Cloud Services deployment task. Allow upgrade flag is set to true.
When I try to change vmsize (via configuration file) this error happens:
2016-11-11T13:08:40.7295350Z ##[command]Set-AzureDeployment -Upgrade -ServiceName my-service -Package C:\agent\_work\r1\a\MyService.Azure.cspkg -Configuration C:\agent\_work\r1\a\MyServiceConfiguration.Cloud.cscfg -Slot Production -Label 20161111.2 11/11/2016 13:08:36 -ExtensionConfiguration <extensions>
2016-11-11T13:09:16.8000754Z ##[error]BadRequest : The role size specified for role MyService.Tasks in the newly uploaded package differs from the role size for this role in the currently deployed service. Changing the size of the role will cause all local data on the role instance to be lost. Please use the Force flag if you want to allow the loss of local data.
How to include “-Force” flag when using VSTS deployment task?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
No support for "-Force" option when upgrading Azure cloud ...
I'm using Azure Cloud Services deployment task. Allow upgrade flag is set to true. When I try to change vmsize (via configuration file)...
Read more >How to update a cloud service (classic) - Azure - Microsoft Learn
Learn how to update cloud services in Azure. Learn how an update on a cloud service proceeds to ensure availability.
Read more >Azure Cloud Services REST - Upgrade Deployment
Learn how the Upgrade Deployment asynchronous operation initiates an update of role instances in a deployment using the package and ...
Read more >Swap or switch deployments in Azure Cloud Services ...
Learn how to swap or switch between deployments in Azure Cloud Services (extended support).
Read more >Issues you may meet when upgrading Azure function app to V4
This blog will talk about some common issues you may meet when you try to upgrade your Azure function from older runtime version...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Currently this feature is checked in to our development branch. it will be available in next deployment of VSTS which is approximately finishes in 3 - 4 weeks from now. Are you taking about current VSTS deployment or you went ahead and uploaded new version the task?? If you haven’t uploaded then that is expected behaviour only, as the latest changes are not yet deployed to production.
hey for everyone waiting on this the workaround I found was to change the azure deployment slot on my release to ‘Staging’, which is not as worried about ‘local data loss’ 😃, and then swap them through the azure console!