Skip to content

Add ARM template for Azure - #413

Merged
fank merged 2 commits into
factoriotools:masterfrom
karpinsn:master
Nov 2, 2026
Merged

fank merged 2 commits into
factoriotools:masterfrom
karpinsn:master

Conversation

@karpinsn

@karpinsn karpinsn commented Sep 9, 2021

Copy link
Copy Markdown
  • Add ARM template for hosting container on Azure Container Instances
    with data persisted to an Azure Storage Account.
  • Add README for Azure ARM template and link from main README.

- Add ARM template for hosting container on Azure Container Instances
with data persisted to an Azure Storage Account.
- Add README for Azure ARM template and link from main README.
@karpinsn

karpinsn commented Sep 9, 2021

Copy link
Copy Markdown
Author

Addresses #408

@fank

fank commented Sep 9, 2021

Copy link
Copy Markdown
Member

@SuperSandro2000 does it looks fine to you too?

@fank
fank requested review from SuperSandro2000 and fank September 9, 2021 13:09
@StopMotionCuber

Copy link
Copy Markdown

Small comment from the Azure Docs, there is a guide on how to implement a "deploy to Azure" button. I think that might be a nice addition for the README

@PolygeneLubricants

PolygeneLubricants commented Nov 28, 2022 •

Copy link
Copy Markdown

I used to host a Factorio server with a similar template as this, however when I try to run this setup now, I am unable to connect to the server, with the client error: "waiting for the server to save the map".

The server gives the error on startup: "12.938 Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing", but then continues.
When attempting to connect, the server logs state:

132.905 Warning ServerSynchronizer.cpp:112: nextHeartbeatSequenceNumber(7188) peer(1) wants a heartbeat(5987) that we don't have.

Full server logs:
server-logs.txt

@fank

fank commented Nov 2, 2026

Copy link
Copy Markdown
Member

Thank you @karpinsn for contributing the Azure deployment template! I refreshed this branch against current master, preserving your original commit, and pushed 56b2275.

Repairs include an explicit file-share dependency, deterministic generated storage/DNS names, removal of the copied public IP, assigned-FQDN outputs, current stable resource APIs, configurable compute/image version, and secure storage defaults. The regular image now explicitly uses PUID=0/PGID=0 for the documented ACI Azure Files root requirement. RCON is no longer exposed publicly; administration uses authenticated Azure exec and the local rcon helper.

@StopMotionCuber: the requested Deploy to Azure button is now included. The guide also covers first-start settings, version pinning, preserving storage during upgrades, costs and cleanup.

@PolygeneLubricants: the historical multiplayer stall is not proven fixed by these changes. I added troubleshooting and a real-client validation checklist; the EOF message alone does not establish the cause. No live Azure/CIFS deployment or multiplayer client join was performed here, and no Azure resources were created.

Local validation passed: all 21 regression tests (including 10 new Azure tests), all 31 Microsoft ARM Template Toolkit checks, the three Microsoft resource schemas, and a regular-image startup/RCON/save-integrity test using the template environment. Deleting and recreating the local container retained the world and settings on the same volume; that is not an Azure Files test. The toolkit is pinned and added to PR CI.

I will follow through on the current CI results and merge this repair if they pass and no new blocking finding appears.

Composed by the coding-assistant agent, posted under my account.

@fank
fank merged commit b3954e4 into factoriotools:master Nov 2, 2026
4 checks passed
@fank

fank commented Nov 2, 2026

Copy link
Copy Markdown
Member

Merged as b3954e4 using the repository-required squash merge. All four head checks passed: regression, Azure template validation, ShellCheck and Hadolint. Verified the integrated tree matches the tested repair and the Deploy to Azure button target now serves the template.

Thank you again @karpinsn for the contribution. No live Azure deployment was performed or billable Azure resources created; the guide explicitly distinguishes offline/local checks from Azure and multiplayer validation.

Composed by the coding-assistant agent, posted under my account.

@fank fank mentioned this pull request Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants