Azure / spring-apps-deploy

GitHub Actions to deploy to Azure Spring Cloud
MIT License
12 stars 9 forks source link

Action failed with error: Service tier not recognizable in service #34

Open brijshah27 opened 1 year ago

brijshah27 commented 1 year ago

Using the sample from the readme with following action

        name: deploy to production with artifact
        uses: Azure/spring-apps-deploy@v1
        with:
          azure-subscription: ${{ env.AZURE_SUBSCRIPTION }}
          action: Deploy
          service-name: ${{ env.SERVICE_NAME }}
          app-name: ${{ env.APP_NAME }}
          use-staging-deployment: false
          package: ${{ env.ASC_PACKAGE_PATH }}/**/*.jar

Getting this error: Error: Action failed with error: Service tier not recognizable in service appname app serviceName. Using Azure spring apps on Standard consumption & dedicated (preview)

RuoyuWang-MS commented 1 year ago

Hi Brij. I think you use the consumption tier right? I am sorry that we don't support this preview tier in GitHub Action right now. Would you mind try standard/basic tier? Thanks for your question!

brijshah27 commented 1 year ago

Thank you for your response. The action worked with basic tier. Meanwhile I'll use https://github.com/marketplace/actions/azure-cli-action as a workaround.

exaucae commented 10 months ago

can we have the gist of your updated workflow file using the cli action, @brijshah27 ?

brijshah27 commented 10 months ago

@exaucae I am using this

name: Azure CLI Action to deploy to dev with main branch
        uses: Azure/cli@v1.0.7
        with:
          inlineScript: |
            az spring app deploy \
            --resource-group <rg-name>\
            --service <service-name>\
            --name <instance-name> \
            --artifact-path ${{ env.ASC_PACKAGE_PATH }}/backend/**/*.jar \
            --runtime-version Java_17 \
            --jvm-options='-Dspring.profiles.active=dev'
exaucae commented 10 months ago

thanks, @brijshah27

vikingua commented 1 month ago

Any idea when consumption tier will be supported ?