Cannot migrate cmg

Phil Mullins 0 Reputation points
2024-03-09T19:05:40.2733333+00:00

Move-AzureService : ConflictError : Migration could not be completed on deployment f5cf5ee849eb4c498fc4e31ad080849d in

hosted service vencmg because the deployment's metadata is stale. Please abort the migration and upgrade the

deployment before retrying migration. Validation Message: The service name 'SCCMProxy'in the service defintion file

does not match the name 'vencmg' in the service configuration file

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,201 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Suwarna S Kale 321 Reputation points
    2024-03-10T01:37:30.8466667+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    The error message indicates a conflict related to the service name mismatch between the service definition file and the service configuration file. Here are the steps to resolve this:

    1. Review Service Names: Check both the service definition file (usually an XML or JSON file) and the service configuration file (usually a .cscfg file) for any discrepancies in the service names. Ensure that the service names match exactly.
    2. Update Service Names: If you find any differences, update the service names in either the definition file or the configuration file to match each other. Make sure that the service name is consistent across both files.
    3. Retry Migration: After updating the service names, retry the migration process. Validate that the deployment metadata is no longer stale.
    4. Validate Dependencies: Ensure that any dependencies (such as storage accounts, virtual networks, etc.) are correctly configured and referenced in both files.
    5. Test and Monitor: Test the migration again and monitor the process for any further issues.

    It is critical to carefully review the service names and ensure consistency between the definition and configuration files. If you encounter any other issues during the migration, happy to help investigate further based on the specific error messages. 🙂

    Does the response help answer your question? Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution. Thanks

    0 comments No comments

  2. Phil Mullins 0 Reputation points
    2024-03-10T16:03:20.98+00:00

    I have tried locating the definition file but cannot find it. I do see in SCCM CMG side it shows new "hostName": "vencmg.westus.cloudapp.azure.com" and in Azure side still shows

    "hostName": "vencmg.cloudapp.net"

    I have tried changing that value and uploading but it also required a zip file as well as the .cscfg file.

    I did not want to lose my old GW as I have a lot of endpoints that talk to this but I fear I may have to remove this cmg and start anew.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.