Install dependencies
The azd app deps command installs project dependencies and creates virtual environments
for Python projects. For the demo project, this will install all required packages.
Install Project Dependencies
From the demo project folder, install dependencies:
# Make sure you're in the demo project
cd azd-app-demo
# Install dependencies
azd app deps This command will:
- Detect your project type (.NET Aspire, Docker Compose, etc.)
- Install required NuGet packages for .NET projects
- Install npm/pnpm packages for Node.js projects
- Pull required Docker images
- Set up any project-specific dependencies
Python Virtual Environments
For Python projects, azd app deps automatically creates a virtual environment if one doesn't exist, then installs packages into it.
Expected Output
Installing dependencies...
[dotnet] Restoring packages for MyApp.csproj...
[dotnet] ✓ Restored 42 packages
[npm] Installing packages in dashboard/...
[npm] ✓ Installed 128 packages
[docker] Pulling required images...
[docker] ✓ Pulled postgres:16
[docker] ✓ Pulled redis:7-alpine
All dependencies installed successfully! Try It Yourself
Run `azd app deps` in the demo project directory and watch the installation progress.
Expected: You should see packages being restored/installed for each component of your project, ending with a success message.
Project Detection
azd-app automatically detects your project type by looking for configuration files
like *.csproj, package.json, docker-compose.yml,
or azure.yaml.
Dependency Caching
Dependencies are cached locally to speed up subsequent installations. Use
azd app deps --clean to remove existing packages first, or
azd app deps --no-cache to bypass the cache.
Troubleshooting
- If installation fails, check your internet connection
- Ensure you have sufficient disk space for Docker images
- Run with
--verboseflag for detailed output