question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No support for "-Force" option when upgrading Azure cloud service

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mvvsubbucommented, Feb 10, 2017

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.

0reactions
yezrcommented, Feb 23, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found