Skip to content

Commit 69c11d6

Browse files
authored
Merge pull request #199790 from MicrosoftDocs/main
4 P.M. Publish, Sunday 5/29/22
2 parents 1b1820a + e7d1b1d commit 69c11d6

16 files changed

+230
-88
lines changed

articles/azure-monitor/alerts/alerts-log.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ ms.reviewer: yanivlavi
1212

1313
This article shows you how to create log alert rules and manage your alert instances. Azure Monitor log alerts allow users to use a [Log Analytics](../logs/log-analytics-tutorial.md) query to evaluate resource logs at a set frequency and fire an alert based on the results. Rules can trigger one or more actions using [alert processing rules](alerts-action-rules.md) and [action groups](./action-groups.md). Learn the concepts behind log alerts [here](alerts-types.md#log-alerts).
1414

15-
When an alert is triggered by an alert rule,
16-
- Target: A specific Azure resource to monitor.
17-
- Criteria: Logic to evaluate. If met, the alert fires.
18-
- Action: Notifications or automation - email, SMS, webhook, and so on.
15+
You create an alert rule by combining:
16+
- The resource(s) to be monitored.
17+
- The signal or telemetry from the resource
18+
- Conditions
19+
20+
And then defining these elements of the triggered alert:
21+
- Alert processing rules
22+
- Action groups
23+
1924
You can also [create log alert rules using Azure Resource Manager templates](../alerts/alerts-log-create-templates.md).
2025
## Create a new log alert rule in the Azure portal
2126

articles/azure-monitor/logs/basic-logs-configure.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,27 @@ You can currently configure the following tables for Basic Logs:
2727
2828

2929
## Set table configuration
30+
31+
# [Portal](#tab/portal-1)
32+
33+
To configure a table for Basic Logs or Analytics Logs in the Azure portal:
34+
35+
1. From the **Log Analytics workspaces** menu, select **Tables (preview)**.
36+
37+
The **Tables (preview)** screen lists all of the tables in the workspace.
38+
39+
1. Select the context menu for the table you want to configure and select **Manage table**.
40+
41+
:::image type="content" source="media/basic-logs-configure/log-analytics-table-configuration.png" lightbox="media/basic-logs-configure/log-analytics-table-configuration.png" alt-text="Screenshot showing the Manage table button for one of the tables in a workspace.":::
42+
43+
1. From the **Table plan** dropdown on the table configuration screen, select **Basic** or **Analytics**.
44+
45+
The **Table plan** dropdown is enabled only for [tables that support Basic Logs](#which-tables-support-basic-logs).
46+
47+
:::image type="content" source="media/basic-logs-configure/log-analytics-configure-table-plan.png" lightbox="media/basic-logs-configure/log-analytics-configure-table-plan.png" alt-text="Screenshot showing the Table plan dropdown on the table configuration screen.":::
48+
49+
1. Select **Save**.
50+
3051
# [API](#tab/api-1)
3152

3253
To configure a table for Basic Logs or Analytics Logs, call the **Tables - Update** API:
@@ -117,9 +138,11 @@ For example:
117138
---
118139
119140
## Check table configuration
120-
# [Portal](#tab/portal-1)
141+
# [Portal](#tab/portal-2)
142+
143+
To check table configuration in the Azure portal, you can open the table configuration screen, as described in [Set table configuration](#set-table-configuration).
121144
122-
To check the configuration of a table in the Azure portal:
145+
Alternatively:
123146
124147
1. From the **Azure Monitor** menu, select **Logs** and select your workspace for the [scope](scope.md). See [Log Analytics tutorial](log-analytics-tutorial.md#view-table-information) for a walkthrough.
125148
1. Open the **Tables** tab, which lists all tables in the workspace.
@@ -128,7 +151,7 @@ To check the configuration of a table in the Azure portal:
128151
129152
![Screenshot of the Basic Logs table icon in the table list.](./media/basic-logs-configure/table-icon.png#lightbox)
130153
131-
You can also hover over a table name for the table information view. This will specify that the table is configured as Basic Logs:
154+
You can also hover over a table name for the table information view, which indicates whether the table is configured as Basic Logs:
132155
133156
![Screenshot of the Basic Logs table indicator in the table details.](./media/basic-logs-configure/table-info.png#lightbox)
134157

articles/azure-monitor/logs/customer-managed-keys.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,9 @@ When link your own storage (BYOS) to workspace, the service stores *saved-search
254254
* You need to have "write" permissions on your workspace and Storage Account.
255255
* Make sure to create your Storage Account in the same region as your Log Analytics workspace is located.
256256
* The *saves searches* in storage is considered as service artifacts and their format may change.
257-
* Existing *saves searches* are removed from your workspace. Copy and any *saves searches* that you need before the configuration. You can view your *saved-searches* using [PowerShell](/powershell/module/az.operationalinsights/get-azoperationalinsightssavedsearch).
258-
* Query history isn't supported and you won't be able to see queries that you ran.
257+
* Existing *saves searches* are removed from your workspace. Copy any *saves searches* that you need before this configuration. You can view your *saved-searches* using [PowerShell](/powershell/module/az.operationalinsights/get-azoperationalinsightssavedsearch).
258+
* Query 'history' and 'pin to dashboard' aren't supported when linking Storage Account for queries.
259259
* You can link a single Storage Account to a workspace, which can be used for both *saved-searches* and *log alerts* queries.
260-
* Pin to dashboard isn't supported.
261260
* Fired log alerts will not contains search results or alert query. You can use [alert dimensions](../alerts/alerts-unified-log.md#split-by-alert-dimensions) to get context in the fired alerts.
262261

263262
**Configure BYOS for saved-searches queries**

articles/azure-monitor/logs/data-retention-archive.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ During the interactive retention period, data is available for monitoring, troub
2323
> The archive feature is currently in public preview and can only be set at the table level, not at the workspace level.
2424
2525
## Configure the default workspace retention policy
26-
You can set the workspace default retention policy in the Azure portal to 30, 31, 60, 90, 120, 180, 270, 365, 550, and 730 days. To set a different policy, use the Resource Manager configuration method described below. If you're on the *free* tier, you need to upgrade to the paid tier to change the data retention period.
26+
You can set the workspace default retention policy in the Azure portal to 30, 31, 60, 90, 120, 180, 270, 365, 550, and 730 days. You can set a different policy for specific tables by [configuring retention and archive policy at the table level](#set-retention-and-archive-policy-by-table). If you're on the *free* tier, you'll need to upgrade to the paid tier to change the data retention period.
2727

2828
To set the default workspace retention policy:
2929

@@ -37,17 +37,25 @@ To set the default workspace retention policy:
3737

3838
## Set retention and archive policy by table
3939

40-
You can set retention policies for individual tables, except for workspaces in the legacy Free Trial pricing tier, using Azure Resource Manager APIs. You can’t currently configure data retention for individual tables in the Azure portal.
40+
By default, all tables in your workspace inherit the workspace's interactive retention setting and have no archive policy. You can modify the retention and archive policies of individual tables, except for workspaces in the legacy Free Trial pricing tier.
4141

4242
You can keep data in interactive retention between 4 and 730 days. You can set the archive period for a total retention time of up to 2,555 days (seven years).
4343

44-
Each table is a subresource of the workspace it's in. For example, you can address the `SecurityEvent` table in [Azure Resource Manager](../../azure-resource-manager/management/overview.md) as:
44+
# [Portal](#tab/portal-1)
4545

46-
```
47-
/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/MyResourceGroupName/providers/Microsoft.OperationalInsights/workspaces/MyWorkspaceName/Tables/SecurityEvent
48-
```
46+
To set the retention and archive duration for a table in the Azure portal:
47+
48+
1. From the **Log Analytics workspaces** menu, select **Tables (preview)**.
49+
50+
The **Tables (preview)** screen lists all of the tables in the workspace.
51+
52+
1. Select the context menu for the table you want to configure and select **Manage table**.
53+
54+
:::image type="content" source="media/basic-logs-configure/log-analytics-table-configuration.png" lightbox="media/basic-logs-configure/log-analytics-table-configuration.png" alt-text="Screenshot showing the Manage table button for one of the tables in a workspace.":::
4955

50-
The table name is case-sensitive.
56+
1. Configure the retention and archive duration in **Data retention settings** section of the table configuration screen.
57+
58+
:::image type="content" source="media/data-retention-configure/log-analytics-configure-table-retention-archive.png" lightbox="media/data-retention-configure/log-analytics-configure-table-retention-archive.png" alt-text="Screenshot showing the data retention settings on the table configuration screen.":::
5159

5260
# [API](#tab/api-1)
5361

@@ -58,7 +66,7 @@ PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups
5866
```
5967

6068
> [!NOTE]
61-
> You don't explicitly specify the archive duration in the API call. Instead, you set the total retention, which specifies the retention plus the archive duration.
69+
> You don't explicitly specify the archive duration in the API call. Instead, you set the total retention, which is the sum of the interactive retention plus the archive duration.
6270
6371

6472
You can use either PUT or PATCH, with the following difference:
@@ -133,6 +141,15 @@ az monitor log-analytics workspace table update --subscription ContosoSID --reso
133141

134142
## Get retention and archive policy by table
135143

144+
# [Portal](#tab/portal-2)
145+
146+
To view the retention and archive duration for a table in the Azure portal, from the **Log Analytics workspaces** menu, select **Tables (preview)**.
147+
148+
The **Tables (preview)** screen shows the interactive retention and archive period for all of the tables in the workspace.
149+
150+
:::image type="content" source="media/data-retention-configure/log-analytics-view-table-retention-archive.png" lightbox="media/data-retention-configure/log-analytics-view-table-retention-archive.png" alt-text="Screenshot showing the Manage table button for one of the tables in a workspace.":::
151+
152+
136153
# [API](#tab/api-2)
137154

138155
To get the retention policy of a particular table (in this example, `SecurityEvent`), call the **Tables - Get** API:
136 KB
Loading
93.5 KB
Loading
145 KB
Loading
133 KB
Loading

articles/batch/scripts/batch-cli-sample-add-application.md

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,61 @@
22
title: Azure CLI Script Example - Add an Application in Batch | Microsoft Docs
33
description: Learn how to add an application for use with an Azure Batch pool or a task using the Azure CLI.
44
ms.topic: sample
5-
ms.date: 09/17/2021
5+
ms.date: 05/24/2022
66
ms.custom: devx-track-azurecli, seo-azure-cli
77
keywords: batch, azure cli samples, azure cli code samples, azure cli script samples
88
---
99

1010
# CLI example: Add an application to an Azure Batch account
1111

12-
This script demonstrates how to add an application for use with an Azure Batch pool or task. To set up an application to add to your Batch account, package your executable, together with any dependencies, into a zip file.
12+
This script demonstrates how to add an application for use with an Azure Batch pool or task. To set up an application to add to your Batch account, package your executable, together with any dependencies, into a zip file.
13+
14+
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
1315

1416
[!INCLUDE [azure-cli-prepare-your-environment.md](../../../includes/azure-cli-prepare-your-environment.md)]
1517

16-
- This tutorial requires version 2.0.20 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
18+
## Sample script
19+
20+
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../../includes/cli-launch-cloud-shell-sign-in.md)]
21+
22+
### Create batch account and new application
23+
24+
:::code language="azurecli" source="~/azure_cli_scripts/batch/add-application/add-application.sh" id="FullScript":::
25+
26+
### Create batch application package
1727

18-
## Example script
28+
An application can reference multiple application executable packages of different versions. The executables and any dependencies need to be zipped up for the package. Once uploaded, the CLI attempts to activate the package so that it's ready for use.
1929

20-
[!code-azurecli-interactive[main](../../../cli_scripts/batch/add-application/add-application.sh "Add Application")]
30+
```azurecli
31+
az batch application package create \
32+
--resource-group $resourceGroup \
33+
--name $batchAccount \
34+
--application-name "MyApplication" \
35+
--package-file my-application-exe.zip \
36+
--version-name 1.0
37+
```
38+
39+
### Update the application
40+
41+
Update the application to assign the newly added application package as the default version.
42+
43+
```azurecli
44+
az batch application set \
45+
--resource-group $resourceGroup \
46+
--name $batchAccount \
47+
--application-name "MyApplication" \
48+
--default-version 1.0
49+
```
2150

22-
## Clean up deployment
51+
## Clean up resources
2352

24-
Run the following command to remove the
25-
resource group and all resources associated with it.
53+
[!INCLUDE [cli-clean-up-resources.md](../../../includes/cli-clean-up-resources.md)]
2654

27-
```azurecli-interactive
28-
az group delete --name myResourceGroup
55+
```azurecli
56+
az group delete --name $resourceGroup
2957
```
3058

31-
## Script explanation
59+
## Sample reference
3260

3361
This script uses the following commands.
3462
Each command in the table links to command-specific documentation.

articles/batch/scripts/batch-cli-sample-create-account.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
---
22
title: Azure CLI Script Example - Create Batch account - Batch service | Microsoft Docs
3-
description: Learn how to create a Batch account in Batch service mode with this Azure CLI script example. This also script shows how to query or update various properties of the account.
3+
description: Learn how to create a Batch account in Batch service mode with this Azure CLI script example. This script also shows how to query or update various properties of the account.
44
ms.topic: sample
5-
ms.date: 09/17/2021
5+
ms.date: 05/24/2022
66
ms.custom: devx-track-azurecli, seo-azure-cli
77
keywords: batch, azure cli samples, azure cli code samples, azure cli script samples
88
---
99

1010
# CLI example: Create a Batch account in Batch service mode
1111

1212
This script creates an Azure Batch account in Batch service mode and shows how to query or update various properties of the account. When you create a Batch account in the default Batch service mode, its compute nodes are assigned internally by the Batch
13-
service. Allocated compute nodes are subject to a separate vCPU (core) quota and the account can be
14-
authenticated either via shared key credentials or an Azure Active Directory token.
13+
service. Allocated compute nodes are subject to a separate vCPU (core) quota and the account can be authenticated either via shared key credentials or an Azure Active Directory token.
14+
15+
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
1516

1617
[!INCLUDE [azure-cli-prepare-your-environment.md](../../../includes/azure-cli-prepare-your-environment.md)]
1718

18-
- This tutorial requires version 2.0.20 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
19+
## Sample script
20+
21+
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../../includes/cli-launch-cloud-shell-sign-in.md)]
1922

20-
## Example script
23+
### Run the script
2124

22-
[!code-azurecli-interactive[main](../../../cli_scripts/batch/create-account/create-account.sh "Create Account")]
25+
:::code language="azurecli" source="~/azure_cli_scripts/batch/create-account/create-account.sh" id="FullScript":::
2326

24-
## Clean up deployment
27+
## Clean up resources
2528

26-
Run the following command to remove the
27-
resource group and all resources associated with it.
29+
[!INCLUDE [cli-clean-up-resources.md](../../../includes/cli-clean-up-resources.md)]
2830

29-
```azurecli-interactive
30-
az group delete --name myResourceGroup
31+
```azurecli
32+
az group delete --name $resourceGroup
3133
```
3234

33-
## Script explanation
35+
## Sample reference
3436

3537
This script uses the following commands. Each command in the table links to command-specific documentation.
3638

0 commit comments

Comments
 (0)