Skip to content

creating container app with template throws error that it shouldn't #14660

@romtecmax

Description

@romtecmax

For lack of a better place to post this:

I get the following error when trying to deploy a container app using a template. As you can read from the error message, the error is obviously not as described, since my revision name follows the conventions. Also the container app name is test-api and therefore they are less than 54 characters together. Seems like a bug, as the error message seems to be wrong.

{
  "code": "InvalidTemplateDeployment",
  "details": [
    {
      "code": "ValidationForResourceFailed",
      "message": "Validation failed for a resource. Check 'Error.Details[0]' for more information.",
      "details": [
        {
          "code": "ContainerAppInvalidRevisionName",
          "message": "Revision name has an invalid value 'testrevision'. A revision name must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character. The length of the revision name must not be more than a combined 54 characters with the container app name."
        }
      ]
    }
  ],
  "message": "The template deployment 'Microsoft.Template-20260107190801' is not valid according to the validation procedure. The tracking id is 'b798306a-b958-471a-84ad-1ccb076617bf'. See inner errors for details."
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions