Azure / Azure/azure-rest-api-specs

Container App Deployment Broken - type rename to environmentType is not accepted correctly

Open
#17,431 6 comments 2 reactions 0 assignees View on GitHub
customer-reported question Service Attention Web Apps
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

It seems that a recent rename of `type` to `environmentType` broke the deployment of container apps:

https://github.com/Azure/azure-rest-api-specs/blob/bbc623e46174253535ed0393d073741069ce9c31/specification/web/resource-
manager/Microsoft.Web/stable/2021-03-01/KubeEnvironments.json#L519

When running a deployment now, the following error occurs:

```
error: Code="BadRequest" Message="KubeEnvironment is invalid. Must specify either AksResourceID or ArcConfiguration or 'type' must be 'Managed'." Details=[{"Message":"KubeEnvironment is invalid. Must specify either AksResourceID or ArcConfiguration or 'type' must be 'Managed'."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"51021","Message":"KubeEnvironment is invalid. Must specify either AksResourceID or ArcConfiguration or 'type' must be 'Managed'.","MessageTemplate":"{0} is invalid. {1}","Parameters":["KubeEnvironment","Must specify either AksResourceID or ArcConfiguration or 'type' must be 'Managed'."]}}]
```

Contributor guide

Open the contributing guide

Research direction

Start with specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/KubeEnvironments.json around line 519 and compare the renamed field with the deployment error. Reproduce the container app deployment and verify that the resulting request is accepted without the reported KubeEnvironment validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.