Manage an Azure Monitor workspace

This article shows you how to create and delete an Azure Monitor workspace. When you configure Azure Monitor managed service for Prometheus, you can select an existing Azure Monitor workspace or create a new one.

Note

When you create an Azure Monitor workspace, by default a data collection rule and a data collection endpoint in the form <azure-monitor-workspace-name> will automatically be created in a resource group in the form MA_<azure-monitor-workspace-name>_<location>_managed.

Create an Azure Monitor workspace

  1. Open the Azure Monitor workspaces menu in the Azure portal.

  2. Select Create.

    Screenshot of Azure Monitor workspaces menu and page.

  3. On the Create an Azure Monitor Workspace page, select a Subscription and Resource group where the workspace should be created.

  4. Provide a Name and a Region for the workspace.

  5. Select Review + create to create the workspace.

When you create an Azure Monitor workspace, a new resource group is created. The resource group name has the following format: MA_<azure-monitor-workspace-name>_<location>_managed, where the tokenized elements are lowercased. The resource group contains both a data collection endpoint and a data collection rule with the same name as the workspace. The resource group and its resources are automatically deleted when you delete the workspace.

To connect your Azure Monitor managed service for Prometheus to your Azure Monitor workspace, see Collect Prometheus metrics from AKS cluster

Delete an Azure Monitor workspace

When you delete an Azure Monitor workspace, unlike with a Log Analytics workspace, there is no soft delete operation. The data in the workspace is immediately deleted, and there's no recovery option.

  1. Open the Azure Monitor workspaces menu in the Azure portal.

  2. Select your workspace.

  3. Select Delete.

    Screenshot of Azure Monitor workspaces delete button.

Connect an Azure Monitor workspace to an Azure Managed Grafana workspace to allow Grafana to use the Azure Monitor workspace data in a Grafana dashboard. An Azure Monitor workspace can be connected to multiple Grafana workspaces, and a Grafana workspace can be connected to multiple Azure Monitor workspaces.

Note

When you add the Azure Monitor workspace as a data source to Grafana, it will be listed in form Managed_Prometheus_<azure-monitor-workspace-name>.

  1. Open the Azure Monitor workspace menu in the Azure portal.
  2. Select your workspace.
  3. Select Linked Grafana workspaces.
  4. Select a Grafana workspace.

If your Grafana instance is self managed, see Use Azure Monitor managed service for Prometheus as data source for self-managed Grafana using managed system identity

Frequently asked questions

This section provides answers to common questions.

Can I use Azure Managed Grafana in a different region than my Azure Monitor workspace and managed service for Prometheus?

Yes. When you use managed service for Prometheus, you can create your Azure Monitor workspace in any of the supported regions. Your Azure Kubernetes Service clusters can be in any region and send data into an Azure Monitor workspace in a different region. Azure Managed Grafana can also be in a different region than where you created your Azure Monitor workspace.

Next steps