From f2cb6b381d40827fbbfef81c5db45b3f6f144994 Mon Sep 17 00:00:00 2001 From: Mansi Verma Date: Mon, 16 Dec 2024 15:34:05 +0530 Subject: [PATCH] Flowlogs filtering changes in aaz --- Commands/network/watcher/flow-log/_create.md | 46 ++ Commands/network/watcher/flow-log/_delete.md | 11 + Commands/network/watcher/flow-log/_show.md | 16 + Commands/network/watcher/flow-log/_update.md | 41 + Commands/tree.json | 156 ++++ .../2024-03-01.json | 1 + .../2024-03-01.xml | 761 ++++++++++++++++++ 7 files changed, 1032 insertions(+) create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.xml diff --git a/Commands/network/watcher/flow-log/_create.md b/Commands/network/watcher/flow-log/_create.md index 67f4ed089..f7aff6894 100644 --- a/Commands/network/watcher/flow-log/_create.md +++ b/Commands/network/watcher/flow-log/_create.md @@ -95,3 +95,49 @@ Create a flow log on a network security group. ```bash network watcher flow-log create --location westus --name MyFlowLog --nic MyNetworkInterfaceID --storage-account account ``` + +### [2024-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.xml) **Stable** + + + +#### examples + +- Create a flow log with Network Security Group name + ```bash + network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --nsg MyNetworkSecurityGroupName --storage-account account + ``` + +- Create a flow log with VNet name + ```bash + network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --vnet MyVNetName --storage-account account + ``` + +- Create a flow log with Subnet name + ```bash + network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --vnet MyVNetName --subnet MySubnetName --storage-account account + ``` + +- Create a flow log with NIC name + ```bash + network watcher flow-log create --location westus --resource-group MyResourceGroup --name MyFlowLog --nic MyNICName --storage-account account + ``` + +- Create a flow log with Network Security Group ID (could be in other resource group) + ```bash + network watcher flow-log create --location westus --name MyFlowLog --nsg MyNetworkSecurityGroupID --storage-account account + ``` + +- Create a flow log with Virtual Network ID (could be in other resource group) + ```bash + network watcher flow-log create --location westus --name MyFlowLog --vnet MyVNetID --storage-account account + ``` + +- Create a flow log with Subnet ID (could be in other resource group) + ```bash + network watcher flow-log create --location westus --name MyFlowLog --subnet SubnetID --storage-account account + ``` + +- Create a flow log with Network Interface ID (could be in other resource group) + ```bash + network watcher flow-log create --location westus --name MyFlowLog --nic MyNetworkInterfaceID --storage-account account + ``` diff --git a/Commands/network/watcher/flow-log/_delete.md b/Commands/network/watcher/flow-log/_delete.md index ce48a3a82..d37034387 100644 --- a/Commands/network/watcher/flow-log/_delete.md +++ b/Commands/network/watcher/flow-log/_delete.md @@ -25,3 +25,14 @@ Delete the specified flow log resource. ```bash network watcher flow-log delete --location westus2 --name MyFlowLogger ``` + +### [2024-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.xml) **Stable** + + + +#### examples + +- Delete the specified flow log resource. + ```bash + network watcher flow-log delete --location westus2 --name MyFlowLogger + ``` diff --git a/Commands/network/watcher/flow-log/_show.md b/Commands/network/watcher/flow-log/_show.md index 225d693c3..afc5f9def 100644 --- a/Commands/network/watcher/flow-log/_show.md +++ b/Commands/network/watcher/flow-log/_show.md @@ -35,3 +35,19 @@ Get the flow log configuration of a network security group. ```bash network watcher flow-log show --location MyNetworkWatcher --name MyFlowLog ``` + +### [2024-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.xml) **Stable** + + + +#### examples + +- Show NSG flow logs. + ```bash + network watcher flow-log show -g MyResourceGroup --nsg MyNsg + ``` + +- Show NSG flow logs with Azure Resource Management formatted. + ```bash + network watcher flow-log show --location MyNetworkWatcher --name MyFlowLog + ``` diff --git a/Commands/network/watcher/flow-log/_update.md b/Commands/network/watcher/flow-log/_update.md index 3e9c61f3d..83689b623 100644 --- a/Commands/network/watcher/flow-log/_update.md +++ b/Commands/network/watcher/flow-log/_update.md @@ -85,3 +85,44 @@ Update the flow log configuration of a network security group. ```bash network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --workspace MyAnotherLogAnalyticWorkspace ``` + +### [2024-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.xml) **Stable** + + + +#### examples + +- Update storage account with name to let resource group identify the storage account and network watcher + ```bash + network watcher flow-log update --location westus --resource-group MyResourceGroup --name MyFlowLog --storage-account accountname + ``` + +- Update storage account with ID to let location identify the network watcher + ```bash + network watcher flow-log update --location westus --resource-group MyResourceGroup --name MyFlowLog --storage-account accountid + ``` + +- Update Network Security Group on another resource group + ```bash + network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --nsg MyNSG + ``` + +- Update Virtual Network on another resource group + ```bash + network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --vnet MyVNet + ``` + +- Update Subnet on another resource group + ```bash + network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --vnet MyVNet --subnet MySubnet + ``` + +- Update Network Interface on another resource group + ```bash + network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --nic MyNIC + ``` + +- Update Workspace on another resource group + ```bash + network watcher flow-log update --location westus --resource-group MyAnotherResourceGroup --name MyFlowLog --workspace MyAnotherLogAnalyticWorkspace + ``` diff --git a/Commands/tree.json b/Commands/tree.json index 17d087d1a..ac6098b14 100644 --- a/Commands/tree.json +++ b/Commands/tree.json @@ -149551,6 +149551,66 @@ "version": "2023-11-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": "2024-03-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", + "plane": "mgmt-plane", + "version": "2024-03-01" + } + ] } ] }, @@ -149600,6 +149660,24 @@ "version": "2023-11-01" } ] + }, + { + "examples": [ + { + "commands": [ + "network watcher flow-log delete --location westus2 --name MyFlowLogger" + ], + "name": "Delete the specified flow log resource." + } + ], + "name": "2024-03-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", + "plane": "mgmt-plane", + "version": "2024-03-01" + } + ] } ] }, @@ -149692,6 +149770,30 @@ "version": "2023-11-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": "2024-03-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", + "plane": "mgmt-plane", + "version": "2024-03-01" + } + ] } ] }, @@ -149813,6 +149915,60 @@ "version": "2023-11-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": "2024-03-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", + "plane": "mgmt-plane", + "version": "2024-03-01" + } + ] } ] } diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.json new file mode 100644 index 000000000..27e2a36dd --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2024-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNC0wMy0wMQ=="}], "commandGroups": [{"name": "network watcher flow-log", "commands": [{"name": "show", "version": "2024-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2024-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNC0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.flowLogName", "options": ["n", "name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The name of the flow logger."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the network watcher."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "FlowLogs_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "flowLogName", "arg": "$Path.flowLogName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/flowLogs/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned, UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled"}, {"type": "string", "name": "enabledFilteringCriteria"}, {"type": "object", "name": "flowAnalyticsConfiguration", "props": [{"type": "object", "name": "networkWatcherFlowAnalyticsConfiguration", "props": [{"type": "boolean", "name": "enabled"}, {"type": "integer32", "name": "trafficAnalyticsInterval"}, {"type": "string", "name": "workspaceId"}, {"type": "string", "name": "workspaceRegion"}, {"type": "string", "name": "workspaceResourceId"}]}]}, {"type": "object", "name": "format", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "JSON"}]}}, {"default": {"value": 0}, "type": "integer32", "name": "version"}]}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "retentionPolicy", "props": [{"default": {"value": 0}, "type": "integer32", "name": "days"}, {"default": {"value": false}, "type": "boolean", "name": "enabled"}]}, {"type": "string", "name": "storageId", "required": true}, {"readOnly": true, "type": "string", "name": "targetResourceGuid"}, {"type": "string", "name": "targetResourceId", "required": true}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2024-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2024-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNC0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.flowLogName", "options": ["n", "name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The name of the flow logger."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the network watcher."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "FlowLogs_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "flowLogName", "arg": "$Path.flowLogName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"statusCode": [200, 201]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2024-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2024-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNC0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.flowLogName", "options": ["n", "name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The name of the flow logger."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the network watcher."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "ResourceLocation", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location to identify the exclusive Network Watcher under a region. Only one Network Watcher can be existed per subscription and region."}}, {"type": "boolean", "var": "$parameters.properties.enabled", "options": ["enabled"], "group": "", "help": {"short": "Enable logging. Default: true."}}, {"type": "string", "var": "$parameters.properties.storageId", "options": ["storage-account"], "group": "", "help": {"short": "Name or ID of the storage account in which to save the flow logs. Must be in the same region of flow log."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use \"\" to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Format", "args": [{"type": "string", "var": "$parameters.properties.format.type", "options": ["format"], "group": "Format", "help": {"short": "File type of the flow log."}, "enum": {"items": [{"name": "JSON", "value": "JSON"}]}}, {"type": "integer32", "var": "$parameters.properties.format.version", "options": ["log-version"], "group": "Format", "help": {"short": "Version (revision) of the flow log."}, "default": {"value": 0}}]}, {"name": "Parameters", "args": [{"type": "ResourceId", "var": "$parameters.id", "options": ["id"], "hide": true, "group": "Parameters", "help": {"short": "Resource ID."}, "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/flowLogs/{}"}}, {"type": "object", "var": "$parameters.identity", "options": ["identity"], "group": "Parameters", "help": {"short": "FlowLog resource Managed Identity"}, "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "help": {"short": "Set the system managed identity."}}, {"type": "string", "var": "$parameters.identity.type", "options": ["type"], "help": {"short": "The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine."}, "enum": {"items": [{"name": "None", "value": "None"}, {"name": "SystemAssigned", "value": "SystemAssigned"}, {"name": "SystemAssigned, UserAssigned", "value": "SystemAssigned, UserAssigned"}, {"name": "UserAssigned", "value": "UserAssigned"}]}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "help": {"short": "Set the user managed identities."}, "item": {"type": "string"}}, {"type": "object", "var": "$parameters.identity.userAssignedIdentities", "options": ["user-assigned-identities"], "help": {"short": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."}, "additionalProps": {"item": {"blank": {"value": {}}, "type": "object"}}}]}]}, {"name": "Properties", "args": [{"type": "string", "var": "$parameters.properties.enabledFilteringCriteria", "options": ["enabled-filtering-criteria"], "group": "Properties", "help": {"short": "Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all network traffic will be logged."}}, {"type": "object", "var": "$parameters.properties.flowAnalyticsConfiguration", "options": ["flow-analytics-configuration"], "group": "Properties", "help": {"short": "Parameters that define the configuration of traffic analytics."}, "args": [{"type": "boolean", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled", "options": ["enabled"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "Flag to enable/disable traffic analytics."}}, {"type": "integer32", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval", "options": ["traffic-analytics-interval"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "The interval in minutes which would decide how frequently TA service should do flow analytics."}}, {"type": "string", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId", "options": ["workspace-id"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "The resource guid of the attached workspace."}}, {"type": "string", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion", "options": ["workspace-region"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "The location of the attached workspace."}}, {"type": "string", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId", "options": ["workspace-resource-id"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "Resource Id of the attached workspace."}}]}, {"type": "object", "var": "$parameters.properties.retentionPolicy", "options": ["retention-policy"], "group": "Properties", "help": {"short": "Parameters that define the retention policy for flow log."}, "args": [{"type": "integer32", "var": "$parameters.properties.retentionPolicy.days", "options": ["days"], "help": {"short": "Number of days to retain flow log records."}, "default": {"value": 0}}, {"type": "boolean", "var": "$parameters.properties.retentionPolicy.enabled", "options": ["enabled"], "help": {"short": "Flag to enable/disable retention."}, "default": {"value": false}}]}, {"type": "string", "var": "$parameters.properties.targetResourceId", "options": ["target-resource-id"], "group": "Properties", "help": {"short": "ID of network security group to which flow log will be applied."}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "FlowLogs_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "flowLogName", "arg": "$Path.flowLogName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "ResourceId", "name": "id", "arg": "$parameters.id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/flowLogs/{}"}}, {"type": "IdentityObject", "name": "identity", "arg": "$parameters.identity", "props": [{"type": "string", "name": "type", "arg": "$parameters.identity.type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned, UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "arg": "$parameters.identity.userAssignedIdentities", "additionalProps": {"item": {"type": "object"}}}], "userAssigned": {"action": "create", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "create", "type": "string"}}, "systemAssigned": {"action": "create", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}, {"type": "ResourceLocation", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "arg": "$parameters.properties.enabled"}, {"type": "string", "name": "enabledFilteringCriteria", "arg": "$parameters.properties.enabledFilteringCriteria"}, {"type": "object", "name": "flowAnalyticsConfiguration", "arg": "$parameters.properties.flowAnalyticsConfiguration", "props": [{"type": "object", "name": "networkWatcherFlowAnalyticsConfiguration", "props": [{"type": "boolean", "name": "enabled", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled"}, {"type": "integer32", "name": "trafficAnalyticsInterval", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval"}, {"type": "string", "name": "workspaceId", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId"}, {"type": "string", "name": "workspaceRegion", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion"}, {"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId"}]}]}, {"type": "object", "name": "format", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.format.type", "enum": {"items": [{"value": "JSON"}]}}, {"default": {"value": 0}, "type": "integer32", "name": "version", "arg": "$parameters.properties.format.version"}]}, {"type": "object", "name": "retentionPolicy", "arg": "$parameters.properties.retentionPolicy", "props": [{"default": {"value": 0}, "type": "integer32", "name": "days", "arg": "$parameters.properties.retentionPolicy.days"}, {"default": {"value": false}, "type": "boolean", "name": "enabled", "arg": "$parameters.properties.retentionPolicy.enabled"}]}, {"type": "string", "name": "storageId", "arg": "$parameters.properties.storageId", "required": true}, {"type": "string", "name": "targetResourceId", "arg": "$parameters.properties.targetResourceId", "required": true}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/flowLogs/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned, UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled"}, {"type": "string", "name": "enabledFilteringCriteria"}, {"type": "object", "name": "flowAnalyticsConfiguration", "props": [{"type": "object", "name": "networkWatcherFlowAnalyticsConfiguration", "props": [{"type": "boolean", "name": "enabled"}, {"type": "integer32", "name": "trafficAnalyticsInterval"}, {"type": "string", "name": "workspaceId"}, {"type": "string", "name": "workspaceRegion"}, {"type": "string", "name": "workspaceResourceId"}]}]}, {"type": "object", "name": "format", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "JSON"}]}}, {"default": {"value": 0}, "type": "integer32", "name": "version"}]}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "retentionPolicy", "props": [{"default": {"value": 0}, "type": "integer32", "name": "days"}, {"default": {"value": false}, "type": "boolean", "name": "enabled"}]}, {"type": "string", "name": "storageId", "required": true}, {"readOnly": true, "type": "string", "name": "targetResourceGuid"}, {"type": "string", "name": "targetResourceId", "required": true}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2024-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2024-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNC0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.flowLogName", "options": ["n", "name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The name of the flow logger."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the network watcher."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"nullable": true, "type": "ResourceLocation", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location to identify the exclusive Network Watcher under a region. Only one Network Watcher can be existed per subscription and region."}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.enabled", "options": ["enabled"], "group": "", "help": {"short": "Enable logging."}}, {"type": "string", "var": "$parameters.properties.storageId", "options": ["storage-account"], "group": "", "help": {"short": "Name or ID of the storage account in which to save the flow logs. Must be in the same region of flow log."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use \"\" to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Format", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.format.type", "options": ["format"], "group": "Format", "help": {"short": "File type of the flow log."}, "enum": {"items": [{"name": "JSON", "value": "JSON"}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.format.version", "options": ["log-version"], "group": "Format", "help": {"short": "Version (revision) of the flow log."}}]}, {"name": "Parameters", "args": [{"nullable": true, "type": "ResourceId", "var": "$parameters.id", "options": ["id"], "hide": true, "group": "Parameters", "help": {"short": "Resource ID."}, "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/flowLogs/{}"}}, {"nullable": true, "type": "object", "var": "$parameters.identity", "options": ["identity"], "group": "Parameters", "help": {"short": "FlowLog resource Managed Identity"}, "args": [{"nullable": true, "type": "string", "var": "$parameters.identity.type", "options": ["type"], "help": {"short": "The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine."}, "enum": {"items": [{"name": "None", "value": "None"}, {"name": "SystemAssigned", "value": "SystemAssigned"}, {"name": "SystemAssigned, UserAssigned", "value": "SystemAssigned, UserAssigned"}, {"name": "UserAssigned", "value": "UserAssigned"}]}}, {"nullable": true, "type": "object", "var": "$parameters.identity.userAssignedIdentities", "options": ["user-assigned-identities"], "help": {"short": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."}, "additionalProps": {"item": {"nullable": true, "blank": {"value": {}}, "type": "object"}}}]}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.enabledFilteringCriteria", "options": ["enabled-filtering-criteria"], "group": "Properties", "help": {"short": "Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all network traffic will be logged."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.flowAnalyticsConfiguration", "options": ["flow-analytics-configuration"], "group": "Properties", "help": {"short": "Parameters that define the configuration of traffic analytics."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled", "options": ["enabled"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "Flag to enable/disable traffic analytics."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval", "options": ["traffic-analytics-interval"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "The interval in minutes which would decide how frequently TA service should do flow analytics."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId", "options": ["workspace-id"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "The resource guid of the attached workspace."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion", "options": ["workspace-region"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "The location of the attached workspace."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId", "options": ["workspace-resource-id"], "group": "NetworkWatcherFlowAnalyticsConfiguration", "help": {"short": "Resource Id of the attached workspace."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.retentionPolicy", "options": ["retention-policy"], "group": "Properties", "help": {"short": "Parameters that define the retention policy for flow log."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.retentionPolicy.days", "options": ["days"], "help": {"short": "Number of days to retain flow log records."}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.retentionPolicy.enabled", "options": ["enabled"], "help": {"short": "Flag to enable/disable retention."}}]}, {"type": "string", "var": "$parameters.properties.targetResourceId", "options": ["target-resource-id"], "group": "Properties", "help": {"short": "ID of network security group to which flow log will be applied."}}]}], "operations": [{"operationId": "FlowLogs_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "flowLogName", "arg": "$Path.flowLogName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/flowLogs/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned, UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled"}, {"type": "string", "name": "enabledFilteringCriteria"}, {"type": "object", "name": "flowAnalyticsConfiguration", "props": [{"type": "object", "name": "networkWatcherFlowAnalyticsConfiguration", "props": [{"type": "boolean", "name": "enabled"}, {"type": "integer32", "name": "trafficAnalyticsInterval"}, {"type": "string", "name": "workspaceId"}, {"type": "string", "name": "workspaceRegion"}, {"type": "string", "name": "workspaceResourceId"}]}]}, {"type": "object", "name": "format", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "JSON"}]}}, {"default": {"value": 0}, "type": "integer32", "name": "version"}]}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "retentionPolicy", "props": [{"default": {"value": 0}, "type": "integer32", "name": "days"}, {"default": {"value": false}, "type": "boolean", "name": "enabled"}]}, {"type": "string", "name": "storageId", "required": true}, {"readOnly": true, "type": "string", "name": "targetResourceGuid"}, {"type": "string", "name": "targetResourceId", "required": true}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "FlowLog_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "ResourceId", "name": "id", "arg": "$parameters.id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/flowLogs/{}"}}, {"type": "IdentityObject", "name": "identity", "arg": "$parameters.identity", "props": [{"type": "string", "name": "type", "arg": "$parameters.identity.type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned, UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "arg": "$parameters.identity.userAssignedIdentities", "additionalProps": {"item": {"type": "object"}}}]}, {"type": "ResourceLocation", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "arg": "$parameters.properties.enabled"}, {"type": "string", "name": "enabledFilteringCriteria", "arg": "$parameters.properties.enabledFilteringCriteria"}, {"type": "object", "name": "flowAnalyticsConfiguration", "arg": "$parameters.properties.flowAnalyticsConfiguration", "props": [{"type": "object", "name": "networkWatcherFlowAnalyticsConfiguration", "props": [{"type": "boolean", "name": "enabled", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled"}, {"type": "integer32", "name": "trafficAnalyticsInterval", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval"}, {"type": "string", "name": "workspaceId", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId"}, {"type": "string", "name": "workspaceRegion", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion"}, {"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId"}]}]}, {"type": "object", "name": "format", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.format.type", "enum": {"items": [{"value": "JSON"}]}}, {"default": {"value": 0}, "type": "integer32", "name": "version", "arg": "$parameters.properties.format.version"}]}, {"type": "object", "name": "retentionPolicy", "arg": "$parameters.properties.retentionPolicy", "props": [{"default": {"value": 0}, "type": "integer32", "name": "days", "arg": "$parameters.properties.retentionPolicy.days"}, {"default": {"value": false}, "type": "boolean", "name": "enabled", "arg": "$parameters.properties.retentionPolicy.enabled"}]}, {"type": "string", "name": "storageId", "arg": "$parameters.properties.storageId", "required": true}, {"type": "string", "name": "targetResourceId", "arg": "$parameters.properties.targetResourceId", "required": true}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "FlowLogs_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "flowLogName", "arg": "$Path.flowLogName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@FlowLog_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.xml new file mode 100644 index 000000000..f0233a5c6 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2024-03-01.xml @@ -0,0 +1,761 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +