Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.67 KB

troubleshooting.md

File metadata and controls

43 lines (31 loc) · 1.67 KB

Troubleshooting

This document helps with troubleshooting RWA deployment challenges.

Error: no project exists; to create a new project, run 'azd init'

This error is most often reported when users try to run azd commands before running the cd command to switch to the directory where the repo was cloned.

Workaround

Verify that you are in the directory where the azure.yaml file is located. You may need to cd into the directory to proceed.

BadRequest: Azure subscription is not registered with CDN Provider.

This error message surfaces from the azd provision command when trying to follow the guide to provision an Azure Front Door.

Most Azure resource providers are registered automatically by the Microsoft Azure portal or the command-line interface, but not all. If you haven't used a particular resource provider before, you might need to register that provider.

Full error message

ERROR: deployment failed: error deploying infrastructure: failed deploying: deploying to subscription:

Deployment Error Details:
BadRequest: Azure subscription is not registered with CDN Provider.

Workaround

  1. Register the provider

    az provider register --namespace Microsoft.Cdn
  2. Wait for the registration process to complete (waited about 3-min)

  3. Run the following to confirm the provider is registered

    az provider list --query "[? namespace=='Microsoft.Cdn'].id"

    You should see a notice that the operation succeeded:

    [
    "/subscriptions/{subscriptionId}/providers/Microsoft.Cdn"
    ]