-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment fails from time to time as the actions fails to find the function App #116
Comments
This issue is idle because it has been open for 14 days with no activity. |
I'm also getting this. The function app is there, but it breaks during deployment
|
Redeploying it worked though. But then I hit the same issue in the next environment (test -> prod) |
To bypass the issue I am querying the publish profile via az CLI for now. Here's an example: - uses: azure/login@v1
with:
creds: <CREDENTIALS>
- name: Retrieve publish profile for deployment
id: publishProfileRetrieval
run: |
publishProfiles=$(az webapp deployment list-publishing-profiles \
--name "<FUNCTION APP NAME>" \
--resource-group "<RESOURCE GROUP NAME>" \
--subscription "<SUBSCRIPTION ID>" --xml)
echo "::add-mask::$publishProfiles"
echo "::set-output name=publishProfiles::$publishProfiles"
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
with:
app-name: <FUNCTION APP NAME>
package: <PATH TO DEPLOYMENT PACKAGE>
publish-profile: ${{ steps.publishProfileRetrieval.outputs.publishProfiles }} |
Had the same issue, deleting the functions and re-running the pipeline did it, not the best solution in any case.. |
This issue is idle because it has been open for 14 days with no activity. |
I am facing the same issue. Any news on this? |
I am confused, too and don't understand why this issue has been closed. I do understand that the error seems to come from a library used here. But as long as the library isn't fixed and this action not upgraded to use the fixed version, I see no reason to close this bug. I would even contribute to the library but there are PRs open since 2020 so I fear a patch wouldn't be picked up anytime soon. :/ |
This issue is idle because it has been open for 14 days with no activity. |
@patelchandni any news on this? |
This issue is idle because it has been open for 14 days with no activity. |
This is still an issue. What about handling it instead of having the bots close it? |
That didn't fix it for me. Thanks for the snippet though, I am using it regardless. |
This issue is idle because it has been open for 14 days with no activity. |
This issue is idle because it has been open for 14 days with no activity. |
Thank you @Jtango18 !! Anything yet? I'm also on ARM |
It's no longer repeatable from me after some changes by the support/ARM team. Can't state with 100% certainty that it's resolved. But works on my machine now 🤷♂️ |
Had similar issue with azure/webapps-deploy@v2 and by accident caused by frustrations ended up with the same solution. |
This issue is idle because it has been open for 14 days with no activity. |
Any news about this? |
I can confirm this also happens with a function app created with Bicep (haven't yet figured out what unblocks it) |
This issue is idle because it has been open for 14 days with no activity. |
Same problem here |
Same here. |
In my case the issue is caused by a breaking change introduced in Terraform 0.14 mentioned in the following issue hashicorp/terraform#27100. In line 7776 on the below screenshot there is the exact URL called from within the functions action and there are additional encoded quotation marks in the function app name The only change I had to make was passing the quoted value through jq function like this: |
This issue is idle because it has been open for 14 days with no activity. |
Same issue here. It was working couple of days ago, and now suddenly, resource doesn't exist. Not sure where to go from here. Anyone found a viable solution? I tried passing the publish profile as suggested, it no longer says resource doesn't exist, and the deployment succeeds on paper, but I still am unable to find my functions in my function app after it finishes. |
This issue is idle because it has been open for 14 days with no activity. |
Same issue here with a new azure function. Created the function yesterday and now the same issue. This -> https://learn.microsoft.com/en-us/troubleshoot/azure/devops/resource-not-exist-error-services-deployment cant be the solution, because of the delay the function was created a day before. Is use a managed idenitiy to deploy. May permissons are not set? |
Same issue here too... |
Testing latest version of functions-action due to bug Azure/functions-action#116
I experienced this while setting up CD for an existing function app slot, using the generated workflow file. I used the token retrieved in the azure/login action (using the managed identity azure generated) to call the endpoint that the azure/functions-action calls and confirmed the response was an empty array. After I gave the generated managed identity the Website.Contributor role for the main function app (in addition to the slot), deployment succeeded. |
Hi,
I am deploying a dotnet-isolated function app using .NET 6 and from time to time the deployment fails with the following error
I am using RBAC authentication via
azure/login@v1
. The service principal has contributor permission on the whole subscription.When I use Re-run all jobs for the workflow run, then deployment usually works fine.
I am deploying the function app via terraform, before deployment runs. But it also fails, if the function app is already there and exists for hours. So doesn't seem to be some kind of "race condition".
As I deploy IaC via terraform using publish-profiles would be overly complicated I would say. There seems to be no native support in terraform's azurerm to get the profile.
The text was updated successfully, but these errors were encountered: