Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Please note that Admin state takes effect on a per backend pool instance basis,
- So if you'd like to update the ADMIN state to UP or DOWN or NONE for multiple backends over scripting, this is not a good idea
- However, if you have a limited number of backend instances or only need to update the admin state of few backend instances in your backend pool - you can refer to the commands in the document : Manage Administrative (Admin) State in Azure Load Balancer
My recommendation would be :
- As Load Balancer is oblivious to the cache loading status of the backend pool, I would suggest you configure your backend to update the health probe accordingly
- i.e. until the cache is loaded , your backend should fail the health probes test
- Once the cache part is done, your backend should return success to the health probe tests
- Thus traffic will only flow when the backend is up (Health probes are up)
Please let us know if we can be of any further assistance here.
Thanks,
Kapil
Please Accept an answer if correct.
Original posters help the community find answers faster by identifying the correct answer.