MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.42k forks source link

Azure Spring Apps - resourceType cannot be DOCKER_IMAGE when its runtimeVersion is CONTAINER #104240

Closed ch-enfuse closed 1 year ago

ch-enfuse commented 1 year ago

Azure Spring Apps - deploying application as web static files

Followed this guide to deploy my react application. After the build-packs build my application and the process gets to deploying the resulting image container i get the following error: artifact.resourceType cannot be DOCKER_IMAGE when its runtimeVersion is CONTAINER

I am deploying my source code and I am using these flags to build my application --build-env BP_WEB_SERVER=nginx BP_NODE_RUN_SCRIPTS=build BP_WEB_SERVER_ROOT=build

Any help would be appreciated!


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

RamanathanChinnappan-MSFT commented 1 year ago

@ch-enfuse

I've delegated this to @KarlErickson, a content author, to review and share their valuable insights.

KarlErickson commented 1 year ago

Hi @ch-enfuse - thanks for the feedback! I'll alert the product team to investigate.

@yilims can you comment? Thanks!

yilims commented 1 year ago

@ch-enfuse: this happens when you deploy source code to an app with Deployment Type "Custom Container". Pls create a new app or re-deploy your react application to an application with Deployment Type "Artifacts (Java/Polyglot)". Then it should work.

ch-enfuse commented 1 year ago

@yilims got it. we got it working now :) Thank you!

KarlErickson commented 1 year ago

doc has been updated

please-close