rquarry / tf-UpandRunning-Azure

Terraform Examples in Azure from Terraform Up & Running by Jim Brikman
MIT License
1 stars 0 forks source link

busybox httpd not running on scale set hosts #3

Open rquarry opened 2 months ago

rquarry commented 2 months ago

Web pages are not being served from scale_set hosts. Logging in and running command manually gets things working.

"index.html" and the nohup output are in the adminuser home folder.

rquarry commented 2 months ago

Tried updating settings to use json encoding:

settings = jsonencode({ })

Did not help

rquarry commented 2 months ago

Upgraded extension to version 2.1

type_handler_version = "2.1"

Did not help.

rquarry commented 2 months ago

There is now no output in the adminuser folder indicating that anything attempted to run on the host machines

rquarry commented 2 months ago

Discovered that main.tf was using a two year old version of the Azure provider. Updated to 3.110.0 but didn't fix the problem

rquarry commented 2 months ago

Confirmed that the scale set extension does run when triggered manually in the portal via the following directions https://github.com/Azure/custom-script-extension-linux/issues/185

Need to find a way to trigger automatically

rquarry commented 1 month ago

Try orchestrated scale sets as a possible fix: