Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 3.83 KB

next-steps.md

File metadata and controls

69 lines (43 loc) · 3.83 KB

Next Steps after azd init

Table of Contents

  1. Next Steps
  2. What was added
  3. Billing
  4. Troubleshooting

Next Steps

Provision infrastructure and deploy application code

Run azd up to provision your infrastructure and deploy to Azure in one step (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 CI/CD pipeline

  1. Create a workflow pipeline file locally. The following starters are available:
  2. Run azd pipeline config -e <environment name> to configure the deployment pipeline to connect securely to Azure. An environment name is specified here to configure the pipeline with a different environment for isolation purposes. Run azd env list and azd env set to reselect the default environment after this step.

What was added

Infrastructure configuration

To describe the infrastructure and application and azure.yaml was added with the following directory structure:

- azure.yaml     # azd project configuration

This file contains a single service, which references your project's App Host. When needed, azd generates the required infrastructure as code in memory and uses it.

If you would like to see or modify the infrastructure that azd uses, run azd infra synth to persist it to disk.

If you do this, some additional directories will be created:

- infra/            # Infrastructure as Code (bicep) files
  - main.bicep      # main deployment module
  - resources.bicep # resources shared across your application's services

In addition, for each project resource referenced by your app host, a containerApp.tmpl.yaml file will be created in a directory named manifests next the project file. This file contains the infrastructure as code for running the project on Azure Container Apps.

Note: Once you have synthesized your infrastructure to disk, changes made to your App Host will not be reflected in the infrastructure. You can re-generate the infrastructure by running azd infra synth again. It will prompt you before overwriting files. You can pass --force to force azd infra synth to overwrite the files without prompting.

Note: azd infra synth is currently an alpha feature and must be explicitly enabled by running azd config set alpha.infraSynth on. You only need to do this once.

Billing

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.

Troubleshooting

Q: I visited the service endpoint listed, and I'm seeing a blank or error page.

A: Your service may have failed to start or misconfigured. To investigate further:

  1. Click on the resource group link shown to visit Azure Portal.
  2. Navigate to the specific Azure Container App resource for the service.
  3. Select Monitoring -> Log stream under the navigation pane.
  4. Observe the log output to identify any errors.
  5. If logs are written to disk, examine the local logs or debug the application by using the Console to connect to a shell within the running container.

For additional information about setting up your azd project, visit our official docs.