You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some not yet identified reason, the azure/webapps-deploy@v3 (I also tried azure/[email protected]) fails with the following error:
Error: Deployment Failed, Error: No credentials found. Add an Azure login action before this action. For more details refer https://github.com/azure/login
My GitHub actions workflow job looks as follows:
deploy:
name: Deploy to Azure Web Appruns-on: ubuntu-latestenvironment: devneeds: [build_test_publish, iac_apply]steps:
- name: Download artifactuses: actions/download-artifact@v4
- uses: azure/login@v2with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}tenant-id: ${{ secrets.AZURE_TENANT_ID }}subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy to Azure Web Appuses: azure/[email protected]with:
app-name: my-apppackage: .
- name: Logoutrun: | az logout
The steps Download artifact and azure/login@v2 both succeed. To set up the secrets, I followed the official docs here and the jobs before the one above succeed with the same secrets (iac_apply for example). I also enabled debug logging where I saw that az account show is executed and the next log entry was {} so I assume the account show command returns an empty object. But I have no idea why. Would be happy about any suggestions, hints or resolutions.
The text was updated successfully, but these errors were encountered:
We have the exact same setup and have the exact same problem. The az login work for Azure/functions-action but NOT for azure/webapps-deploy with a private endpoint. The workaround is to use azure/[email protected] . Why this has been neglected for so long, the action is already on 3.0.2. Who's even using the versions above 2.2.9 if they are not working?
Hello @prathambande thanks for the hint. Yes, I do. I wasn't aware of this could cause the issue, but could make sense. I'll check in the next days. If this helps I can create a PR to extend the README with a troubleshooting section. Would that be appreciated?
For some not yet identified reason, the
azure/webapps-deploy@v3
(I also triedazure/[email protected]
) fails with the following error:My GitHub actions workflow job looks as follows:
The steps
Download artifact
andazure/login@v2
both succeed. To set up the secrets, I followed the official docs here and the jobs before the one above succeed with the same secrets (iac_apply for example). I also enabled debug logging where I saw thataz account show
is executed and the next log entry was{}
so I assume the account show command returns an empty object. But I have no idea why. Would be happy about any suggestions, hints or resolutions.The text was updated successfully, but these errors were encountered: