Skip to content

Commit 17256c6

Browse files
committed
Second pass
1 parent 1163528 commit 17256c6

File tree

46 files changed

+92
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+92
-92
lines changed

Diff for: articles/automation/automation-create-alert-triggered-runbook.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ As described in the preceding section, each type of alert has a different schema
3939

4040
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.
4141

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.
4343

4444
Use this example to create a runbook called **Stop-AzureVmInResponsetoVMAlert**. You can modify the PowerShell script, and use it with many different resources.
4545

@@ -186,7 +186,7 @@ Alerts use action groups, which are collections of actions that are triggered by
186186
## Next steps
187187
188188
* 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).
190190
* To create an activity log alert, see [Create activity log alerts](../azure-monitor/platform/activity-log-alerts.md?toc=%2fazure%2fautomation%2ftoc.json).
191191
* 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).
192192
* For a PowerShell cmdlet reference, see [Az.Automation](/powershell/module/az.automation/?view=azps-3.7.0#automation).

Diff for: articles/automation/automation-deploy-template-runbook.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ keywords: powershell, runbook, json, azure automation
1010

1111
# Deploy an Azure Resource Manager template in a PowerShell runbook
1212

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)
1414
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
1616
templates in a central, secure location, such as Azure Storage.
1717

1818
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
2121
## Prerequisites
2222

2323
* 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
2626
* 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.
2727

2828
## Create the Resource Manager template
@@ -198,7 +198,7 @@ Publish-AzAutomationRunbook @publishParams
198198
Now we start the runbook by calling the
199199
[Start-AzAutomationRunbook](/powershell/module/Az.Automation/Start-AzAutomationRunbook?view=azps-3.7.0)
200200
cmdlet. For information about how to start a runbook in the Azure portal, see
201-
[Starting a runbook in Azure Automation](automation-starting-a-runbook.md).
201+
[Starting a runbook in Azure Automation](./start-runbooks.md).
202202

203203
Run the following commands in the PowerShell console:
204204

Diff for: articles/automation/automation-dsc-compile.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $CompilationJob | Get-AzAutomationDscCompilationJobOutput –Stream Any
6060

6161
### Declare basic parameters
6262

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.
6464

6565
The following example uses `FeatureName` and `IsPresent` parameters to determine the values of properties in the **ParametersExample.sample** node configuration, generated during compilation.
6666

@@ -184,10 +184,10 @@ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -Automa
184184
Asset references are the same in both Azure Automation State Configuration and runbooks. For more information, see the
185185
following:
186186

187-
- [Certificates](automation-certificates.md)
187+
- [Certificates](./shared-resources/certificates.md)
188188
- [Connections](automation-connections.md)
189-
- [Credentials](automation-credentials.md)
190-
- [Variables](automation-variables.md)
189+
- [Credentials](./shared-resources/credentials.md)
190+
- [Variables](./shared-resources/variables.md)
191191

192192
#### Credential assets
193193

Diff for: articles/automation/automation-dsc-diagnostics.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ the alert rule.
100100
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.
101101
1. To open the **Create rule** screen, click **New Alert Rule** at the top of the page.
102102

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).
104104

105105
### Find failed DSC resources across all nodes
106106

@@ -194,5 +194,5 @@ Azure Automation diagnostics create two categories of records in Azure Monitor l
194194
- For a PowerShell cmdlet reference, see [Az.Automation](/powershell/module/az.automation/?view=azps-3.7.0#automation).
195195
- For pricing information, see [Azure Automation State Configuration pricing](https://azure.microsoft.com/pricing/details/automation/).
196196
- 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).

Diff for: articles/automation/automation-dsc-getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ article, you can use the [Azure Automation Managed Node template](https://github
2121

2222
To complete the examples in this article, the following are required:
2323

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)
2626

2727
## Create a DSC configuration
2828

Diff for: articles/automation/automation-edit-textual-runbook.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This article provides detailed steps for performing different functions with thi
5151
1. In the Canvas control of the textual editor, position the cursor where you want to place the code for the child runbook.
5252
2. Expand the **Assets** node in the Library control.
5353
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.
5555
5. Note that the code for the asset is inserted into the runbook.
5656

5757
## Edit an Azure Automation runbook using Windows PowerShell
@@ -90,9 +90,9 @@ Publish-AzAutomationRunbook -Name $runbookName -AutomationAccountName $automatio
9090
* [Manage runbooks in Azure Automation](manage-runbooks.md).
9191
* [Learning PowerShell workflow](automation-powershell-workflow.md).
9292
* [Graphical authoring in Azure Automation](automation-graphical-authoring-intro.md).
93-
* [Certificates](automation-certificates.md).
93+
* [Certificates](./shared-resources/certificates.md).
9494
* [Connections](automation-connections.md).
95-
* [Credentials](automation-credentials.md).
96-
* [Schedules](automation-schedules.md).
97-
* [Variables](automation-variables.md).
95+
* [Credentials](./shared-resources/credentials.md).
96+
* [Schedules](./shared-resources/schedules.md).
97+
* [Variables](./shared-resources/variables.md).
9898
* [PowerShell cmdlet reference](/powershell/module/az.automation/?view=azps-3.7.0#automation).

Diff for: articles/automation/automation-enable-changes-from-auto-acct.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This article describes how you can use your Automation account to enable the [Ch
1616
## Prerequisites
1717

1818
* 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.
2020
* A [virtual machine](../virtual-machines/windows/quick-create-portal.md).
2121

2222
## Sign in to Azure
@@ -70,4 +70,4 @@ Manually installed machines or machines already reporting to your workspace must
7070
## Next steps
7171

7272
* 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).

Diff for: articles/automation/automation-enable-changes-from-browse.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The number of resource groups that you can use for managing your VMs is limited
1818
## Prerequisites
1919

2020
* 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.
2222
* A [virtual machine](../virtual-machines/windows/quick-create-portal.md).
2323

2424
## Sign in to Azure
@@ -55,4 +55,4 @@ Sign in to Azure at https://portal.azure.com.
5555
## Next steps
5656

5757
* 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).

Diff for: articles/automation/automation-enable-changes-from-runbook.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This article describes how you can use a runbook to enable the [Change Tracking
1616
## Prerequisites
1717

1818
* 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.
2020
* A [virtual machine](../virtual-machines/windows/quick-create-portal.md).
2121

2222
## Enable Change Tracking and Inventory

Diff for: articles/automation/automation-enable-changes-from-vm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This article describes how you can use an Azure VM to enable the [Change Trackin
1717
## Prerequisites
1818

1919
* 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.
2121
* A [virtual machine](../virtual-machines/windows/quick-create-portal.md).
2222

2323
## Sign in to Azure

Diff for: articles/automation/automation-graphical-authoring-intro.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ The following example uses output from an activity called `Get Twitter Connectio
367367

368368
## Authenticate to Azure resources
369369

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.
371371

372372
![Run As Authentication Activities](media/automation-graphical-authoring-intro/authenticate-run-as-account.png)
373373

@@ -384,7 +384,7 @@ The next activity, `Connect-AzAccount`, adds the authenticated Run As account fo
384384
385385
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.
386386

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.
388388

389389
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.
390390

0 commit comments

Comments
 (0)