GithubHelp home page GithubHelp logo

Inconsistent "Error: Deployment Failed with Error: Error: Action does not support app service with kind linux,container." about webapps-deploy HOT 12 CLOSED

brookpatten avatar brookpatten commented on August 14, 2024
Inconsistent "Error: Deployment Failed with Error: Error: Action does not support app service with kind linux,container."

from webapps-deploy.

Comments (12)

aksm-ms avatar aksm-ms commented on August 14, 2024

@brookpatten Can you please run the workflow once and share the debug logs? Please create a secret ACTIONS_STEP_DEBUG and set it to true to get debug logs

from webapps-deploy.

brookpatten avatar brookpatten commented on August 14, 2024

@aksm-ms Here is the log for the step failing. I have omitted some strings to avoid posting anything confidential and have added Thank you for investigating.

with:
  app-name: webapp-pass-depot-prod
  images: ghcr.io/<omitted>/<omitted>:build-335
  slot-name: production
  package: .
env:
  AZURE_HTTP_USER_AGENT: 
  AZUREPS_HOST_ENVIRONMENT: 
##[debug]try-get AzureCLIAuthorizer
##[debug]"/usr/bin/az" account show
##[debug]"/usr/bin/az" cloud show
##[debug]"/usr/bin/az" account get-access-token
::add-mask::***
##[debug][GET] https://management.azure.com/subscriptions/<omitted>/resources?$filter=resourceType EQ 'Microsoft.Web%2FSites' AND name EQ 'webapp-pass-depot-prod'&api-version=2016-07-01
##[debug][GET] https://management.azure.com/subscriptions/<omitted>/resources?%24filter=resourceType+EQ+%27Microsoft.Web%2fSites%27+AND+name+EQ+%27webapp-pass-depot-prod%27&api-version=2016-07-01&%24skiptoken=<omitted>%3d
Error: Deployment Failed with Error: Error: Action does not support app service with kind linux,container.
##[debug]Deployment failed
##[debug]Node Action run completed with exit code 1
##[debug]AZURE_HTTP_USER_AGENT='GITHUBACTIONS_DeployWebAppToAzure_<omitted>'
##[debug]AZURE_HTTP_USER_AGENT=''
##[debug]Finishing: Deploy Api build-335 to prod

from webapps-deploy.

aksm-ms avatar aksm-ms commented on August 14, 2024

@brookpatten thanks for sharing logs. I have tried to reproduce the issue. While deploying to a linux webapp-container using the action, I did not get any errors.
Can you please try to run your workflow using 'azure/webapps-deploy@users/aksm-ms/linux-container-app-kind' instead of 'azure/webapps-deploy@v2' and share logs?

from webapps-deploy.

aksm-ms avatar aksm-ms commented on August 14, 2024

@brookpatten Can you please share the logs for debugging further?

from webapps-deploy.

brookpatten avatar brookpatten commented on August 14, 2024

Here is a log, thank you.

##[debug]Evaluating condition for step: 'Deploy Api v5.0.341 to prod'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Deploy Api v5.0.341 to prod
##[debug]Loading inputs
##[debug]Evaluating: format('webapp-pass-depot-***0***', github.event.inputs.environment)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'webapp-pass-depot-***0***'
##[debug]..Evaluating Index:
##[debug]....Evaluating Index:
##[debug]......Evaluating Index:
##[debug]........Evaluating github:
##[debug]........=> Object
##[debug]........Evaluating String:
##[debug]........=> 'event'
##[debug]......=> Object
##[debug]......Evaluating String:
##[debug]......=> 'inputs'
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'environment'
##[debug]..=> 'prod'
##[debug]=> 'webapp-pass-depot-prod'
##[debug]Result: 'webapp-pass-depot-prod'
##[debug]Evaluating: format('ghcr.io/<omitted>/<omitted>:***0***', github.event.inputs.tag)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'ghcr.io/<omitted>/<omitted>:***0***'
##[debug]..Evaluating Index:
##[debug]....Evaluating Index:
##[debug]......Evaluating Index:
##[debug]........Evaluating github:
##[debug]........=> Object
##[debug]........Evaluating String:
##[debug]........=> 'event'
##[debug]......=> Object
##[debug]......Evaluating String:
##[debug]......=> 'inputs'
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'tag'
##[debug]..=> 'v5.0.341'
##[debug]=> 'ghcr.io/<omitted>/<omitted>:v5.0.341'
##[debug]Result: 'ghcr.io/<omitted>/<omitted>:v5.0.341'
##[debug]Loading env
Run azure/webapps-deploy@users/aksm-ms/linux-container-app-kind
##[debug]try-get AzureCLIAuthorizer
##[debug]"/usr/bin/az" account show
##[debug]"/usr/bin/az" cloud show
##[debug]"/usr/bin/az" account get-access-token
::add-mask::***
##[debug][GET] https://management.azure.com/subscriptions/<omitted>/resources?$filter=resourceType EQ 'Microsoft.Web%2FSites' AND name EQ 'webapp-pass-depot-prod'&api-version=2016-07-01
##[debug][GET] https://management.azure.com/subscriptions/<omitted>/resources?%24filter=resourceType+EQ+%27Microsoft.Web%2fSites%27+AND+name+EQ+%27webapp-pass-depot-prod%27&api-version=2016-07-01&%24skiptoken=<omitted>
appKind: undefined; realKind: linux,container
Error: Deployment Failed with Error: Error: Action does not support app service with kind linux,container.
##[debug]Deployment failed
##[debug]Node Action run completed with exit code 1
##[debug]AZURE_HTTP_USER_AGENT='GITHUBACTIONS_DeployWebAppToAzure_<omitted>'
##[debug]AZURE_HTTP_USER_AGENT=''
##[debug]Finishing: Deploy Api v5.0.341 to prod

from webapps-deploy.

aksm-ms avatar aksm-ms commented on August 14, 2024

@brookpatten Thanks for sharing logs. Can you please confirm the resource you are using in the following workflow is a Azure web app for container?

- name: Deploy
      uses: Azure/webapps-deploy@v2
      with:
        app-name: web-app-foo-${{ github.event.inputs.environment }}
        images: ghcr.io/client-name/image-name:tag

Please refer Azure Web Apps for Containers

from webapps-deploy.

brookpatten avatar brookpatten commented on August 14, 2024

Yes, it absolutely is. In fact It is already running the image since I configured it manually using azure portal.

The one thing that may make it atypical is that it is in an App Service Environment, not the normal azure cloud, but it is definitely an azure app service. As I said we have two such environments, for one it works no problem, for the other it does not.

from webapps-deploy.

aksm-ms avatar aksm-ms commented on August 14, 2024

@brookpatten Can you please elaborate app service environment?

from webapps-deploy.

brookpatten avatar brookpatten commented on August 14, 2024

@aksm-ms It's an offering from MS which offers network isolation, among other things, I am not an expert, but here is an article about it https://azure.github.io/AppService/2020/09/22/asev3-public-preview-preannouncement.html

from webapps-deploy.

aksm-ms avatar aksm-ms commented on August 14, 2024

@N-Usha Currently we do not support app kind "linux,container" in action code. Can we add this as a future enhancement?

from webapps-deploy.

aksm-ms avatar aksm-ms commented on August 14, 2024

As discussed with @N-Usha, marking this as enhancement.

from webapps-deploy.

github-actions avatar github-actions commented on August 14, 2024

This issue is stale because it has been open for 14 days with no activity. Please remove the stale label or comment on the issue otherwise this will be closed in 5 days

from webapps-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.