Move your Azure Automation account to another subscription

Azure Automation allows you to move some resources to a new resource group or subscription. You can move resources through the Azure portal, PowerShell, the Azure CLI, or the REST API. To learn more about the process, see Move resources to a new resource group or subscription.

The Automation account is one of the resources that you can move. In this article, you'll learn to move Automation accounts to another resource or subscription. The high-level steps for moving your Automation account are:

  1. Disable your features.
  2. Unlink your workspace.
  3. Move the Automation account.
  4. Re-enable your features.

Remove features

To unlink your workspace from your Automation account, you must remove the feature resources in your workspace:

  • Update Management
  1. In the Azure portal, locate your resource group.

  2. Find each feature, and select Delete on the Delete Resources page.

    Screenshot of deleting feature resources from the Azure portal

If you prefer, you can delete the resources by using the Remove-AzResource cmdlet:

$workspaceName = <myWorkspaceName>
$resourceGroupName = <myResourceGroup>
Remove-AzResource -ResourceType 'Microsoft.OperationsManagement/solutions' -ResourceName "Updates($workspaceName)" -ResourceGroupName $resourceGroupName

Now you can unlink your workspace:

  1. In the Azure portal, select Automation account > Related Resources > Linked workspace.

  2. Select Unlink workspace to unlink the workspace from your Automation account.

    Screenshot of Unlinking a workspace from an Automation account

Move your Automation account

You can now move your Automation account and its runbooks.

  1. In the Azure portal, browse to the resource group of your Automation account. Select Move > Move to another subscription.

    Screenshot of Resource group page, move to another subscription

  2. Select the resources in your resource group that you want to move. Ensure that you include your Automation account, runbooks, and Log Analytics workspace resources.

Note

The movement of System assigned managed identity, and User-assigned managed identity takes place automatically with the Automation account.

Enable features

You must re-enable the features that you removed before the move:

To turn on Update Management, select Update Management in your Automation account. Choose the Log Analytics workspace that you moved over, and select Enable.

Screenshot of Re-enabling features in your moved Automation account

Verify the move

When the move is complete, verify that the capabilities listed below are enabled.

Capability Tests Troubleshooting
Runbooks A runbook can successfully run and connect to Azure resources. Troubleshoot runbooks
Source control You can run a manual sync on your source control repository. Source control integration
Update management Verify that you see your machines and that they're healthy.
Run a test software update deployment.
Troubleshoot update management
Shared resources Verify that you see all your shared resources, such as credentials and variables.

Next steps

To learn about moving resources in Azure, see Move resources in Azure.