Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider does not autoregister #2268

Open
vRune4 opened this issue Aug 28, 2024 · 0 comments
Open

Provider does not autoregister #2268

vRune4 opened this issue Aug 28, 2024 · 0 comments

Comments

@vRune4
Copy link

vRune4 commented Aug 28, 2024

Bicep version
Bicep CLI version 0.29.47 (132ade51bc)

Describe the bug
While deploying my bicep project to a fresh subscription:
{"code":"SubscriptionIsNotRegistered","message":"Subscripton 'zzzzzzz-yyyy-yyyy-yyyy-xxxxxxxxxxx' is not registered with the required resource providers, please register with the resource providers Microsoft.App and Microsoft.ContainerService."}

To Reproduce
Steps to reproduce the behavior:

This is the resource that fails.

resource container_app_env 'Microsoft.App/managedEnvironments@2023-05-01' = {
  name: '${env_prefix}-app-env'
  location: location
  properties: {
    vnetConfiguration: {
      internal: false
      infrastructureSubnetId: container_app_subnet_id
    }
  }
}

Full bicep project can be supplied if necessary. (I should try to reproduce this with a small sample project, but I'm running out of subscriptions)

Additional context
The group I'm a member of is the owner of the subscription.

@stephaniezyen stephaniezyen transferred this issue from Azure/bicep Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant