Loading...

Failed to Update Cloud Service due to Ongoing Migration Progress

Failed to Update Cloud Service due to Ongoing Migration Progress

Symptom

 

Users sometimes may fail to update the cloud service (classic) or the cloud service (extended support) due to the cloud service being under the in-place migration process. Users may see following error messages when they try to update the cloud service (classic) or the cloud service (extended support).

  • Updating the cloud service (classic)

    "statusMessage": "{\"error\":{\"code\":\"ChangeDeploymentConfigurationOperationFailed\",\"message\":\"The Change Deployment Configuration operation failed for the domain '<classic cloud service name>' in the deployment slot 'production' with the name '<classic cloud service name>- x/xx/2022 xx:xx:xxPM': 'Deployment xx in HostedService <classic cloud service name> is in the process of being migrated and hence cannot be changed.'.\"}}",

  • Updating the cloud service (extended support)
    "statusMessage": "{\"error\":{\"code\":\"OperationNotAllowed\",\"message\":\"The operation cannot be performed on cloud service '<classic cloud service name>' because a migration is in progress. Commit the migration to start managing the cloud service.\"}}"

Cause

 

When a cloud service (classic) is migrated to the cloud service (extended support), it will go through the following 4 stages. After the preparation step, if users do not choose either “abort” or “commit” for the migration, both the cloud service (classic) and the automatically created cloud service (extended support) will be locked. In this stage, if users try to update the cloud service (classic) or the cloud service (extended support), the error notification will be prompted out and indicate users cannot update the cloud services. 

 

  1. Validate Migration - Validates that the migration will not be prevented by common unsupported scenarios.
  2. Prepare Migration – Duplicates the resource metadata in Azure Resource Manager. All resources are locked for create/update/delete operations to ensure resource metadata is in sync across Azure Server Manager and Azure Resource Manager. All read operations will work using both Cloud Services (classic) and Cloud Services (extended support) APIs.
  3. Abort Migration - Removes resource metadata from Azure Resource Manager. Unlocks all resources for create/update/delete operations.
  4. Commit Migration - Removes resource metadata from Azure Service Manager. Unlocks the resource for create/update/delete operations. Abort is no longer allowed after commit has been attempted.

Reference doc: 

Migrate Azure Cloud Services (classic) to Azure Cloud Services (extended support) | Microsoft Docs

 

Solution

 

Users need to commit or abort the ongoing cloud service (classic) migration before updating the cloud services.

  • 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

 

After aborting the migration, the created cloud service (extended support) will be deleted automatically. And then users can successfully update 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).

 

 

Published on:

Learn more
Azure PaaS Blog articles
Azure PaaS Blog articles

Azure PaaS Blog articles

Share post:

Related posts

Azure Storage - TLS 1.0 and 1.1 retirement

Overview TLS 1.0 and 1.1 retirement on Azure Storage was previously announced for Nov 1st, 2024, and it was postponed recently to 1 year later...

1 year ago

Efficient Management of Append and Page Blobs Using Azure Storage Actions

  Overview In Azure Storage, Blob Lifecycle Management (BLM) allows you to automate the management of your data based on rules defined by...

1 year ago

[Azure AI Search] Internal Server Error when creating CMK encrypted objects

Scenario Customers follow the Microsoft doc to create CMK encrypted objects (data source, index etc.), but get the 500 Internal Serv...

1 year ago

Optimizing Azure Table Storage: Automated Data Cleanup using a PowerShell script with Azure Automate

Scenario This blog’s aim is to manage Table Storage data efficiently. Imagine you have a large Azure Table Storage that accumulates logs from ...

1 year ago

Optimizing Azure Table Storage: Automated Data Clean-up using a PowerShell script with Azure Automat

Scenario This blog’s aim is to manage Table Storage data efficiently. Imagine you have a large Azure Table Storage that accumulates logs from ...

1 year ago

Restoring Soft-Deleted Blobs with multithreading in Azure Storage Using C#

Blob soft delete is an essential feature that safeguards your data against accidental deletions or overwrites. By retaining deleted data for a...

1 year ago

Performing simple Azure Table Storage REST API operations using curl command.

The blog provides guidance to perform simple Table Storage REST API operations such as Create table, Delete Table, Insert entity, Delete entit...

1 year ago

Bulk delete all the old jobs from the batch account

Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This also overrides the retention period for Task dat...

1 year ago

Utilizing Azure Storage and Runbooks for scheduled automated backups of Azure SQL Databases

In this article, we are going to provide detailed steps to create a scheduled Azure SQL Database backup to storage account using automation. T...

2 years ago

[Azure Service Bus] JMS messages getting dead-lettered

The article discusses a problem where numerous messages end up in the dead letter queue (DLQ) when the JMS service bus consumer connects to th...

2 years ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.