From 0bba1e1be3e1c6e904706ced51f404e708b21bcc Mon Sep 17 00:00:00 2001 From: Megha Jain Date: Mon, 9 Sep 2024 12:07:23 +0530 Subject: [PATCH] updating tree.json --- Commands/tree.json | 156 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) diff --git a/Commands/tree.json b/Commands/tree.json index a9f4d35b8..8b0aaa79f 100644 --- a/Commands/tree.json +++ b/Commands/tree.json @@ -130690,6 +130690,66 @@ "version": "2022-01-01" } ] + }, + { + "examples": [ + { + "commands": [ + "network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --nsg MyNetworkSecurityGroupName --storage-account account" + ], + "name": "Create a flow log with Network Security Group name" + }, + { + "commands": [ + "network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --vnet MyVNetName --storage-account account" + ], + "name": "Create a flow log with VNet name" + }, + { + "commands": [ + "network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --vnet MyVNetName --subnet MySubnetName --storage-account account" + ], + "name": "Create a flow log with Subnet name" + }, + { + "commands": [ + "network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --nic MyNICName --storage-account account" + ], + "name": "Create a flow log with NIC name" + }, + { + "commands": [ + "network watcher flow-log create --location westus --name MyFlowLog --nsg MyNetworkSecurityGroupID --storage-account account" + ], + "name": "Create a flow log with Network Security Group ID (could be in other resource group)" + }, + { + "commands": [ + "network watcher flow-log create --location westus --name MyFlowLog --vnet MyVNetID --storage-account account" + ], + "name": "Create a flow log with Virtual Network ID (could be in other resource group)" + }, + { + "commands": [ + "network watcher flow-log create --location westus --name MyFlowLog --subnet SubnetID --storage-account account" + ], + "name": "Create a flow log with Subnet ID (could be in other resource group)" + }, + { + "commands": [ + "network watcher flow-log create --location westus --name MyFlowLog --nic MyNetworkInterfaceID --storage-account account" + ], + "name": "Create a flow log with Network Interface ID (could be in other resource group)" + } + ], + "name": "2023-11-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", + "plane": "mgmt-plane", + "version": "2023-11-01" + } + ] } ] }, @@ -130721,6 +130781,24 @@ "version": "2022-01-01" } ] + }, + { + "examples": [ + { + "commands": [ + "network watcher flow-log delete --location westus2 --name MyFlowLogger" + ], + "name": "Delete the specified flow log resource." + } + ], + "name": "2023-11-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", + "plane": "mgmt-plane", + "version": "2023-11-01" + } + ] } ] }, @@ -130789,6 +130867,30 @@ "version": "2022-01-01" } ] + }, + { + "examples": [ + { + "commands": [ + "network watcher flow-log show -g MyResourceGroup --nsg MyNsg" + ], + "name": "Show NSG flow logs." + }, + { + "commands": [ + "network watcher flow-log show --location MyNetworkWatcher --name MyFlowLog" + ], + "name": "Show NSG flow logs with Azure Resource Management formatted." + } + ], + "name": "2023-11-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", + "plane": "mgmt-plane", + "version": "2023-11-01" + } + ] } ] }, @@ -130856,6 +130958,60 @@ "version": "2022-01-01" } ] + }, + { + "examples": [ + { + "commands": [ + "network watcher flow-log update --location westus --resource-group MyResourceGroup --name MyFlowLog --storage-account accountname" + ], + "name": "Update storage account with name to let resource group identify the storage account and network watcher" + }, + { + "commands": [ + "network watcher flow-log update --location westus --resource-group MyResourceGroup --name MyFlowLog --storage-account accountid" + ], + "name": "Update storage account with ID to let location identify the network watcher" + }, + { + "commands": [ + "network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --nsg MyNSG" + ], + "name": "Update Network Security Group on another resource group" + }, + { + "commands": [ + "network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --vnet MyVNet" + ], + "name": "Update Virtual Network on another resource group" + }, + { + "commands": [ + "network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --vnet MyVNet --subnet MySubnet" + ], + "name": "Update Subnet on another resource group" + }, + { + "commands": [ + "network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --nic MyNIC" + ], + "name": "Update Network Interface on another resource group" + }, + { + "commands": [ + "network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --workspace MyAnotherLogAnalyticWorkspace" + ], + "name": "Update Workspace on another resource group" + } + ], + "name": "2023-11-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", + "plane": "mgmt-plane", + "version": "2023-11-01" + } + ] } ] }