Hello,
You can use App Service Editor to view the deployed files in Azure Web App. To access the editor, go to App Service Editor (Preview) in the Development Tools section of the left-hand navigation of your app and click Open Editor:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have deployed my FastAPI on an Azure Web App, and the web app is working fine. How can I view or access the deployed codebase files in the web app?
Hello,
You can use App Service Editor to view the deployed files in Azure Web App. To access the editor, go to App Service Editor (Preview) in the Development Tools section of the left-hand navigation of your app and click Open Editor:
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.