Skip to content

Commit 7d1270d

Browse files
authored
Merge pull request #291705 from MicrosoftDocs/main
12/10 11:00 AM IST Publish
2 parents 8af85a7 + fa861cf commit 7d1270d

File tree

119 files changed

+365
-2732
lines changed

Some content is hidden

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

119 files changed

+365
-2732
lines changed

articles/bastion/connect-vm-native-client-linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ You can connect to a VM private IP address instead of the resource ID. Be aware
7878
Using the `az network bastion` command, replace `--target-resource-id` with `--target-ip-address` and the specified IP address to connect to your VM. The following example uses --ssh-key for the authentication method.
7979

8080
```azurecli
81-
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-addres "<VMIPAddress>" --auth-type "ssh-key" --username "<Username>" --ssh-key "<Filepath>"
81+
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>" --auth-type "ssh-key" --username "<Username>" --ssh-key "<Filepath>"
8282
```
8383

8484
## <a name="tunnel"></a>Connect to a VM - tunnel command

articles/bastion/diagnostic-logs.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to enable and work with Azure Bastion diagnostic logs.
44
author: cherylmc
55
ms.service: azure-bastion
66
ms.topic: how-to
7-
ms.date: 02/03/2020
7+
ms.date: 12/09/2024
88
ms.author: cherylmc
99

1010
---
@@ -13,45 +13,46 @@ ms.author: cherylmc
1313

1414
As users connect to workloads using Azure Bastion, Bastion can log diagnostics of the remote sessions. You can then use the diagnostics to view which users connected to which workloads, at what time, from where, and other such relevant logging information. In order to use the diagnostics, you must enable diagnostics logs on Azure Bastion. This article helps you enable diagnostics logs, and then view the logs.
1515

16-
>[!NOTE]
17-
>To view all resource logs available for Bastion, select each of the resource logs. If you exclude the 'All Logs' setting, you will not see all the available resource logs.
16+
> [!NOTE]
17+
> To view all resource logs available for Bastion, select each of the resource logs. If you exclude the 'All Logs' setting, you will not see all the available resource logs.
1818
1919
## <a name="enable"></a>Enable the resource log
2020

2121
1. In the [Azure portal](https://portal.azure.com), go to your Azure Bastion resource and select **Diagnostics settings** from the Azure Bastion page.
2222

23-
![Screenshot that shows the "Diagnostics settings" page.](./media/diagnostic-logs/1diagnostics-settings.png)
24-
2. Select **Diagnostics settings**, then select **+Add diagnostic setting** to add a destination for the logs.
23+
1. Select **Diagnostics settings**, then select **+Add diagnostic setting** to add a destination for the logs.
2524

26-
![Screenshot that shows the "Diagnostics settings" page with the "Add diagnostic setting" button selected.](./media/diagnostic-logs/2add-diagnostic-setting.png)
27-
3. On the **Diagnostics settings** page, select the type of storage account to be used for storing diagnostics logs.
25+
1. On the **Diagnostics settings** page, select your desired settings. For example:
2826

29-
![Screenshot of the "Diagnostics settings" page with the section to select a storage location highlighted.](./media/diagnostic-logs/3add-storage-account.png)
30-
4. When you complete the settings, it will look similar to this example:
27+
| Setting | Value |
28+
|---|---|
29+
| Category groups | audit or allLogs |
30+
| Categories | Bastion Audit Logs |
31+
| Destination details | Select the storage account where you want to store the logs. |
32+
| Metrics | AllMetrics|
3133

32-
![example settings](./media/diagnostic-logs/4example-settings.png)
34+
1. When you complete the settings, select **Save**.
3335

3436
## <a name="view"></a>View diagnostics log
3537

3638
To access your diagnostics logs, you can directly use the storage account that you specified while enabling the diagnostics settings.
3739

3840
1. Navigate to your storage account resource, then to **Containers**. You see the **insights-logs-bastionauditlogs** blob created in your storage account blob container.
3941

40-
![diagnostics settings](./media/diagnostic-logs/1-navigate-to-logs.png)
41-
2. As you go inside the container, you see various folders in your blob. These folders indicate the resource hierarchy for your Azure Bastion resource.
42+
1. As you go inside the container, you see various folders in your blob. These folders indicate the resource hierarchy for your Azure Bastion resource.
4243

43-
![add diagnostic setting](./media/diagnostic-logs/2-resource-h.png)
44-
3. Navigate to the full hierarchy of your Azure Bastion resource whose diagnostics logs you wish to access/view. The 'y=', 'm=', 'd=', 'h=' and 'm=' indicate the year, month, day, hour, and minute respectively for the resource logs.
44+
1. Navigate to the full hierarchy of your Azure Bastion resource whose diagnostics logs you wish to access/view. The 'y=', 'm=', 'd=', 'h=' and 'm=' indicate the year, month, day, hour, and minute respectively for the resource logs.
4545

46-
![select storage location](./media/diagnostic-logs/3-resource-location.png)
47-
4. Locate the json file created by Azure Bastion that contains the diagnostics log data for the time-period navigated to.
46+
:::image type="content" source="./media/diagnostic-logs/3-resource-location.png" alt-text="Screenshot shows the storage location." lightbox="./media/diagnostic-logs/3-resource-location.png":::
4847

49-
5. Download the json file from your storage blob container. An example entry of successful login from the json file is shown below for reference:
48+
1. Locate the json file created by Azure Bastion that contains the diagnostics log data for the time-period navigated to.
49+
50+
1. Download the json file from your storage blob container. The following example shows the entry of successful sign in from the json file:
5051

5152
```json
5253
{
5354
"time":"2019-10-03T16:03:34.776Z",
54-
"resourceId":"/SUBSCRIPTIONS/<subscripionID>/RESOURCEGROUPS/MYBASTION/PROVIDERS/MICROSOFT.NETWORK/BASTIONHOSTS/MYBASTION-BASTION",
55+
"resourceId":"/SUBSCRIPTIONS/<subscriptionID>/RESOURCEGROUPS/MYBASTION/PROVIDERS/MICROSOFT.NETWORK/BASTIONHOSTS/MYBASTION-BASTION",
5556
"operationName":"Microsoft.Network/BastionHost/connect",
5657
"category":"BastionAuditLogs",
5758
"level":"Informational",
@@ -62,8 +63,8 @@ To access your diagnostics logs, you can directly use the storage account that y
6263
"clientIpAddress":"131.107.159.86",
6364
"clientPort":24039,
6465
"protocol":"ssh",
65-
"targetResourceId":"/SUBSCRIPTIONS/<subscripionID>/RESOURCEGROUPS/MYBASTION/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/LINUX-KEY",
66-
"subscriptionId":"<subscripionID>",
66+
"targetResourceId":"/SUBSCRIPTIONS/<subscriptionID>/RESOURCEGROUPS/MYBASTION/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/LINUX-KEY",
67+
"subscriptionId":"<subscriptionID>",
6768
"message":"Successfully Connected.",
6869
"resourceType":"VM",
6970
"targetVMIPAddress":"172.16.1.5",
@@ -72,16 +73,16 @@ To access your diagnostics logs, you can directly use the storage account that y
7273
},
7374
"FluentdIngestTimestamp":"2019-10-03T16:03:34.0000000Z",
7475
"Region":"eastus",
75-
"CustomerSubscriptionId":"<subscripionID>"
76+
"CustomerSubscriptionId":"<subscriptionID>"
7677
}
7778
```
7879

79-
Below is an example entry of unsuccessful login (e.g. due to incorrect username/password) from the json file:
80+
The following example shows the entry of unsuccessful sign in (for example, due to incorrect username/password) from the json file:
8081

8182
```json
8283
{
8384
"time":"2019-10-03T16:03:34.776Z",
84-
"resourceId":"/SUBSCRIPTIONS/<subscripionID>/RESOURCEGROUPS/MYBASTION/PROVIDERS/MICROSOFT.NETWORK/BASTIONHOSTS/MYBASTION-BASTION",
85+
"resourceId":"/SUBSCRIPTIONS/<subscriptionID>/RESOURCEGROUPS/MYBASTION/PROVIDERS/MICROSOFT.NETWORK/BASTIONHOSTS/MYBASTION-BASTION",
8586
"operationName":"Microsoft.Network/BastionHost/connect",
8687
"category":"BastionAuditLogs",
8788
"level":"Informational",
@@ -92,8 +93,8 @@ To access your diagnostics logs, you can directly use the storage account that y
9293
"clientIpAddress":"131.107.159.86",
9394
"clientPort":24039,
9495
"protocol":"ssh",
95-
"targetResourceId":"/SUBSCRIPTIONS/<subscripionID>/RESOURCEGROUPS/MYBASTION/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/LINUX-KEY",
96-
"subscriptionId":"<subscripionID>",
96+
"targetResourceId":"/SUBSCRIPTIONS/<subscriptionID>/RESOURCEGROUPS/MYBASTION/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/LINUX-KEY",
97+
"subscriptionId":"<subscriptionID>",
9798
"message":"Login Failed",
9899
"resourceType":"VM",
99100
"targetVMIPAddress":"172.16.1.5",
@@ -102,7 +103,7 @@ To access your diagnostics logs, you can directly use the storage account that y
102103
},
103104
"FluentdIngestTimestamp":"2019-10-03T16:03:34.0000000Z",
104105
"Region":"eastus",
105-
"CustomerSubscriptionId":"<subscripionID>"
106+
"CustomerSubscriptionId":"<subscriptionID>"
106107
}
107108
```
108109

articles/bastion/howto-metrics-monitor-alert.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
2-
title: 'Configure monitoring and metrics using Azure Monitor'
2+
title: Configure monitoring and metrics using Azure Monitor
33
titleSuffix: Azure Bastion
44
description: Learn about Azure Bastion monitoring and metrics using Azure Monitor.
55
services: bastion
66
author: cherylmc
77

88
ms.service: azure-bastion
99
ms.topic: how-to
10-
ms.date: 04/05/2024
10+
ms.date: 12/09/2024
1111
ms.author: cherylmc
1212

1313
---
1414
# How to configure monitoring and metrics for Azure Bastion using Azure Monitor
1515

1616
This article helps you work with monitoring and metrics for Azure Bastion using Azure Monitor.
1717

18-
>[!NOTE]
19-
>Using **Classic Metrics** is not recommended.
18+
> [!NOTE]
19+
> Using **Classic Metrics** is not recommended.
2020
>
2121
2222
## About metrics
@@ -88,7 +88,7 @@ The recommended values for this metric's configuration are:
8888
* **Metric Namespace:** Standard Metrics.
8989
* **Metric:** Select the metric that you want to view.
9090

91-
1. Once a metric is selected, the default aggregation will be applied. Optionally, you can apply splitting, which will show the metric with different dimensions.
91+
1. Once a metric is selected, the default aggregation is applied. Optionally, you can apply splitting, which shows the metric with different dimensions.
9292

9393
## Next steps
9494

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)