@Franz , Following-up from the comments.
Adding to Hugo, if your requirement fits, you may take a look at another approach with multi-container.
Tutorial: Create a multi-container (preview) app in Web App for Containers. [Multi-container is currently in preview]
To deploy both the frontend and API Docker images to your Azure App Service without using slots, you can use Docker Compose. Docker Compose is a tool for defining and running multi-container Docker applications. You can use a single Docker Compose file to define both the frontend and API services, and then deploy them together to your Azure App Service.
The Docker Compose file defines two services, frontend and api. Each service specifies the Docker image to use and the ports to expose.
To deploy both services to your Azure App Service, you can use the az webapp create command with the --multicontainer-config-file
option to specify the Docker Compose file:
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name myAppService --multicontainer-config-file docker-compose.yml
This command creates a new Azure App Service with the specified resource group, app service plan, and name. The --multicontainer-config-file option specifies the Docker Compose file to use for the deployment.
_
*Reference: *_
Configure a custom container for Azure App Service
Multi-container Linux Web App | Primary Use Case
Kindly let us know if you have any further questions.