An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
Hi @Satish B ,
- Confirm the VM/VMSS is running. If autoscale min instance count = 0, runners scaling to zero is expected behavior, not a fault — check Azure Activity Log for stop/deallocate/reimage events around the time this started.
- Check the runner service on the box:
bash
The _diag/Runner_* log in the runner install folder will usually state the exact failure (auth, network timeout, etc.).
- Registration credential expiry — most common cause. If a static PAT was used for re-registration on VM recreation, check if it's expired. If it was a one-time registration token, any new VM instance created by Terraform needs a fresh one. Recommend moving to a GitHub App token instead of a PAT going forward — it doesn't silently expire the same way.
- Network/firewall. Validate outbound access to
github.com,api.github.com,*.actions.githubusercontent.com,codeload.github.com:
bash
- Recover the missing bootstrap script yourself — you don't need MS to resend it. It's embedded in the deployment: check the VM/VMSS Custom Script Extension or Custom Data in the Azure Portal, or search the Terraform repo for the
cloud-init/azurerm_virtual_machine_extensionresource. Boot diagnostics → Serial log shows the original bootstrap execution output too. - Manual fix on the VM:
bash
Get tokens via GitHub → Settings → Actions → Runners → New self-hosted runner, or the API.