To deploy Azure Container Instances that can be instantiated from App Service and have multiple instances as needed, you can use Azure Container Apps. Azure Container Apps is a fully managed service that allows you to deploy and manage containerized applications without having to manage the underlying infrastructure. With Azure Container Apps, you can create a multi-container app that includes both your App Service and your ACI instances. You can then use the Azure Container Apps API to start and stop your ACI instances as needed. Here's an example of how you can use Azure Container Apps to achieve your goal:
- Create a multi-container app that includes your App Service and your ACI instances. You can use a Docker Compose file to define your multi-container app.
- Deploy your multi-container app to Azure Container Apps.
- Use the Azure Container Apps API to start and stop your ACI instances as needed. You can use the API to start an ACI instance when a session starts and stop the ACI instance when the session ends.
- Use the Azure Container Apps API to manage multiple simultaneous ACI instances. You can use the API to start and stop multiple ACI instances as needed to support multiple simultaneous clients. I hope this helps! Let me know if you have any further questions.