Azure / Azure/azure-quickstart-templates

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

Open
#14,660 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

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."
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported container app deployment from the template and inspect the validation response containing ContainerAppInvalidRevisionName. No template file or test is named, so identify which template produces the shown error and determine whether the reported revision and app names are being handled correctly. Done means the issue has a confirmed cause and the deployment either succeeds or reports the actual validation problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.