Azure-Samples / Azure-Samples/digital-twins-samples

(NotFound) Error retrieving function. for az functionapp show

Open
#83 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
127
Forks
92
PR merge metrics
No merged PRs in 30d

Description

After seemingly successfull zip deployment of functions from local /publish.zip

`az functionapp deployment source config-zip --resource-group MyResourceGroupName --name myfunctionappname --src "./publish.zip"`
returning:

`Getting scm site credentials for zip deployment
Starting zip deployment. This operation can take a while to complete ...
Deployment endpoint responded with status code 202

{
"active": false,
"author": "N/A",
"author_email": "N/A",
"complete": true,
"deployer": "ZipDeploy",
"end_time": "2022-11-23T15:09:03.5679832Z",
"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"is_readonly": true,
"is_temp": false,
"last_success_end_time": "2022-11-23T15:09:03.5679832Z",
"log_url": "https://myfunctionappname.scm.azurewebsites.net/api/deployments/latest/log",
"message": "Created via a push deployment",
"progress": "",
"provisioningState": "Succeeded",
"received_time": "2022-11-23T15:08:54.3218891Z",
"site_name": "myfunctionappname",
"start_time": "2022-11-23T15:08:55.931373Z",
"status": 4,
"status_text": "",
"url": "https://myfunctionappname.scm.azurewebsites.net/api/deployments/latest"
}

I tried to run the commands to verify the success:

`az functionapp function show --resource-group MyResourceGroupName --name myfunctionappname --function-name ProcessDTRoutedData`

which is returning:

`(NotFound) Error retrieving function.
Code: NotFound
Message: Error retrieving function.
`
I also tried to verify in the azure portal, but the functions are not listed there either. Not sure what to do next or how to debug.

`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reported az functionapp deployment source config-zip and az functionapp function show commands, then compare the deployment result with the Azure portal's function listing. Trace why ProcessDTRoutedData is absent despite a successful zip deployment; done means identifying the cause and documenting or correcting the deployment or function-discovery issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.