Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @Riyaj khureshi
When you've deployed your FastAPI application using Azure Container Registry (ACR), the application code is packaged within the container image, not in the traditional file system like site/wwwroot that you would typically see with other Azure Web App deployments. To access your codebase files.
To access codebase files in a FastAPI application deployed via Azure Container Registry (ACR),
Install Docker CLI: Download and install Docker from Docker website
Log in to ACR:
docker login <registry-name>
Replace <registry-name> with your Azure Container Registry name.
Pull the Docker Image:
docker pull <image-name>
Replace <image-name> with your container image name.
Run the Container Locally:
docker run -p <port>:<port> -it <image-name>
Replace <port> with your FastAPI app port (typically 8000).
Access the Container’s Files: Open a shell session inside the running container:
docker exec -it <container-id> /bin/bash
Find <container-id> with:
docker ps
Browse to the application directory (e.g., /app or /usr/src/app).
I hope this information is helpful.
If the answer is helpful, please click "Accept Answer" and kindly upvote it.