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/learn/automation-tutorial-runbook-textual.md
+47-48Lines changed: 47 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: This tutorial teaches you to create, test, and publish a PowerShell
4
4
services: automation
5
5
ms.subservice: process-automation
6
6
ms.date: 10/16/2022
7
-
ms.topic: tutorial
7
+
ms.topic: tutorial
8
8
ms.custom:
9
9
#Customer intent: As a developer, I want use workflow runbooks so that I can automate the parallel starting of VMs.
10
10
---
@@ -46,7 +46,7 @@ Assign permissions to the appropriate [managed identity](../automation-security-
46
46
47
47
:::image type="content" source="../media/automation-tutorial-runbook-textual/system-assigned-role-assignments-portal.png" alt-text="Selecting Azure role assignments in portal.":::
48
48
49
-
1. Select **+ Add role assignment (Preview)** to open the **Add role assignment (Preview)** page.
49
+
1. Select **+ Add role assignment (Preview)** to open the **Add role assignment (Preview)** page.
50
50
51
51
:::image type="content" source="../media/automation-tutorial-runbook-textual/system-assigned-add-role-assignment-portal.png" alt-text="Add role assignments in portal.":::
52
52
@@ -71,7 +71,7 @@ Assign permissions to the appropriate [managed identity](../automation-security-
71
71
72
72
:::image type="content" source="../media/automation-tutorial-runbook-textual/managed-identity-client-id-portal.png" alt-text="Showing Client ID for managed identity in portal":::
73
73
74
-
1. From the left menu, select **Azure role assignments** and then **+ Add role assignment (Preview)** to open the **Add role assignment (Preview)** page.
74
+
1. From the left menu, select **Azure role assignments** and then **+ Add role assignment (Preview)** to open the **Add role assignment (Preview)** page.
75
75
76
76
:::image type="content" source="../media/automation-tutorial-runbook-textual/user-assigned-add-role-assignment-portal.png" alt-text="Add role assignments in portal for user-assigned identity.":::
77
77
@@ -91,7 +91,7 @@ Assign permissions to the appropriate [managed identity](../automation-security-
91
91
Start by creating a simple [PowerShell Workflow runbook](../automation-runbook-types.md#powershell-workflow-runbooks). One advantage of Windows PowerShell Workflows is the ability to perform a set of commands in parallel instead of sequentially as with a typical script.
92
92
93
93
>[!NOTE]
94
-
> With release runbook creation has a new experience in the Azure portal. When you select **Runbooks** blade > **Create a runbook**, a new page **Create a runbook** opens with applicable options.
94
+
> With release runbook creation has a new experience in the Azure portal. When you select **Runbooks** blade > **Create a runbook**, a new page **Create a runbook** opens with applicable options.
95
95
96
96
1. From your open Automation account page, under **Process Automation**, select **Runbooks**
97
97
@@ -103,9 +103,9 @@ Start by creating a simple [PowerShell Workflow runbook](../automation-runbook-t
103
103
1. From the **Runtime version** drop-down, select **5.1**.
104
104
1. Enter applicable **Description**.
105
105
1. Select **Create**.
106
-
106
+
107
107
:::image type="content" source="../media/automation-tutorial-runbook-textual/create-powershell-workflow-runbook-options.png" alt-text="PowerShell workflow runbook options from portal":::
Review the output. Everything in the `Parallel` block, including the `Start-Sleep` command, executed at the same time. The same commands outside the `Parallel` block ran sequentially, as shown by the different date time stamps.
155
+
Review the output. Everything in the `Parallel` block, including the `Start-Sleep` command, executed at the same time. The same commands outside the `Parallel` block ran sequentially, as shown by the different date time stamps.
156
156
157
157
1. Close the **Test** page to return to the canvas.
158
158
@@ -190,15 +190,15 @@ You've tested and published your runbook, but so far it doesn't do anything usef
190
190
workflow MyFirstRunbook-Workflow
191
191
{
192
192
$resourceGroup = "resourceGroupName"
193
-
193
+
194
194
# Ensures you do not inherit an AzContext in your runbook
195
195
Disable-AzContextAutosave -Scope Process
196
-
196
+
197
197
# Connect to Azure with system-assigned managed identity
@@ -219,9 +219,9 @@ You've tested and published your runbook, but so far it doesn't do anything usef
219
219
220
220
## Add code to start a virtual machine
221
221
222
-
Now that your runbook is authenticating to the Azure subscription, you can manage resources. Add a command to start a virtual machine. You can pick any VM in your Azure subscription, and for now you're hardcoding that name in the runbook.
222
+
Now that your runbook is authenticating to the Azure subscription, you can manage resources. Add a command to start a virtual machine. You can pick any VM in your Azure subscription, and for now you're hardcoding that name in the runbook.
223
223
224
-
1. Add the code below as the last line immediately before the closing brace. Replace `VMName` with the actual name of a VM.
224
+
1. Add the code below as the last line immediately before the closing brace. Replace `VMName` with the actual name of a VM.
Write-Output "`r`n Action not allowed. Please enter 'stop' or 'start'."
295
+
}
296
+
}
299
297
```
300
298
301
299
1. If you want the runbook to execute with the system-assigned managed identity, leave the code as-is. If you prefer to use a user-assigned managed identity, then:
300
+
302
301
1. From line 9, remove `Connect-AzAccount -Identity`,
303
302
1. Replace it with `Connect-AzAccount -Identity -AccountId <ClientId>`, and
Copy file name to clipboardExpand all lines: articles/azure-monitor/agents/azure-monitor-agent-migration-tools.md
+27-27Lines changed: 27 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,35 +56,35 @@ To install DCR Config Generator:
56
56
57
57
1. Run the script:
58
58
59
-
Option 1: Outputs **ready-to-deploy ARM template files** only, which creates the generated DCR in the specified subscription and resource group, when deployed.
Option 2: Outputs **ready-to-deploy ARM template files** and **the DCR JSON files** separately for you to deploy via other means. You need to set the `GetDcrPayload` parameter.
| `SubscriptionId` | Yes | ID of the subscription that contains the target workspace. |
75
-
| `ResourceGroupName` | Yes | Resource group that contains the target workspace. |
76
-
| `WorkspaceName` | Yes | Name of the target workspace. |
77
-
| `DCRName` | Yes | Name of the new DCR. |
78
-
| `Location` | Yes | Region location for the new DCR. |
79
-
| `GetDcrPayload` | No | When set, it generates additional DCR JSON files
80
-
| `FolderPath` | No | Path in which to save the ARM template files and JSON files (optional). By default, Azure Monitor uses the current directory. |
81
-
59
+
Option 1: Outputs **ready-to-deploy ARM template files** only, which creates the generated DCR in the specified subscription and resource group, when deployed.
Option 2: Outputs **ready-to-deploy ARM template files** and **the DCR JSON files** separately for you to deploy via other means. You need to set the `GetDcrPayload` parameter.
| `SubscriptionId` | Yes | ID of the subscription that contains the target workspace. |
75
+
| `ResourceGroupName` | Yes | Resource group that contains the target workspace. |
76
+
| `WorkspaceName` | Yes | Name of the target workspace. |
77
+
| `DCRName` | Yes | Name of the new DCR. |
78
+
| `Location` | Yes | Region location for the new DCR. |
79
+
| `GetDcrPayload` | No | When set, it generates additional DCR JSON files
80
+
| `FolderPath` | No | Path in which to save the ARM template files and JSON files (optional). By default, Azure Monitor uses the current directory. |
81
+
82
82
1. Review the output ARM template files. The script can produce two types of ARM template files, depending on the agent configuration in the target workspace:
83
83
84
-
- Windows ARM template and parameter files - if the target workspace contains Windows performance counters or Windows events.
85
-
- Linux ARM template and parameter files - if the target workspace contains Linux performance counters or Linux Syslog events.
86
-
87
-
If the Log Analytics workspace wasn't [configured to collect data](./log-analytics-agent.md#data-collected) from connected agents, the generated files will be empty. This is a scenario in which the agent was connected to a Log Analytics workspace, but wasn't configured to send any data from the host machine.
84
+
- Windows ARM template and parameter files - if the target workspace contains Windows performance counters or Windows events.
85
+
- Linux ARM template and parameter files - if the target workspace contains Linux performance counters or Linux Syslog events.
86
+
87
+
If the Log Analytics workspace wasn't [configured to collect data](./log-analytics-agent.md#data-collected) from connected agents, the generated files will be empty. This is a scenario in which the agent was connected to a Log Analytics workspace, but wasn't configured to send any data from the host machine.
Copy file name to clipboardExpand all lines: articles/azure-monitor/agents/azure-monitor-agent-troubleshoot-linux-vm-rsyslog.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,8 @@ Overview of Azure Monitor Agent for Linux Syslog collection and supported RFC st
19
19
- Azure Monitor Agent ingests Syslog events via the previously mentioned socket and filters them based on facility or severity combination from data collection rule (DCR) configuration in `/etc/opt/microsoft/azuremonitoragent/config-cache/configchunks/`. Any `facility` or `severity` not present in the DCR is dropped.
20
20
- Azure Monitor Agent attempts to parse events in accordance with **RFC3164** and **RFC5424**. It also knows how to parse the message formats listed on [this website](./azure-monitor-agent-overview.md#data-sources-and-destinations).
21
21
- Azure Monitor Agent identifies the destination endpoint for Syslog events from the DCR configuration and attempts to upload the events.
22
-
> [!NOTE]
23
-
> Azure Monitor Agent uses local persistency by default. All events received from `rsyslog` or `syslog-ng` are queued in `/var/opt/microsoft/azuremonitoragent/events` if they fail to be uploaded.
22
+
> [!NOTE]
23
+
> Azure Monitor Agent uses local persistency by default. All events received from `rsyslog` or `syslog-ng` are queued in `/var/opt/microsoft/azuremonitoragent/events` if they fail to be uploaded.
24
24
25
25
## Issues
26
26
@@ -92,15 +92,15 @@ If you're sending a high log volume through rsyslog and your system is set up to
92
92
93
93
1. For example, to remove `local4` events from being logged at `/var/log/syslog` or `/var/log/messages`, change this line in `/etc/rsyslog.d/50-default.conf` from this snippet:
0 commit comments