Azure / Azure/azure-rest-api-specs
Container App Deployment Broken - type rename to environmentType is not accepted correctly
- 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
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