https://github.com/celaus/fn-manage-aci
Azure Function to manage an Azure Container Instance
https://github.com/celaus/fn-manage-aci
azure azure-functions-v3 container-instance
Last synced: about 2 months ago
JSON representation
Azure Function to manage an Azure Container Instance
- Host: GitHub
- URL: https://github.com/celaus/fn-manage-aci
- Owner: celaus
- License: mit
- Created: 2020-04-19T15:57:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T17:20:25.000Z (about 6 years ago)
- Last Synced: 2025-12-29T16:19:31.604Z (6 months ago)
- Topics: azure, azure-functions-v3, container-instance
- Language: C#
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Control your Container Instance with Azure Functions
This is the start/stop/status code for managing the [Factorio server on Azure Container Instances](https://github.com/celaus/factorio-aci-terraform). It provides 3 Functions (on a consumption plan):
1. /api/start - Starts the container instance
1. /api/stop - Stops the container instance
1. /api/status - Fetches the current status as a simple string (or HTTP/400 in case of errors)
The Function authenticates via a managed identity role assignment for Contributor access. Check out the Terraform deployment to find out more. For managing other ACI instances, be sure to set `ACI_NAME` and `ACI_RESOURCE_GROUP` to make it connect properly (and give the Function the Contributor role using the portal or CLI).
# License
MIT