Failed to Update Cloud Service due to Ongoing Migration Progress

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Tech Community.

Users sometimes may fail to update the cloud service (classic) or the cloud service (extended support) due to the cloud service being under the migration process. Both the cloud service (classic) and the automatically created cloud service (extended support) will be locked when there is an ongoing migration process. This blog will introduce this issue from the following two sides:

 

  • How this issue came out
  • How to resolve this issue and update the cloud services

 

How this issue came out

 

When users try to migrate the cloud service(classic) to the cloud service (extended support), after the preparation stage, there will be a new cloud service (extended support) created automatically.

yiyang2_10-1654219998281.png

After the preparation step, there will be a newly created cloud service (extended support)

yiyang2_0-1654223173567.png

Newly created cloud service (extended support)

 

After the preparation step, if users do not choose either “abort” or “commit” for the migration, both the cloud service (classic) and the newly created cloud service (extended support) will be locked at this stage.

 

In this stage, if users try to update the classic cloud service or the newly created cloud service (extended support), the error notification will be prompted out and indicate users cannot update the cloud service. Users can check the detailed error message from the Activity Log.

 

  • Failed to update the cloud service (classic)

The following example shows the scenario when I failed to update the cloud service (classic) due to the ongoing migration process.

 

yiyang2_12-1654219998316.png

Prompted error message when I update the configuration

The detailed explanation can be found in the Activity log.

yiyang2_13-1654219998336.png

Error message from the Activity Log

 

Detailed error message:

 "statusMessage": "{\"error\":{\"code\":\"ChangeDeploymentConfigurationOperationFailed\",\"message\":\"The Change Deployment Configuration operation failed for the domain 'classiceastus' in the deployment slot 'production' with the name 'classicCSeastUS - 1/20/2022 6:08:58 PM': 'Deployment e61b35a882c54ec5aed1eea290f6d3bd in HostedService classiceastus is in the process of being migrated and hence cannot be changed.'.\"}}",

 

  • For the cloud service (extended support), 

The following example shows the scenario when I failed to update the cloud service (extended support) due to the ongoing migration process.

 

yiyang2_14-1654219998357.png

Prompted error when I scaled out the cloud service (extended support)

 

yiyang2_15-1654219998374.png

Error message from the Activity Log

Detailed error message

 "statusMessage": "{\"error\":{\"code\":\"OperationNotAllowed\",\"message\":\"The operation cannot be performed on cloud service 'classiceastus' because a migration is in progress. Commit the migration to start managing the cloud service.\"}}"

 

How to resolve this issue

 

Before updating the cloud services, users need to commit or abort the ongoing cloud service (classic) migration.

  • Abort the migration
    • Using the Azure PowerShell commands
      Users can use the following command to abort the ongoing migration process.
      Move-AzureService -Abort -ServiceName $serviceName -DeploymentName $deploymentName
      Reference Doc: Migrate to Azure Cloud Services (extended support) using PowerShell | Microsoft Docs
    • From the Azure Portal
      Users need to go through the validation and preparation steps again and click the “Abort” to cancel the migration.

yiyang2_16-1654219998382.png

Click “abort” to cancel the migration process

After aborting the migration, the created cloud service (extended support) will be deleted automatically. And then users can successfully update the cloud service (classic).

yiyang2_0-1654220919543.png

The newly created cloud service (extended support) is not available

 

yiyang2_18-1654219998391.png

Succeed in updating the cloud service (classic)

 

  • Commit the migration
    Instead of aborting the migration, users also can commit the migration. Similar to the above steps, users can commit the migration from the Azure Portal or the Azure PowerShell.

After committing the migration, the classic cloud service will be migrated to the corresponding cloud service (extended support). The cloud service (classic) will not be available and users can successfully update the migrated cloud service (extended support).

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.