Skip to content

Commit 51f2f02

Browse files
author
Riddhi Nilawar
committed
recordtype changes in 2025-03-01
1 parent 7f2696d commit 51f2f02

File tree

11 files changed

+1444
-0
lines changed

11 files changed

+1444
-0
lines changed

Commands/network/watcher/flow-log/_create.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,59 @@ Create a flow log on a network security group.
146146
```bash
147147
network watcher flow-log create --location westus --resource-group MtRGContainingVNet --name MyVNetName-flowlog --vnet MyVNetName --storage-account MyStorageAccountName --filtering-criteria "dstip=20.252.145.59 || DstPort=443"
148148
```
149+
150+
### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable**
151+
152+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{} 2025-03-01 -->
153+
154+
#### examples
155+
156+
- Create a flow log with Network Security Group name
157+
```bash
158+
network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --nsg MyNetworkSecurityGroupName --storage-account account
159+
```
160+
161+
- Create a flow log with VNet name
162+
```bash
163+
network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --vnet MyVNetName --storage-account account
164+
```
165+
166+
- Create a flow log with Subnet name
167+
```bash
168+
network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --vnet MyVNetName --subnet MySubnetName --storage-account account
169+
```
170+
171+
- Create a flow log with NIC name
172+
```bash
173+
network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --nic MyNICName --storage-account account
174+
```
175+
176+
- Create a flow log with Network Security Group ID (could be in other resource group)
177+
```bash
178+
network watcher flow-log create --location westus --name MyFlowLog --nsg MyNetworkSecurityGroupID --storage-account account
179+
```
180+
181+
- Create a flow log with Virtual Network ID (could be in other resource group)
182+
```bash
183+
network watcher flow-log create --location westus --name MyFlowLog --vnet MyVNetID --storage-account account
184+
```
185+
186+
- Create a flow log with Subnet ID (could be in other resource group)
187+
```bash
188+
network watcher flow-log create --location westus --name MyFlowLog --subnet SubnetID --storage-account account
189+
```
190+
191+
- Create a flow log with Network Interface ID (could be in other resource group)
192+
```bash
193+
network watcher flow-log create --location westus --name MyFlowLog --nic MyNetworkInterfaceID --storage-account account
194+
```
195+
196+
- Create or update flow log
197+
```bash
198+
network watcher flow-log create --location westus --resource-group MtRGContainingVNet --name MyVNetName-flowlog --vnet MyVNetName --storage-account MyStorageAccountName --filtering-criteria "dstip=20.252.145.59 || DstPort=443"
199+
```
200+
201+
- Create flow log with recordtypes filtering
202+
```bash
203+
network watcher flow-log create --resource-group rg1 --network-watcher-name nw1 --name fl --location centraluseuap --target-resource-id /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/desmondcentral-nsg --storage-account /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/nwtest1mgvbfmqsigdxe --filtering-criteria srcIP=158.255.7.8 || dstPort=56891 --record-types B,E --enabled True --format JSON --log-version 1 --identity "{type:UserAssigned,user-assigned-identities:{/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1:{}}}"
204+
```

Commands/network/watcher/flow-log/_delete.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,14 @@ Delete the specified flow log resource.
3636
```bash
3737
network watcher flow-log delete --location westus2 --name MyFlowLogger
3838
```
39+
40+
### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable**
41+
42+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{} 2025-03-01 -->
43+
44+
#### examples
45+
46+
- Delete the specified flow log resource.
47+
```bash
48+
network watcher flow-log delete --location westus2 --name MyFlowLogger
49+
```

Commands/network/watcher/flow-log/_show.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,19 @@ Get the flow log configuration of a network security group.
5151
```bash
5252
network watcher flow-log show --location MyNetworkWatcher --name MyFlowLog
5353
```
54+
55+
### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable**
56+
57+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{} 2025-03-01 -->
58+
59+
#### examples
60+
61+
- Show NSG flow logs.
62+
```bash
63+
network watcher flow-log show -g MyResourceGroup --nsg MyNsg
64+
```
65+
66+
- Show NSG flow logs with Azure Resource Management formatted.
67+
```bash
68+
network watcher flow-log show --location MyNetworkWatcher --name MyFlowLog
69+
```

Commands/network/watcher/flow-log/_update.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,49 @@ Update the flow log configuration of a network security group.
126126
```bash
127127
network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --workspace MyAnotherLogAnalyticWorkspace
128128
```
129+
130+
### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable**
131+
132+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{} 2025-03-01 -->
133+
134+
#### examples
135+
136+
- Update storage account with name to let resource group identify the storage account and network watcher
137+
```bash
138+
network watcher flow-log update --location westus --resource-group MyResourceGroup --name MyFlowLog --storage-account accountname
139+
```
140+
141+
- Update storage account with ID to let location identify the network watcher
142+
```bash
143+
network watcher flow-log update --location westus --resource-group MyResourceGroup --name MyFlowLog --storage-account accountid
144+
```
145+
146+
- Update Network Security Group on another resource group
147+
```bash
148+
network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --nsg MyNSG
149+
```
150+
151+
- Update Virtual Network on another resource group
152+
```bash
153+
network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --vnet MyVNet
154+
```
155+
156+
- Update Subnet on another resource group
157+
```bash
158+
network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --vnet MyVNet --subnet MySubnet
159+
```
160+
161+
- Update Network Interface on another resource group
162+
```bash
163+
network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --nic MyNIC
164+
```
165+
166+
- Update Workspace on another resource group
167+
```bash
168+
network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --workspace MyAnotherLogAnalyticWorkspace
169+
```
170+
171+
- Update flowlog with recordtypes filtering
172+
```bash
173+
network watcher flow-log update --resource-group rg1 --network-watcher-name nw1 --name fl --location centraluseuap --target-resource-id /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/desmondcentral-nsg --storage-account /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/nwtest1mgvbfmqsigdxe --filtering-criteria srcIP=158.255.7.8 || dstPort=56891 --record-types B,E --enabled True --format JSON --log-version 1 --identity "{type:UserAssigned,user-assigned-identities:{/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1:{}}}"
174+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [Command] _network watcher flow-log identity assign_
2+
3+
Assign the user or system managed identities.
4+
5+
## Versions
6+
7+
### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{} 2025-03-01 identity -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [Command] _network watcher flow-log identity remove_
2+
3+
Remove the user or system managed identities.
4+
5+
## Versions
6+
7+
### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{} 2025-03-01 identity -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [Command] _network watcher flow-log identity show_
2+
3+
Show the details of managed identities.
4+
5+
## Versions
6+
7+
### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{} 2025-03-01 identity -->
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# [Group] _network watcher flow-log identity_
2+
3+
Manage Identity
4+
5+
## Commands
6+
7+
- [assign](/Commands/network/watcher/flow-log/identity/_assign.md)
8+
: Assign the user or system managed identities.
9+
10+
- [remove](/Commands/network/watcher/flow-log/identity/_remove.md)
11+
: Remove the user or system managed identities.
12+
13+
- [show](/Commands/network/watcher/flow-log/identity/_show.md)
14+
: Show the details of managed identities.

Commands/network/watcher/flow-log/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Manage network security group flow logging.
44

55
For more information about configuring flow logs visit https://learn.microsoft.com/azure/network-watcher/network-watcher-nsg-flow-logging-cli.
66

7+
## Subgroups
8+
9+
- [identity](/Commands/network/watcher/flow-log/identity/readme.md)
10+
: Manage Identity
11+
712
## Commands
813

914
- [configure-flow-log](/Commands/network/watcher/flow-log/_configure-flow-log.md)

Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)