Skip to content

Commit 908d784

Browse files
author
Michael Bender
committed
Rough draft of both docs
1 parent 1f71ea8 commit 908d784

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

articles/virtual-network-manager/concept-monitoring.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,45 @@ This category emits one log per network group membership change. So, when a virt
3434
| level | Always Info. |
3535
| properties | Collection of properties of the log. |
3636

37+
Within the properties attribute are several nested attributes:
38+
39+
| properties attributes | Description |
40+
|--------------------|-------------|
41+
| Message | Basic success or failure message. |
42+
| MembershipId | Default membership ID of the virtual network. |
43+
| GroupMemberships | Collection of what network groups the virtual network belongs to. There may be multiple `NetworkGroupId` and `Sources` listed within this property since a virtual network can belong to multiple network groups simultaneously. |
44+
| MemberResourceIds | Resource ID of the virtual network that was added to or removed from a network group. |
45+
46+
Within the `GroupMemberships` attribute are several nested attributes:
47+
48+
| GroupMemberships attributes | Description |
49+
|-----------------------------|-------------|
50+
| NetworkGroupId | ID of a network group the virtual network belongs to. |
51+
| Sources | Collection of how the virtual network is a member of the network group. |
52+
53+
Within the Sources attribute are several nested attributes:
54+
55+
| Sources attributes | Description |
56+
|-------------------|-------------|
57+
| Type | Denotes whether the virtual network was added manually (StaticMembership) or conditionally via Azure Policy (Policy). |
58+
| StaticMemberId | If the Type value is StaticMembership, this property will appear. |
59+
| PolicyAssignmentId | If the Type value is Policy, this property will appear. ID of the Azure Policy assignment that associates the Azure Policy definition to the network group. |
60+
| PolicyDefinitionId | If the Type value is Policy, this property will appear. ID of the Azure Policy definition that contains the conditions for the network group’s membership. |
61+
62+
## Accessing logs
63+
64+
Depending on how you'll consume event logs, you’ll need to set up a Log Analytics workspace or a storage account for storing your log events.
65+
- Learn to [create a Log Analytics workspace](../azure-monitor/logs/quick-create-workspace.md).
66+
- Learn to [create a storage account](../storage/common/storage-account-create.md).
67+
68+
When setting up a Log Analytics workspace or a storage account, you’ll need to select a region. If you’re using a storage account or [event hub](../event-hubs/event-hubs-create.md), it will need to be in the same region of the virtual network manager you’re accessing logs from. If you’re using a Log Analytics workspace, it can be in any region.
69+
70+
The network manager you’re accessing the logs of won’t need to belong to the same subscription as your Log Analytics workspace or storage account, but permissions may restrict your ability to access logs across different subscriptions.
71+
72+
> [!NOTE]
73+
> At least one virtual network must be added or removed from a network group in order to generate logs. A log will generate for this event a couple minutes after network group membership change occurs.
74+
75+
## Next steps
76+
- Create an [Azure Virtual Network Manager](create-virtual-network-manager-portal.md) instance using the Azure portal.
77+
- Learn more about [network groups](concept-network-groups.md) in Azure Virtual Network Manager.
3778

articles/virtual-network-manager/how-to-monitor-virtual-network-changes.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,27 @@ ms.date: 04/12/2023
99
---
1010

1111
# Monitoring Azure Virtual Network Manager for virtual network changes
12+
13+
When configurations are changed in Azure Virtual Network Manager, this can impact virtual networks that are associated with network groups in your instance. With Azure Monitor, you can monitor Azure Virtual Network Manager for virtual network changes.
14+
15+
In this article, you'll learn how to monitor Azure Virtual Network Manager for virtual network changes with Log Analytics or a storage account.
16+
17+
## Prerequisites
18+
19+
- [Azure Virtual Network Manager](../concept-virtual-network-manager.md) is enabled on your subscription.
20+
- [Azure Monitor](https://docs.microsoft.com/azure/azure-monitor/overview) is enabled on your subscription.
21+
- You deployed either a [Log Analytics workspace](../azure-monitor/logs/quick-create-workspace.md). or a [storage account](../storage/common/storage-account-create.md) to monitor Azure Virtual Network Manager.
22+
23+
## Accessing Azure Virtual Network Manager logs
24+
25+
### How to access event logs with Log Analytics
26+
27+
1. Navigate to the network manager you want to obtain the logs of.
28+
1. Under the Monitoring section, select the Diagnostic settings blade.
29+
1. Select Add diagnostic setting and select the option to send the logs to your Log Analytics workspace.
30+
31+
### How to access event logs with a storage account
32+
1. Navigate to the network manager you want to obtain the logs of.
33+
1. Under the Monitoring section, select the Diagnostic settings blade.
34+
1. Select Add diagnostic setting and select the option to archive the logs to your storage account.
35+
1. Navigate to your storage account and select the Storage browser blade.

0 commit comments

Comments
 (0)