Skip to content

Specify resource group or app service environment. #256

Closed
@ayuina

Description

@ayuina

Deployment failed when there are multiple app services which have same name. Of course we can't create Non-ASE app service which have duplicate name because all app services have same domaim suffix (azurewebsites.net) . But ASE app service can have duplicate name because ASE has unique domain suffix (asename.appserviceenvironment.net) each other.

This action seems to search app service instance by the name only, but the name may not be unique in ASE app service. So I think this action should have option to specify the resource group or environment for uniqueness.

workflow file is below,

      - name: Deploy to Azure Web App in ILB ASE v2
        id: deploy-to-app2
        uses: azure/webapps-deploy@v2
        with:
          app-name: 'app2'
          package: .

but there are multiple app service named "app2".
image

and workflow fail with this error.

Run azure/webapps-deploy@v2
  with:
    app-name: app2
    package: .
    slot-name: production
  env:
    AZURE_HTTP_USER_AGENT: 
    AZUREPS_HOST_ENVIRONMENT: 
Error: Deployment Failed with Error: Error: Multiple resource group found for resource nameapp2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions