0

I have release azure function app from VSO Azure App Service Deploy release task, it gives: System.Nets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions I searched on google, people say the sockets get expired but i am using S3 pricing tier

I have then released the same function app from Visual Studio 2017 which runs perfectly fine without any exceptions.

I am attaching the artifacts, build assets, release pipeline details, please help. I will not be able to move to production unless this issue is resolved.

Structure of Artifacts which is not working

Structure of artifacts which is working fine-published from VS2017

Here is the github link for more details regarding the issue.

https://github.com/microsoft/azure-pipelines-tasks/issues/11345

Ashutosh Kumar
  • 61
  • 1
  • 10
  • 1
    Are you publishing these to the same app? I see this error when I try to access a resource behind a VNet when my function app isn't joined to the VNet. Is it possible that's the case here? – jeffhollan Sep 16 '19 at 22:29
  • This error message relevant with Socket, but not only socket is expired. You can refer to this doc: [Local Address Requests](https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#local-address-requests). – Mengdi Liang Sep 17 '19 at 07:39
  • @jeffhollan yeah i am publishing to the same app, i can see the app settings getting changed every time i give a fresh release with changed app settings. That can be a possibility. But this problem has got solved when i changed my storage account to point to a different one. But still i am not sure what was wrong with the newly created Storage account. – Ashutosh Kumar Sep 19 '19 at 07:25
  • Please post your solution as an answer and accept it so that it helps the wider community – AmanGarg-MSFT Oct 28 '19 at 19:55
  • Sorry for the late reply the problem got solved, by changing UseDevelopmentStorage=true to point to exact storage account address. – Ashutosh Kumar Nov 09 '19 at 17:47

1 Answers1

0

I had to give a proper storage connection string for the following, instead of UseDevelopmentStorage=true,

Ashutosh Kumar
  • 61
  • 1
  • 10