Azure-Samples / digital-twins-samples

Azure Digital Twins building scenario sample code
MIT License
105 stars 88 forks source link

(NotFound) Error retrieving function. for az functionapp show #83

Open SigveMartin opened 2 years ago

SigveMartin commented 2 years ago

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.

`

SigveMartin commented 1 year ago

I got it to work, but can't remember what I did now unfortunately.