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

azurerm_monitor_workspace: Microsoft.Monitor and Microsoft.Dashboard provider not registered #25769

Open
1 task done
cveld opened this issue Apr 26, 2024 · 0 comments
Open
1 task done

Comments

@cveld
Copy link

cveld commented Apr 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.8.1

AzureRM Provider Version

3.101.0

Affected Resource(s)/Data Source(s)

azurerm_monitor_workspace and azurerm_dashboard_grafana

Terraform Configuration Files

resource "azurerm_monitor_workspace" "default" {
  name                = "mw-${local.resource_name_suffix}"
  resource_group_name = module.rg.groups.default.name
  location            = module.rg.groups.default.location
}

resource "azurerm_dashboard_grafana" "default" {
  name                              = "amg-${local.resource_name_suffix}"
  resource_group_name               = module.rg.groups.default.name
  location                          = module.rg.groups.default.location
  api_key_enabled                   = true
  deterministic_outbound_ip_enabled = false
  public_network_access_enabled     = true
  identity {
    type = "SystemAssigned"
  }
  azure_monitor_workspace_integrations {
    resource_id = azurerm_monitor_workspace.default.id
  }
}

Debug Output/Panic Output

N/A

Expected Behaviour

The Microsoft.Monitor and Microsoft.Dashboard providers should be registered in the subscription by the azurerm provider.

Actual Behaviour

│ Resource Group Name: "rg-monitoring-cve-jo8e"
│ Account Name: "mw-monitoring-cve-jo8e"): unexpected status 409 (409 Conflict) with error: MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.Monitor'. See https://aka.ms/rps-not-found for how to register subscriptions.

│ Error: creating Grafana (Subscription: "suppressed"
│ Resource Group Name: "rg-monitoring-cve-jo8e"
│ Grafana Name: "amg-monitoring-cve-jo8e"): performing GrafanaCreate: unexpected status 409 (409 Conflict) with error: MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.Dashboard'. See https://aka.ms/rps-not-found for how to register subscriptions.
│

Steps to Reproduce

terraform apply

Important Factoids

No response

References

No response

@cveld cveld changed the title azurerm_monitor_workspace: Microsoft.Monitor provider not registered azurerm_monitor_workspace: Microsoft.Monitor and Microsoft.Dashboard provider not registered Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant