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:
- Disable your features.
- Unlink your workspace.
- Move the Automation account.
- 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
In the Azure portal, locate your resource group.
Find each feature, and select Delete on the Delete Resources page.
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
Unlink your workspace
Now you can unlink your workspace:
In the Azure portal, select Automation account > Related Resources > Linked workspace.
Select Unlink workspace to unlink the workspace from your Automation account.
Move your Automation account
You can now move your Automation account and its runbooks.
In the Azure portal, browse to the resource group of your Automation account. Select Move > Move to another subscription.
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.
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.