Azure / reliable-web-app-pattern-dotnet

The Reliable Web App Pattern is a set of objectives to help your web application converge on the cloud. This repo contains a reference implementation of a reliable web application for .NET.
https://aka.ms/eap/rwa/dotnet/doc
MIT License
361 stars 115 forks source link

Azure subscription is not registered with CDN provider #274

Closed KSchlobohm closed 1 year ago

KSchlobohm commented 1 year ago

Issue

This error message surfaces from the azd provision command when trying to follow the guide on a VM with an MSDN subscription.

Based on the error messsage it appears that an Azure resource provider has not been configured for the subscription that was authenticated and in this scenario the provision of Azure Front Door failed.

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"

Successful registration should return something like:

[
  "/subscriptions/{subscriptionId}/providers/Microsoft.Cdn"
]
KSchlobohm commented 1 year ago

migrated to 1852444