AzureArc: Resource name in namespace 'Microsoft.HybridCompute' cannot contain more than 54 characters.

Dmitriy Kolesnikov 11 Reputation points
2025-02-05T16:05:23.2566667+00:00

Using the onboarding script, I tried to onboard a virtual machine from GCP to Azure Arc. The VM (linux RedHAT) reports its hostname as "<servername>.<region>.c.<projectname>.internal" and I get the following error from my script:

"FATAL invalid resource name 'feprodsssrhl01.us-central1-a.c.fluence-services.internal'. Resource name can only contain alphanumeric characters, '-' , '_' or '.'. Resource name in namespace 'Microsoft.HybridCompute' cannot contain more than 54 characters. "

Is there a workaround to onboard that VM without changing its name?

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
476 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pranay Reddy Madireddy 2,075 Reputation points Microsoft Vendor
    2025-02-06T15:59:35.8033333+00:00

    Hi @Dmitriy Kolesnikov

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:
    AzureArc: Resource name in namespace 'Microsoft.HybridCompute' cannot contain more than 54 characters.

    Solution:
    I resolved it by adjusting my script, adding the "resourcename" parameter defined as first 32 symbols from the "hostname" command output value.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

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.