Move a Log Analytics workspace in Azure Monitor - Azure Monitor (2024)

  • Article

In this article, you'll learn the steps to move a Log Analytics workspace to another resource group or subscription in the same region. To move a workspace across regions, see Move a Log Analytics workspace to another region.

Tip

To learn more about how to move Azure resources through the Azure portal, PowerShell, the Azure CLI, or the REST API, see Move resources to a new resource group or subscription.

Prerequisites

  • The subscription or resource group where you want to move your Log Analytics workspace must be located in the same region as the Log Analytics workspace you're moving.
  • The move operation requires that no services can be linked to the workspace. Prior to the move, delete solutions that rely on linked services, including an Azure Automation account. These solutions must be removed before you can unlink your Automation account. Data collection for the solutions will stop and their tables will be removed from the UI, but data remains in workspace for the retention period defined for table. When you add solutions back after the move, ingestion restored and tables become visible with data. Linked services include:
    • Update management
    • Change tracking
    • Start/Stop VMs during off-hours
    • Microsoft Defender for Cloud
  • Connected Log Analytics agents and Azure Monitor Agent remain connected to the workspace after the move with no interruption to ingestion.
  • Alerts should be re-created after the move, since permissions for alerts is based on workspace resource ID, which changes with the move. Alerts created after June 1, 2019, or in workspaces that were upgraded from the legacy Log Analytics Alert API to the scheduledQueryRules API can be exported in templates and deployed after the move. You can check if the scheduledQueryRules API is used for alerts in your workspace. Alternatively, you can configure alerts manually in the target workspace.
  • Update resource paths after a workspace move for Azure or external resources that point to the workspace. For example: Azure Monitor alert rules, Third-party applications, Custom scripting, etc.

Permissions required

ActionPermissions required
Verify the Microsoft Entra tenant.Microsoft.AzureActiveDirectory/b2cDirectories/read permissions, as provided by the Log Analytics Reader built-in role, for example.
Delete a solution.Microsoft.OperationsManagement/solutions/delete permissions on the solution, as provided by the Log Analytics Contributor built-in role, for example.
Remove alert rules for the Start/Stop VMs solution.microsoft.insights/scheduledqueryrules/delete permissions, as provided by the Monitoring Contributor built-in role, for example.
Unlink the Automation accountMicrosoft.OperationalInsights/workspaces/linkedServices/delete permissions on the linked Log Analytics workspace, as provided by the Log Analytics Contributor built-in role, for example.
Move a Log Analytics workspace.Microsoft.OperationalInsights/workspaces/delete and Microsoft.OperationalInsights/workspaces/write permissions on the Log Analytics workspace, as provided by the Log Analytics Contributor built-in role, for example.

Considerations and limits

Consider these points before you move a Log Analytics workspace:

  • It can take Azure Resource Manager a few hours to complete. Solutions might be unresponsive during the operation.
  • Managed solutions that are installed in the workspace, will be moved as well.
  • Managed solutions are workspace's objects and can't be moved independently.
  • Workspace keys (both primary and secondary) are regenerated with a workspace move operation. If you keep a copy of your workspace keys in Azure Key Vault, update them with the new keys generated after the workspace is moved.

Important

Microsoft Sentinel customers

  • Currently, after Microsoft Sentinel is deployed on a workspace, moving the workspace to another resource group or subscription isn't supported.
  • If you've already moved the workspace, disable all active rules under Analytics and reenable them after five minutes. This solution should be effective in most cases, although it's unsupported and undertaken at your own risk.

Verify the Microsoft Entra tenant

The workspace source and destination subscriptions must exist within the same Microsoft tenant. Use Azure PowerShell to verify that both subscriptions have the same Entra tenant ID.

  • Portal
  • REST API
  • CLI
  • PowerShell

Find your Microsoft Entra tenant for the source and destination subscriptions.

Delete solutions

  • Portal
  • REST API
  • CLI
  • PowerShell
  1. Open the menu for the resource group where any solutions are installed.
  2. Select the solutions to remove.
  3. Select Delete Resources and then confirm the resources to be removed by selecting Delete.

Remove alert rules for the Start/Stop VMs solution

To remove the Start/Stop VMs solution, you also need to remove the alert rules created by the solution.

  • Portal
  • REST API
  • CLI
  • PowerShell
  1. Open the Monitor menu and then select Alerts.

  2. Select Manage alert rules.

  3. Select the following three alert rules, and then select Delete:

    • AutoStop_VM_Child
    • ScheduledStartStop_Parent
    • SequencedStartStop_Parent

Unlink the Automation account

  • Portal
  • REST API
  • CLI
  • PowerShell

See Delete a standalone Automation account linked to workspace.

Move your workspace

  • Portal
  • REST API
  • CLI
  • PowerShell
  1. Open the Log Analytics workspaces menu and then select your workspace.

  2. On the Overview page, select change next to either Resource group or Subscription name.

  3. A new page opens with a list of resources related to the workspace. Select the resources to move to the same destination subscription and resource group as the workspace.

  4. Select a destination Subscription and Resource group. If you're moving the workspace to another resource group in the same subscription, you won't see the Subscription option.

  5. Select OK to move the workspace and selected resources.

Important

After the move operation, removed solutions and the Automation account link should be reconfigured to bring the workspace back to its previous state.

Next steps

For a list of which resources support the move operation, see Move operation support for resources.

Move a Log Analytics workspace in Azure Monitor - Azure Monitor (2024)
Top Articles
Metallic Smell on Body or Breath: Causes & Treatment
Does Renters Insurance Cover Theft?
Lorton Transfer Station
Tabc On The Fly Final Exam Answers
Unblocked Games Premium Worlds Hardest Game
What Are the Best Cal State Schools? | BestColleges
St Petersburg Craigslist Pets
Horoscopes and Astrology by Yasmin Boland - Yahoo Lifestyle
DL1678 (DAL1678) Delta Historial y rastreo de vuelos - FlightAware
How To Get Free Credits On Smartjailmail
Gunshots, panic and then fury - BBC correspondent's account of Trump shooting
CHESAPEAKE WV :: Topix, Craigslist Replacement
Cinepacks.store
Jasmine
Bill Devane Obituary
Ohiohealth Esource Employee Login
Methodist Laborworkx
Dump Trucks in Netherlands for sale - used and new - TrucksNL
Dexter Gomovies
Studentvue Columbia Heights
Used Sawmill For Sale - Craigslist Near Tennessee
360 Tabc Answers
Wausau Marketplace
Accident On The 210 Freeway Today
Kirksey's Mortuary - Birmingham - Alabama - Funeral Homes | Tribute Archive
Quick Answer: When Is The Zellwood Corn Festival - BikeHike
Reicks View Farms Grain Bids
2011 Hyundai Sonata 2 4 Serpentine Belt Diagram
10-Day Weather Forecast for Santa Cruz, CA - The Weather Channel | weather.com
Bfri Forum
+18886727547
Boneyard Barbers
The value of R in SI units is _____?
Σινεμά - Τι Ταινίες Παίζουν οι Κινηματογράφοι Σήμερα - Πρόγραμμα 2024 | iathens.gr
Joplin Pets Craigslist
Tas Restaurant Fall River Ma
Ark Unlock All Skins Command
Peter Vigilante Biography, Net Worth, Age, Height, Family, Girlfriend
Skip The Games Ventura
Afspraak inzien
Pitchfork's Top 200 of the 2010s: 50-1 (clips)
Dee Dee Blanchard Crime Scene Photos
Jasgotgass2
Chathuram Movie Download
If You're Getting Your Nails Done, You Absolutely Need to Tip—Here's How Much
Rocky Bfb Asset
Studentvue Calexico
Victoria Vesce Playboy
Cvs Coit And Alpha
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Canonnier Beachcomber Golf Resort & Spa (Pointe aux Canonniers): Alle Infos zum Hotel
라이키 유출
Latest Posts
Article information

Author: Kieth Sipes

Last Updated:

Views: 6226

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.