enough-kite-6961604/01/2020, 5:16 PM
Diagnostics: azure:core:ResourceGroup (RD-FoundationalServices-rg): error: Error ensuring Resource Providers are registered. Terraform automatically attempts to register the Resource Providers it supports to ensure it's able to provision resources. If you don't have permission to register Resource Providers you may wish to use the "skip_provider_registration" flag in the Provider block to disable this functionality. Please note that if you opt out of Resource Provider Registration and Terraform tries to provision a resource from a Resource Provider which is unregistered, then the errors may appear misleading - for example: > API version 2019-XX-XX was not found for Microsoft.Foo Could indicate either that the Resource Provider "Microsoft.Foo" requires registration, but this could also indicate that this Azure Region doesn't support this API version. More information on the "skip_provider_registration" flag can be found here: <https://www.terraform.io/docs/providers/azurerm/index.html#skip_provider_registration> Original Error: Cannot register provider Microsoft.DocumentDB with Azure Resource Manager: resources.ProvidersClient#Register: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client <mailto:'email@example.comfirstname.lastname@example.org>' with object id 'a25caa95-0e42-47b3-99a0-47bc2ba17ceb' does not have authorization to perform action 'Microsoft.DocumentDB/register/action' over scope '/subscriptions/7e01b735-d940-4f45-953c-08f86d80d43f' or the scope is invalid. If access was recently granted, please refresh your credentials.".