Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
XavierGeerinck opened this issue Jan 20, 2022 · 6 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. Web Apps

Comments

@XavierGeerinck
Copy link

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'."]}}]
@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Jan 20, 2022
@xwang971
Copy link
Contributor

Hi @XavierGeerinck, sorry for the inconvenience. The issue was because the backend changes have not been deployed to all regions which will be done before the end of next week. Could you try with stable/2021-02-01 as workaround for now?

@XavierGeerinck
Copy link
Author

Hi @xwang971 thanks a lot for the fast response, great to see that the fix is being deployed. I have reverted to an old API Spec for now which resolved it.

Just to be sure, so next week we should switch to environmentType then?

@xwang971
Copy link
Contributor

Glad to help!

Once the changes are deployed. Either type or environmentType could be used.

@keryul keryul added Service Attention This issue is responsible by Azure service team. Web Apps labels Jan 21, 2022
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jan 21, 2022
@ghost
Copy link

ghost commented Jan 21, 2022

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

Issue Details

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'."]}}]
Author: XavierGeerinck
Assignees: -
Labels:

question, Service Attention, customer-reported, Web Apps, needs-triage

Milestone: -

@alecor191
Copy link

@xwang971 do you know if the changes were deployed to all regions? I'm asking as I'm running into the same issue (also error message still mentions ...'type' must be 'Managed'.

@andrekiba
Copy link

any update on this? thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. Web Apps
Projects
None yet
Development

No branches or pull requests

5 participants