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/automation-create-alert-triggered-runbook.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ As described in the preceding section, each type of alert has a different schema
39
39
40
40
This example uses an alert from a VM. It retrieves the VM data from the payload, and then uses that information to stop the VM. The connection must be set up in the Automation account where the runbook is run. When using alerts to trigger runbooks, it is important to check the alert status in the runbook that is triggered. The runbook triggers each time the alert changes state. Alerts have multiple states, with the two most common being Activated and Resolved. Check for state in your runbook logic to ensure that the runbook does not run more than once. The example in this article shows how to look for alerts with state Activated only.
41
41
42
-
The runbook uses the connection asset `AzureRunAsConnection`[Run As account](automation-create-runas-account.md) to authenticate with Azure to perform the management action against the VM.
42
+
The runbook uses the connection asset `AzureRunAsConnection`[Run As account](./manage-runas-account.md) to authenticate with Azure to perform the management action against the VM.
43
43
44
44
Use this example to create a runbook called **Stop-AzureVmInResponsetoVMAlert**. You can modify the PowerShell script, and use it with many different resources.
45
45
@@ -186,7 +186,7 @@ Alerts use action groups, which are collections of actions that are triggered by
186
186
## Next steps
187
187
188
188
* To start a runbook using a webhook, see [Start a runbook from a webhook](automation-webhooks.md).
189
-
* To discover different ways to start a runbook, see [Start a runbook](automation-starting-a-runbook.md).
189
+
* To discover different ways to start a runbook, see [Start a runbook](./start-runbooks.md).
190
190
* To create an activity log alert, see [Create activity log alerts](../azure-monitor/platform/activity-log-alerts.md?toc=%2fazure%2fautomation%2ftoc.json).
191
191
* To learn how to create a near real-time alert, see [Create an alert rule in the Azure portal](../azure-monitor/platform/alerts-metric.md?toc=/azure/azure-monitor/toc.json).
192
192
* For a PowerShell cmdlet reference, see [Az.Automation](/powershell/module/az.automation/?view=azps-3.7.0#automation).
# Deploy an Azure Resource Manager template in a PowerShell runbook
12
12
13
-
You can write an [Azure Automation PowerShell runbook](automation-first-runbook-textual-powershell.md)
13
+
You can write an [Azure Automation PowerShell runbook](./learn/automation-tutorial-runbook-textual-powershell.md)
14
14
that deploys an Azure resource by using an
15
-
[Azure Resource Management template](../azure-resource-manager/resource-manager-create-first-template.md). Use of the template allows you to use Azure Automation and Azure Storage to automate deployment of your Azure resources. You can maintain your Resource Manager
15
+
[Azure Resource Management template](../azure-resource-manager/templates/quickstart-create-templates-use-the-portal.md). Use of the template allows you to use Azure Automation and Azure Storage to automate deployment of your Azure resources. You can maintain your Resource Manager
16
16
templates in a central, secure location, such as Azure Storage.
17
17
18
18
In this article, we create a PowerShell runbook that uses a Resource Manager template stored in
@@ -21,8 +21,8 @@ In this article, we create a PowerShell runbook that uses a Resource Manager tem
21
21
## Prerequisites
22
22
23
23
* Azure subscription. If you don't have one yet, you can [activate your MSDN subscriber benefits](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/) or [sign up for a free account](https://azure.microsoft.com/free/).
24
-
*[Automation account](automation-sec-configure-azure-runas-account.md) to hold the runbook and authenticate to Azure resources. This account must have permission to start and stop the virtual machine.
25
-
*[Azure Storage account](../storage/common/storage-create-storage-account.md) in which to store the Resource Manager template
24
+
*[Automation account](./manage-runas-account.md) to hold the runbook and authenticate to Azure resources. This account must have permission to start and stop the virtual machine.
25
+
*[Azure Storage account](../storage/common/storage-account-create.md) in which to store the Resource Manager template
26
26
* Azure PowerShell installed on a local machine. See [Install the Azure PowerShell Module](/powershell/azure/install-az-ps?view=azps-3.5.0) for information about how to get Azure PowerShell.
Copy file name to clipboardExpand all lines: articles/automation/automation-dsc-compile.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ $CompilationJob | Get-AzAutomationDscCompilationJobOutput –Stream Any
60
60
61
61
### Declare basic parameters
62
62
63
-
Parameter declaration in DSC configurations, including parameter types and properties, works the same as in Azure Automation runbooks. See [Starting a runbook in Azure Automation](automation-starting-a-runbook.md) to learn more about runbook parameters.
63
+
Parameter declaration in DSC configurations, including parameter types and properties, works the same as in Azure Automation runbooks. See [Starting a runbook in Azure Automation](./start-runbooks.md) to learn more about runbook parameters.
64
64
65
65
The following example uses `FeatureName` and `IsPresent` parameters to determine the values of properties in the **ParametersExample.sample** node configuration, generated during compilation.
Copy file name to clipboardExpand all lines: articles/automation/automation-dsc-diagnostics.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ the alert rule.
100
100
If you have set up logs from more than one Automation account or subscription to your workspace, you can group your alerts by subscription and Automation account. Derive the Automation account name from the `Resource` field in the search of the `DscNodeStatusData` records.
101
101
1. To open the **Create rule** screen, click **New Alert Rule** at the top of the page.
102
102
103
-
For more information on the options to configure the alert, see [Create an alert rule](../monitoring-and-diagnostics/monitor-alerts-unified-usage.md).
103
+
For more information on the options to configure the alert, see [Create an alert rule](../azure-monitor/platform/alerts-metric.md).
104
104
105
105
### Find failed DSC resources across all nodes
106
106
@@ -194,5 +194,5 @@ Azure Automation diagnostics create two categories of records in Azure Monitor l
194
194
- For a PowerShell cmdlet reference, see [Az.Automation](/powershell/module/az.automation/?view=azps-3.7.0#automation).
195
195
- For pricing information, see [Azure Automation State Configuration pricing](https://azure.microsoft.com/pricing/details/automation/).
196
196
- To see an example of using Azure Automation State Configuration in a continuous deployment pipeline, see [Set up continuous deployment with Chocolatey](automation-dsc-cd-chocolatey.md).
197
-
- To learn more about how to construct different search queries and review the Automation State Configuration logs with Azure Monitor logs, see [Log searches in Azure Monitor logs](../log-analytics/log-analytics-log-searches.md).
198
-
- To learn more about Azure Monitor logs and data collection sources, see [Collecting Azure storage data in Azure Monitor logs overview](../azure-monitor/platform/collect-azure-metrics-logs.md).
197
+
- To learn more about how to construct different search queries and review the Automation State Configuration logs with Azure Monitor logs, see [Log searches in Azure Monitor logs](../azure-monitor/log-query/log-query-overview.md).
198
+
- To learn more about Azure Monitor logs and data collection sources, see [Collecting Azure storage data in Azure Monitor logs overview](../azure-monitor/platform/resource-logs.md#collect-to-log-analytics-workspace).
Copy file name to clipboardExpand all lines: articles/automation/automation-dsc-getting-started.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,8 @@ article, you can use the [Azure Automation Managed Node template](https://github
21
21
22
22
To complete the examples in this article, the following are required:
23
23
24
-
- An Azure Automation account. For instructions on creating an Azure Automation Run As account, see [Azure Run As Account](automation-sec-configure-azure-runas-account.md).
25
-
- An Azure Resource Manager VM (not Classic) running a [supported operating system](automation-dsc-overview.md#operating-system-requirements). For instructions on creating a VM, see [Create your first Windows virtual machine in the Azure portal](../virtual-machines/virtual-machines-windows-hero-tutorial.md)
24
+
- An Azure Automation account. For instructions on creating an Azure Automation Run As account, see [Azure Run As Account](./manage-runas-account.md).
25
+
- An Azure Resource Manager VM (not Classic) running a [supported operating system](automation-dsc-overview.md#operating-system-requirements). For instructions on creating a VM, see [Create your first Windows virtual machine in the Azure portal](../virtual-machines/windows/quick-create-portal.md)
Copy file name to clipboardExpand all lines: articles/automation/automation-edit-textual-runbook.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ This article provides detailed steps for performing different functions with thi
51
51
1. In the Canvas control of the textual editor, position the cursor where you want to place the code for the child runbook.
52
52
2. Expand the **Assets** node in the Library control.
53
53
3. Expand the node for the desired asset type.
54
-
4. Right-click the asset name to insert and select **Add to canvas**. For [variable assets](automation-variables.md), select either **Add "Get Variable" to canvas** or **Add "Set Variable" to canvas**, depending on whether you want to get or set the variable.
54
+
4. Right-click the asset name to insert and select **Add to canvas**. For [variable assets](./shared-resources/variables.md), select either **Add "Get Variable" to canvas** or **Add "Set Variable" to canvas**, depending on whether you want to get or set the variable.
55
55
5. Note that the code for the asset is inserted into the runbook.
56
56
57
57
## Edit an Azure Automation runbook using Windows PowerShell
Copy file name to clipboardExpand all lines: articles/automation/automation-enable-changes-from-auto-acct.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This article describes how you can use your Automation account to enable the [Ch
16
16
## Prerequisites
17
17
18
18
* Azure subscription. If you don't have one yet, you can [activate your MSDN subscriber benefits](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/) or sign up for a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
19
-
*[Automation account](automation-offering-get-started.md) to manage machines.
19
+
*[Automation account](./index.yml) to manage machines.
20
20
* A [virtual machine](../virtual-machines/windows/quick-create-portal.md).
21
21
22
22
## Sign in to Azure
@@ -70,4 +70,4 @@ Manually installed machines or machines already reporting to your workspace must
70
70
## Next steps
71
71
72
72
* To work with the feature, see [Manage Change Tracking and Inventory](change-tracking-file-contents.md).
73
-
* To troubleshoot general problems with the feature, see [Troubleshoot Change Tracking and Inventory issues](troubleshoot/change-tracking.md).
73
+
* To troubleshoot general problems with the feature, see [Troubleshoot Change Tracking and Inventory issues](troubleshoot/change-tracking.md).
Copy file name to clipboardExpand all lines: articles/automation/automation-enable-changes-from-browse.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ The number of resource groups that you can use for managing your VMs is limited
18
18
## Prerequisites
19
19
20
20
* Azure subscription. If you don't have one yet, you can [activate your MSDN subscriber benefits](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/) or sign up for a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
21
-
*[Automation account](automation-offering-get-started.md) to manage machines.
21
+
*[Automation account](./index.yml) to manage machines.
22
22
* A [virtual machine](../virtual-machines/windows/quick-create-portal.md).
23
23
24
24
## Sign in to Azure
@@ -55,4 +55,4 @@ Sign in to Azure at https://portal.azure.com.
55
55
## Next steps
56
56
57
57
* For details of working with the feature, see [Manage Change Tracking and Inventory](change-tracking-file-contents.md).
58
-
* To troubleshoot general problems with the feature, see [Troubleshoot Change Tracking and Inventory issues](troubleshoot/change-tracking.md).
58
+
* To troubleshoot general problems with the feature, see [Troubleshoot Change Tracking and Inventory issues](troubleshoot/change-tracking.md).
Copy file name to clipboardExpand all lines: articles/automation/automation-enable-changes-from-runbook.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This article describes how you can use a runbook to enable the [Change Tracking
16
16
## Prerequisites
17
17
18
18
* Azure subscription. If you don't have one yet, you can [activate your MSDN subscriber benefits](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/) or sign up for a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
19
-
*[Automation account](automation-offering-get-started.md) to manage machines.
19
+
*[Automation account](./index.yml) to manage machines.
20
20
* A [virtual machine](../virtual-machines/windows/quick-create-portal.md).
Copy file name to clipboardExpand all lines: articles/automation/automation-enable-changes-from-vm.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This article describes how you can use an Azure VM to enable the [Change Trackin
17
17
## Prerequisites
18
18
19
19
* Azure subscription. If you don't have one yet, you can [activate your MSDN subscriber benefits](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/) or sign up for a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
20
-
*[Automation account](automation-offering-get-started.md) to manage machines.
20
+
*[Automation account](./index.yml) to manage machines.
21
21
* A [virtual machine](../virtual-machines/windows/quick-create-portal.md).
Copy file name to clipboardExpand all lines: articles/automation/automation-graphical-authoring-intro.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -367,7 +367,7 @@ The following example uses output from an activity called `Get Twitter Connectio
367
367
368
368
## Authenticate to Azure resources
369
369
370
-
Runbooks in Azure Automation that manage Azure resources require authentication to Azure. The [Run As account](automation-create-runas-account.md), also referred to as a service principal, is the default mechanism that an Automation runbook uses to access Azure Resource Manager resources in your subscription. You can add this functionality to a graphical runbook by adding the `AzureRunAsConnection` connection asset, which uses the PowerShell [Get-AutomationConnection](/system-center/sma/manage-global-assets) cmdlet, to the canvas. You can also add the [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) cmdlet. This scenario is illustrated in the following example.
370
+
Runbooks in Azure Automation that manage Azure resources require authentication to Azure. The [Run As account](./manage-runas-account.md), also referred to as a service principal, is the default mechanism that an Automation runbook uses to access Azure Resource Manager resources in your subscription. You can add this functionality to a graphical runbook by adding the `AzureRunAsConnection` connection asset, which uses the PowerShell [Get-AutomationConnection](/system-center/sma/manage-global-assets) cmdlet, to the canvas. You can also add the [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) cmdlet. This scenario is illustrated in the following example.
371
371
372
372

373
373
@@ -384,7 +384,7 @@ The next activity, `Connect-AzAccount`, adds the authenticated Run As account fo
384
384
385
385
For the parameter fields **APPLICATIONID**, **CERTIFICATETHUMBPRINT**, and **TENANTID**, specify the name of the property for the field path, since the activity outputs an object with multiple properties. Otherwise, when the runbook executes, it fails while attempting to authenticate. This is what you need at a minimum to authenticate your runbook with the Run As account.
386
386
387
-
Some subscribers create an Automation account using an [Azure AD user account](automation-create-aduser-account.md) to manage Azure classic deployment or for Azure Resource Manager resources. To maintain backward compatibility for these subscribers, the authentication mechanism to use in your runbook is the `Add-AzureAccount` cmdlet with a [credential asset](automation-credentials.md). The asset represents an Active Directory user with access to the Azure account.
387
+
Some subscribers create an Automation account using an [Azure AD user account](./shared-resources/credentials.md) to manage Azure classic deployment or for Azure Resource Manager resources. To maintain backward compatibility for these subscribers, the authentication mechanism to use in your runbook is the `Add-AzureAccount` cmdlet with a [credential asset](./shared-resources/credentials.md). The asset represents an Active Directory user with access to the Azure account.
388
388
389
389
You can enable this functionality for your graphical runbook by adding a credential asset to the canvas, followed by an `Add-AzureAccount` activity that uses the credential asset for its input. See the following example.
0 commit comments