Run azd up to provision your infrastructure and deploy to Azure (or run azd provision then azd deploy to accomplish the tasks separately). Visit the service endpoints listed to see your application up-and-running!
To troubleshoot any issues, see troubleshooting.
Configure environment variables for running services by updating settings in main.parameters.json.
- Create a workflow pipeline file locally. The following starters are available:
- Run
azd pipeline configto configure the deployment pipeline to connect securely to Azure.
To describe the infrastructure and application, azure.yaml along with Infrastructure as Code files using Bicep were added with the following directory structure:
- azure.yaml # azd project configuration
- infra/ # Infrastructure-as-code Bicep files
- main.bicep # Main deployment template
- modules/ # Library modulesThe resources declared in main.bicep are provisioned when running azd up or azd provision.
This includes:
- AI Foundry (AI Services and AI Project)
- AI Search
- Storage Account
- Cosmos DB
- SQL Database
- App Service Plan and Web Apps (backend API and frontend)
- Virtual Network and Private Endpoints (WAF deployment)
More information about Bicep language.
If your project does not contain a Dockerfile, we will use Buildpacks using Oryx to create an image for the services in azure.yaml and get your containerized app onto Azure.
To produce and run the docker image locally:
- Run
azd packageto build the image. - Copy the Image Tag shown.
- Run
docker run -it <Image Tag>to run the image locally.
Oryx will automatically set PORT to a default value of 80 (port 8080 for Java). Additionally, it will auto-configure supported web servers such as gunicorn and ASP .NET Core to listen to the target PORT. If your application already listens to the port specified by the PORT variable, the application will work out-of-the-box. Otherwise, you may need to perform one of the steps below:
- Update your application code or configuration to listen to the port specified by the
PORTvariable - (Alternatively) Search for
targetPortin a .bicep file under theinfra/appfolder, and update the variable to match the port used by the application.
Visit the Cost Management + Billing page in Azure Portal to track current spend. For more information about how you're billed, and how you can monitor the costs incurred in your Azure subscriptions, visit billing overview.
Q: I visited the service endpoint listed, and I'm seeing a blank page, a generic welcome page, or an error page.
A: Your service may have failed to start, or it may be missing some configuration settings. To investigate further:
- Run
azd show. Click on the link under "View in Azure Portal" to open the resource group in Azure Portal. - Navigate to the specific App Service that is failing to deploy.
- Check the Deployment Center logs for deployment errors.
- Review Log stream for application runtime errors.
- Check Diagnose and solve problems for platform-level issues.
- If you need access to the running container, use the App Service SSH/Console experience in Azure Portal or run
az webapp ssh. Use Advanced Tools (Kudu) to inspect the SCM site, filesystem, and any logs written to disk.
For more troubleshooting information, visit App Service troubleshooting.
For additional information about setting up your azd project, visit our official docs.