GithubHelp home page GithubHelp logo

Comments (4)

olmu avatar olmu commented on May 28, 2024 1

WEBSITE_PRIVATE_PORTS at the runtime it is not present in Kudo console , or env vars. What did you do @olmu to make it work on Linux App Service ?

I believe this command has added them:
az webapp config set -g {ressource_group_name} -n {app_service_name} --generic-configurations '{"vnetPrivatePortsCount": 2}

But the trick was that is is not showing in Kudo console Env vars, but during the runtime it is there and we can get that parameter from WEBSITE_PRIVATE_PORTS

from orleans.

olmu avatar olmu commented on May 28, 2024

Not much related to the issue, but could you explain how you have managed to make it working in Azure? I'm currently struggling with this for 3 days so far and still no result. I have 2 Web Apps, one is running the Silo, another one is trying to connect, they are both in the same service plan (Linux) so their WEBSITE_PRIVATE_IP is same. What I did so far (according to this #7391):

  • Created Vnet, subnet, network security group, added both apps in
  • Exposed WEBSITE_PRIVATE_PORTS, set vnetPrivatePortsCount to 2
  • Used UseAzureStorageClustering
  • Used WEBSITE_PRIVATE_PORTS and WEBSITE_PRIVATE_IP to configure the endpoints (then realized that PRIVATE_IP is same for Silo and Client as they're running on the same Linux App plan, after that tried without endpoint and with hostname - IP is changing, but no result)

As the result when I run the client App I'm getting same error:
Connection attempt to endpoint S10.0.0.254:30000:0 failed
Orleans.Runtime.Messaging.ConnectionFailedException: Unable to connect to any of the 1 available gateways.
2023-12-20T23:44:36.287813275Z ---> Orleans.Runtime.Messaging.ConnectionFailedException: Unable to connect to endpoint S10.0.0.254:30000:0.

What am I missing?

UPD: The issue was that I was using Linux App plan and on Linux it doesn't create WEBSITE_PRIVATE_PORTS settings when I update the vnetPrivatePortsCount property

UPD2: Works on Linux App service plan as well, even when both apps are in the same App plan, just don't need to set WEBSITE_PRIVATE_PORTS env var manually, even despite it is not shown in Kudo console, at the runtime it is present in env vars

from orleans.

SLionB avatar SLionB commented on May 28, 2024

WEBSITE_PRIVATE_PORTS at the runtime it is not present in Kudo console , or env vars.
What did you do @olmu to make it work on Linux App Service ?

from orleans.

SLionB avatar SLionB commented on May 28, 2024

So $WEBSITE_PRIVATE_PORTS is a string containing a list of ports that Azure dynamically provides to Azure App Service to allow private inter-instances communications when you scale an App Service Plan containing this App Service?
So you just provide how many private ports you want ( setting vnetPrivatePortsCount) and Azure allocates random ports at App Service startup.
And the application in the App Service should pick them splitting the comma separated string and use the dynamic ports where binding ports is needed.

What an undocumented complex, dear Microsoft....

from orleans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.