You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/automation/how-to/move-account.md
+23-21Lines changed: 23 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Move your Azure Automation account to another subscription
3
-
description: This article describes how to move your Automation account to another subscription
3
+
description: This article describes how to move your Automation account to another subscription.
4
4
services: automation
5
5
ms.service: automation
6
6
ms.subservice: process-automation
@@ -12,37 +12,39 @@ manager: carmonm
12
12
---
13
13
# Move your Azure Automation account to another subscription
14
14
15
-
Azure provides you the ability 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](../../azure-resource-manager/management/move-resource-group-and-subscription.md).
15
+
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](../../azure-resource-manager/management/move-resource-group-and-subscription.md).
16
16
17
-
Azure Automation accounts are one of the resources that can be moved. In this article, you'll learn the steps to move Automation accounts to another resource or subscription.
18
-
19
-
The high-level steps to moving your Automation account are:
17
+
Azure Automation accounts are one of the resources that can be moved. In this article, you'll learn the steps to move Automation accounts to another resource or subscription. The high-level steps to moving your Automation account are:
20
18
21
19
1. Remove your solutions.
22
20
2. Unlink your workspace.
23
21
3. Move the Automation account.
24
-
4. Delete and re-create the Run As accounts.
22
+
4. Delete and recreate the Run As accounts.
25
23
5. Re-enable your solutions.
26
24
25
+
>[!NOTE]
26
+
>This article has been updated to use the new Azure PowerShell Az module. You can still use the AzureRM module, which will continue to receive bug fixes until at least December 2020. To learn more about the new Az module and AzureRM compatibility, see [Introducing the new Azure PowerShell Az module](https://docs.microsoft.com/powershell/azure/new-azureps-module-az?view=azps-3.5.0). For Az module installation instructions on your Hybrid Runbook Worker, see [Install the Azure PowerShell Module](https://docs.microsoft.com/powershell/azure/install-az-ps?view=azps-3.5.0). For your Automation account, you can update your modules to the latest version using [How to update Azure PowerShell modules in Azure Automation](../automation-update-azure-modules.md).
27
+
27
28
## Remove solutions
28
29
29
30
To unlink your workspace from your Automation account, these solutions must be removed from your workspace:
30
-
-**Change Tracking and Inventory**
31
-
-**Update Management**
32
-
-**Start/Stop VMs during off hours**
33
31
34
-
In your resource group, find each solution and select **Delete**. On the **Delete Resources** page, confirm the resources to be removed, and select **Delete**.
32
+
- Change Tracking and Inventory
33
+
- Update Management
34
+
- Start/Stop VMs during off hours
35
+
36
+
In your resource group, find each solution and select **Delete**. On the Delete Resources page, confirm the resources to be removed, and select **Delete**.
35
37
36
38

37
39
38
-
You can accomplish the same task with the [Remove-AzureRmResource](/powershell/module/azurerm.resources/remove-azurermresource) cmdlet as shown in the following example:
40
+
You can accomplish the same task with the [Remove-AzResource](https://docs.microsoft.com/powershell/module/Az.Resources/Remove-AzResource?view=azps-3.7.0) cmdlet as shown in the following example:
@@ -53,7 +55,7 @@ In the Azure portal, go to your resource group and select **Monitoring** > **Ale
53
55
54
56

55
57
56
-
On the **Rules** page, you should see a list of the alerts configured in that resource group. The **Start/Stop VMs** solution creates three alert rules:
58
+
On the Rules page, you should see a list of the alerts configured in that resource group. The **Start/Stop VMs** solution creates three alert rules:
57
59
58
60
* AutoStop_VM_Child
59
61
* ScheduledStartStop_Parent
@@ -64,20 +66,20 @@ Select these three alert rules, and then select **Delete**. This action will rem
64
66

65
67
66
68
> [!NOTE]
67
-
> If you don't see any alert rules on the **Rules** page, change the **Status** to show **Disabled** alerts, because you might have disabled them.
69
+
> If you don't see any alert rules on the Rules page, change the **Status** to Disabled to show disabled alerts, because you might have disabled them.
68
70
69
71
When the alert rules are removed, remove the action group that was created for the **Start/Stop VMs** solution notifications.
70
72
71
73
In the Azure portal, select **Monitor** > **Alerts** > **Manage action groups**.
72
74
73
75
Select **StartStop_VM_Notification** from the list. On the action group page, select **Delete**.
74
-
76
+
A
75
77

76
78
77
-
Similarly, you can delete your action group by using PowerShell with the [Remove-AzureRmActionGroup](/powershell/module/azurerm.insights/remove-azurermactiongroup) cmdlet, as seen in the following example:
79
+
Similarly, you can delete your action group by using PowerShell with the [Remove-AzActionGroup](https://docs.microsoft.com/powershell/module/az.monitor/remove-azactiongroup?view=azps-3.7.0) cmdlet, as seen in the following example:
@@ -104,7 +106,7 @@ Go to your Automation account in the new subscription and select **Run as accoun
104
106
105
107

106
108
107
-
Select each Run As account. On the **Properties** page, select **Delete** to delete the Run As account.
109
+
Select each Run As account. On the Properties page, select **Delete** to delete the Run As account.
108
110
109
111
> [!NOTE]
110
112
> If you do not have permissions to create or view the Run As accounts, you'll see the following message: `You do not have permissions to create an Azure Run As account (service principal) and grant the Contributor role to the service principal.` To learn about the permissions required to configure a Run As account, see [Permissions required to configure Run As accounts](../manage-runas-account.md#permissions).
@@ -121,7 +123,7 @@ Machines that are onboarded with your solutions will be visible when you've conn
121
123
122
124
To turn on the **Start/Stop VMs** during off-hours solution, you'll need to redeploy the solution. Under **Related Resources**, select **Start/Stop VMs** > **Learn more about and enable the solution** > **Create** to start the deployment.
123
125
124
-
On the **Add Solution** page, choose your Log Analytics Workspace and Automation account.
126
+
On the Add Solution page, choose your Log Analytics workspace and Automation account.
title: Azure Automation and Log Analytics workspace mappings
3
-
description: This article describes the mappings allowed between an Automation Account and a Log Analytics Workspace to support solution
3
+
description: This article describes the mappings allowed between an Automation account and a Log Analytics Workspace to support solution
4
4
services: automation
5
5
ms.service: automation
6
6
ms.subservice: process-automation
@@ -10,9 +10,10 @@ ms.date: 05/20/2019
10
10
ms.topic: conceptual
11
11
manager: carmonm
12
12
---
13
+
13
14
# Workspace mappings
14
15
15
-
When enabling solutions like Update Management, Change Tracking and Inventory, or the Start/Stop VMs during off-hours solution, only certain regions are supported for linking a Log Analytics workspace and an Automation Account. This mapping only applies to the Automation Account and the Log Analytics workspace. The resources reporting to your Automation Account or Log Analytics workspace can reside in other regions.
16
+
When enabling solutions like Update Management, Change Tracking and Inventory, or Start/Stop VMs during off hours, only certain regions are supported for linking a Log Analytics workspace and an Automation account. This mapping only applies to the Automation account and the Log Analytics workspace. The resources reporting to your Automation account or Log Analytics workspace can reside in other regions.
16
17
17
18
## Supported mappings
18
19
@@ -37,50 +38,47 @@ The following table shows the supported mappings:
37
38
|**US Gov**||
38
39
|USGovVirginia|USGovVirginia|
39
40
40
-
<sup>1</sup> EastUS mapping for Log Analytics workspaces to Automation Accounts is not an exact region to region mapping but is the correct mapping.
41
+
<sup>1</sup> EastUS mapping for Log Analytics workspaces to Automation accounts is not an exact region to region mapping but is the correct mapping.
41
42
42
-
<sup>2</sup> Due to capacity restraints the region isn't available when creating new resources. This includes Automation Accounts and Log Analytics workspaces. However, preexisting linked resources in the region should continue to work.
43
+
<sup>2</sup> Due to capacity restraints the region isn't available when creating new resources. This includes Automation accounts and Log Analytics workspaces. However, pre-existing linked resources in the region should continue to work.
43
44
44
45
## Unlink workspace
45
46
46
-
If you decide you no longer wish to integrate your Automation account with a Log Analytics workspace, you can unlink your account directly from the Azure portal. Before you proceed, you first need to remove the Update Management, Change Tracking and Inventory, or the Start/Stop VMs during off-hours solutions if you are using them. If you do not remove them, this process will be prevented from proceeding. Review the article for the particular solution you have imported to understand the steps required to remove it.
47
+
If you decide that you no longer want to integrate your Automation account with a Log Analytics workspace, you can unlink your account directly from the Azure portal. Before proceeding, you first need to remove the Update Management, Change Tracking and Inventory, and Start/Stop VMs during offhours solutions if you are using them. If you do not remove them, you can't complete the unlinking operation. Review the article for the particular solution you've imported to understand the steps required to remove it.
47
48
48
49
After you remove these solutions, you can perform the following steps to unlink your Automation account.
49
50
50
51
> [!NOTE]
51
-
> Some solutions including earlier versions of the Azure SQL monitoring solution may have created automation assets and may also need to be removed prior to unlinking the workspace.
52
+
> Some solutions including earlier versions of the Azure SQL monitoring solution might have created automation assets and might need to be removed prior to unlinking the workspace.
52
53
53
-
1. From the Azure portal, open your Automation account, and on the Automation account pageselect **Linked workspace** under the section **Related Resources** on the left.
54
+
1. From the Azure portal, open your Automation account. On the Automation account page, select **Linked workspace** under **Related Resources**.
54
55
55
-
2. On the Unlink workspace page, click **Unlink workspace**. You'll receive a prompt verifying you wish to continue.
56
+
2. On the Unlink workspace page, click **Unlink workspace**. You'll receive a prompt verifying if you wish to continue.
56
57
57
58
3. While Azure Automation attempts to unlink the account your Log Analytics workspace, you can track the progress under **Notifications** from the menu.
58
59
59
-
If you used the Update Management solution, optionally you may want to remove the following items that are no longer needed after you remove the solution.
60
-
61
-
* Update schedules - Each will have names that match the update deployments you created)
60
+
4. If you used the Update Management solution, optionally you might want to remove the following items that are no longer needed after you remove the solution.
62
61
63
-
* Hybrid worker groups created for the solution - Each will be named similarly to `machine1.contoso.com_9ceb8108-26c9-4051-b6b3-227600d715c8`).
62
+
* Update schedules - Each has a name that matches an update deployment that you created.
63
+
* Hybrid worker groups created for the solution - Each has a name similar to `machine1.contoso.com_9ceb8108-26c9-4051-b6b3-227600d715c8`.
64
64
65
-
If you used the Start/Stop VMs during off-hours solution, optionally you may want to remove the following items that are no longer needed after you remove the solution.
65
+
5.If you used the Start/Stop VMs during offhours solution, you can optionally remove the following items that aren't needed after you remove the solution.
66
66
67
-
* Start and stop VM runbook schedules
68
-
* Start and stop VM runbooks
69
-
* Variables
67
+
* Start and stop VM runbook schedules
68
+
* Start and stop VM runbooks
69
+
* Variables
70
70
71
-
Alternatively, you can also unlink your workspace from your Automation Account from your Log Analytics workspace. On your workspace, select **Automation Account** under **Related Resources**. On the Automation Account page, select **Unlink account**.
71
+
Alternatively, you can unlink your workspace from your Automation account from your Log Analytics workspace. In the workspace, select **Automation Account** under **Related Resources**. On the Automation Account page, select **Unlink account**.
72
72
73
73
## Next steps
74
74
75
-
Learn how to onboard the following solutions:
76
-
77
-
Update Management and Change Tracking and Inventory:
75
+
* Learn how to onboard Update Management and Change Tracking and Inventory solutions:
78
76
79
-
* From a [virtual machine](../automation-onboard-solutions-from-vm.md)
80
-
* From your [Automation account](../automation-onboard-solutions-from-automation-account.md)
81
-
* When [browsing multiple machines](../automation-onboard-solutions-from-browse.md)
82
-
* From a [runbook](../automation-onboard-solutions.md)
77
+
* From a [virtual machine](../automation-onboard-solutions-from-vm.md)
78
+
* From your [Automation account](../automation-onboard-solutions-from-automation-account.md)
79
+
* When [browsing multiple machines](../automation-onboard-solutions-from-browse.md)
80
+
* From a [runbook](../automation-onboard-solutions.md)
83
81
84
-
Start/Stop VMs during off-hours
82
+
* Learn how to onboard the Start/Stop VMs during offhours solution:
85
83
86
-
*[Deploy Start/Stop VMs during off-hours](../automation-solution-vm-management.md)
84
+
*[Deploy Start/Stop VMs during offhours](../automation-solution-vm-management.md)
0 commit comments