Hello!
I have a azure cloud funcion with this setup:
- Time Trigger
- Function in Docker Container Image
- Written in Python 3.6
- VNet Integration
When the function starts, I see the following messages:
2020-02-27 15:20:05.810 INFO - Initiating warmup request to container blahblah_0_cd93108b for site blahblah
2020-02-27 15:20:22.558 INFO - Waiting for response to warmup request for container blahblah_0_cd93108b. Elapsed time = 16.7475908 sec
2020-02-27 15:20:38.083 INFO - Waiting for response to warmup request for container blahblah_0_cd93108b. Elapsed time = 32.2735618 sec
2020-02-27 15:20:53.532 INFO - Waiting for response to warmup request for container blahblah_0_cd93108b. Elapsed time = 47.7220175 sec
.....
2020-02-27 15:23:56.617 ERROR - Container blahblah_0_cd93108b for site blahblah did not start within expected time limit. Elapsed time = 230.8072664 sec
2020-02-27 15:23:56.624 INFO - Initiating warmup request to container blahblah_0_cd93108b_middleware for site blahblah
2020-02-27 15:24:06.548 INFO - Container blahblah_0_cd93108b_middleware for site blahblah initialized successfully and is ready to serve requests.
2020-02-27 15:24:06.839 ERROR - Container blahblah_0_cd93108b didn't respond to HTTP pings on port: 9082, failing site start. See container logs for debugging.
2020-02-27 15:24:06.981 INFO - Stoping site blahblah because it failed during startup.
After a few executions, I see the final message and my function stops and tries again a few minutes later without success.
I found that azure doesn't have the access to made a request on this Port, but how I bind this port? The port is setted automatically on the docker run command and is dynamic (never is the same), so I can't expose on my Dockerfile or even overwrite on the Application settings (in my function config)
I also can't set or modify the PORT parameter when the function starts.
What I can do?
Best!