CloudServiceDefinitionXml exceeds max input endpoints per deployment (it doesn't)

Guy Godin 6 Reputation points
2025-04-23T17:22:48.6533333+00:00

Getting the following error trying to deploy, stop or restart my cloud service (extended support):

CloudServiceDefinitionXml exceeds max input endpoints per deployment. Current input endpoints: 26, limit: 25

I have 25 endpoints in the xml, not 26. The service has not changed in years. I did try to add remote desktop connectivity through the azure portal earlier in the day and that failed with a similar error message. Now it won't let me deploy or restart my cloud service at all with the error above. It seems like the failed attempt to add remote desktop kept a lingering endpoint that's preventing me from deploying/restarting my service. I see no remote desktop entries under Settings -> Remote Desktop. I need help urgently.

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
752 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Guy Godin 6 Reputation points
    2025-04-23T23:15:41.7266667+00:00

    So I reduced the number of endpoints in my service to 24 (instead of 25), published it, then bumped it back up to 25 and re-published again and that solved the issue. Looks like the bug is with the Remote Desktop removal; it's not lowering the internal count correctly.

    1 person found this answer helpful.
    0 comments No comments

  2. anashetty 3,155 Reputation points Microsoft External Staff
    2025-04-23T18:32:03.56+00:00

    Hi Guy Godin,

    It appears you're encountering an issue that your cloud service deployment has exceeded the maximum number of input endpoints allowed, which is 25. It’s possible that a lingering or failed endpoint from your earlier attempt to add remote desktop connectivity is causing the issue.

    The limits imposed on Azure Cloud Services, the maximum number of input endpoints is only 25.User's image

    When you attempted to add Remote Desktop connectivity through the Azure portal, Azure likely added an additional input endpoint to facilitate RDP access. Even though the attempt failed and no RDP entries are visible under Settings → Remote Desktop, the system may have retained this endpoint configuration internally.

    To remove the RDP extension using Azure PowerShell, you can follow the steps:

    Connect to your AZ account and set the correct subscription:

    Connect-AzAccount
    
    Set-AzContext -SubscriptionId "<your-subscription-id>"
    

    Retrieve the existing cloud service:

    $resourceGroupName = "<your-resource-group>"
    $cloudServiceName = "<your-cloud-service-name>"
    $cloudService = Get-AzCloudService -ResourceGroupName $resourceGroupName -CloudServiceName $cloudServiceName
    

    Remove the RDP extension from the cloud service's extension profile:

    $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension | Where-Object { $_.Type -ne "RDP" }
    

    Then update the cloud service, to apply changes:

    $cloudService | Update-AzCloudService
    

    For detailed information, please check: Update Remote Desktop Extension using PowerShell

    If you have any further queries, let me know. If the information is helpful, please click on Upvote.

    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.