diff --git a/Commands/network/watcher/flow-log/_create.md b/Commands/network/watcher/flow-log/_create.md index 5f8149181..23f85d963 100644 --- a/Commands/network/watcher/flow-log/_create.md +++ b/Commands/network/watcher/flow-log/_create.md @@ -146,3 +146,59 @@ Create a flow log on a network security group. ```bash 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" ``` + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-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 + ``` + +- Create or update flow log + ```bash + 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" + ``` + +- Create or update flow log with recordtypes + ```bash + 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:{}}}" + ``` diff --git a/Commands/network/watcher/flow-log/_delete.md b/Commands/network/watcher/flow-log/_delete.md index d37034387..8fffe8c80 100644 --- a/Commands/network/watcher/flow-log/_delete.md +++ b/Commands/network/watcher/flow-log/_delete.md @@ -36,3 +36,14 @@ Delete the specified flow log resource. ```bash network watcher flow-log delete --location westus2 --name MyFlowLogger ``` + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-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/_list.md b/Commands/network/watcher/flow-log/_list.md index e45eef887..7838f5181 100644 --- a/Commands/network/watcher/flow-log/_list.md +++ b/Commands/network/watcher/flow-log/_list.md @@ -14,3 +14,14 @@ List all flow log resources for the specified Network Watcher. ```bash network watcher flow-log list --location westus2 ``` + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncw==/2025-03-01.xml) **Stable** + + + +#### examples + +- List all flow log resources for the specified Network Watcher. + ```bash + network watcher flow-log list --location westus2 + ``` diff --git a/Commands/network/watcher/flow-log/_show.md b/Commands/network/watcher/flow-log/_show.md index afc5f9def..f83c794a2 100644 --- a/Commands/network/watcher/flow-log/_show.md +++ b/Commands/network/watcher/flow-log/_show.md @@ -51,3 +51,19 @@ Get the flow log configuration of a network security group. ```bash network watcher flow-log show --location MyNetworkWatcher --name MyFlowLog ``` + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-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 83689b623..d184c1d79 100644 --- a/Commands/network/watcher/flow-log/_update.md +++ b/Commands/network/watcher/flow-log/_update.md @@ -126,3 +126,49 @@ 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 ``` + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-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 + ``` + +- Create or update flow log + ```bash + 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:{}}}" + ``` diff --git a/Commands/network/watcher/flow-log/identity/_assign.md b/Commands/network/watcher/flow-log/identity/_assign.md new file mode 100644 index 000000000..1528d1799 --- /dev/null +++ b/Commands/network/watcher/flow-log/identity/_assign.md @@ -0,0 +1,9 @@ +# [Command] _network watcher flow-log identity assign_ + +Assign the user or system managed identities. + +## Versions + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable** + + diff --git a/Commands/network/watcher/flow-log/identity/_remove.md b/Commands/network/watcher/flow-log/identity/_remove.md new file mode 100644 index 000000000..bcaa51e33 --- /dev/null +++ b/Commands/network/watcher/flow-log/identity/_remove.md @@ -0,0 +1,9 @@ +# [Command] _network watcher flow-log identity remove_ + +Remove the user or system managed identities. + +## Versions + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable** + + diff --git a/Commands/network/watcher/flow-log/identity/_show.md b/Commands/network/watcher/flow-log/identity/_show.md new file mode 100644 index 000000000..70140ec6c --- /dev/null +++ b/Commands/network/watcher/flow-log/identity/_show.md @@ -0,0 +1,9 @@ +# [Command] _network watcher flow-log identity show_ + +Show the details of managed identities. + +## Versions + +### [2025-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml) **Stable** + + diff --git a/Commands/network/watcher/flow-log/identity/readme.md b/Commands/network/watcher/flow-log/identity/readme.md new file mode 100644 index 000000000..84205bffc --- /dev/null +++ b/Commands/network/watcher/flow-log/identity/readme.md @@ -0,0 +1,14 @@ +# [Group] _network watcher flow-log identity_ + +Manage Identity + +## Commands + +- [assign](/Commands/network/watcher/flow-log/identity/_assign.md) +: Assign the user or system managed identities. + +- [remove](/Commands/network/watcher/flow-log/identity/_remove.md) +: Remove the user or system managed identities. + +- [show](/Commands/network/watcher/flow-log/identity/_show.md) +: Show the details of managed identities. diff --git a/Commands/network/watcher/flow-log/readme.md b/Commands/network/watcher/flow-log/readme.md index 94bee43fd..0c154a2c4 100644 --- a/Commands/network/watcher/flow-log/readme.md +++ b/Commands/network/watcher/flow-log/readme.md @@ -4,6 +4,11 @@ Manage network security group flow logging. For more information about configuring flow logs visit https://learn.microsoft.com/azure/network-watcher/network-watcher-nsg-flow-logging-cli. +## Subgroups + +- [identity](/Commands/network/watcher/flow-log/identity/readme.md) +: Manage Identity + ## Commands - [configure-flow-log](/Commands/network/watcher/flow-log/_configure-flow-log.md) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncw==/2025-03-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncw==/2025-03-01.json new file mode 100644 index 000000000..1592893f8 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncw==/2025-03-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3M=/V/MjAyNS0wMy0wMQ=="}], "commandGroups": [{"name": "network watcher flow-log", "commands": [{"name": "list", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3M=/V/MjAyNS0wMy0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"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_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs", "request": {"method": "get", "path": {"params": [{"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": "2025-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": "nextLink"}, {"type": "array", "name": "value", "item": {"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": "string", "name": "recordTypes"}, {"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": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncw==/2025-03-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncw==/2025-03-01.xml new file mode 100644 index 000000000..7f51dfe48 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncw==/2025-03-01.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.json new file mode 100644 index 000000000..b5e295fa6 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "commandGroups": [{"name": "network watcher flow-log", "commands": [{"name": "show", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "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": "2025-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": "string", "name": "recordTypes"}, {"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": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "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": "2025-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": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "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": ["filtering-criteria"], "group": "Properties", "help": {"short": "Optional field to filter flowlogs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all flowlogs 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": "string", "var": "$parameters.properties.recordTypes", "options": ["record-types"], "group": "Properties", "help": {"short": "Optional field to filter network traffic logs based on flow states. Value of this field could be any comma separated combination string of letters B,C,E or D. B represents Begin, when a flow is created. C represents Continue for an ongoing flow generated at every five-minute interval. E represents End, when a flow is terminated. D represents Deny, when a flow is denied. If not specified, all network traffic will be logged."}}, {"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": "2025-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": "string", "name": "recordTypes", "arg": "$parameters.properties.recordTypes"}, {"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": "string", "name": "recordTypes"}, {"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": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2025-03-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "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": ["filtering-criteria"], "group": "Properties", "help": {"short": "Update condition to filter flowlogs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all flowlogs 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": "string", "var": "$parameters.properties.recordTypes", "options": ["record-types"], "group": "Properties", "help": {"short": "Optional field to filter network traffic logs based on flow states. Value of this field could be any comma separated combination string of letters B,C,E or D. B represents Begin, when a flow is created. C represents Continue for an ongoing flow generated at every five-minute interval. E represents End, when a flow is terminated. D represents Deny, when a flow is denied. If not specified, all network traffic will be logged."}}, {"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": "2025-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": "string", "name": "recordTypes"}, {"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": "string", "name": "recordTypes", "arg": "$parameters.properties.recordTypes"}, {"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": "2025-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": ""}], "commandGroups": [{"name": "identity", "commands": [{"name": "assign", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2025-03-01", "subresource": "identity", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "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"}]}, {"name": "Parameters.identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "group": "Parameters.identity", "help": {"short": "Set the system managed identity."}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Parameters.identity", "help": {"short": "Set the user managed identities."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "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": "2025-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": "string", "name": "recordTypes"}, {"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": "$Subresource", "json": {"schema": {"action": "assign", "type": "IdentityObject", "name": "parameters.identity", "required": true, "userAssigned": {"action": "assign", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "assign", "type": "string"}}, "systemAssigned": {"action": "assign", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}}}}, {"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": "2025-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": "$Subresource", "clientFlatten": true}]}, {"name": "remove", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2025-03-01", "subresource": "identity", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "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"}]}, {"name": "Parameters.identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "group": "Parameters.identity", "help": {"short": "Set the system managed identity."}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Parameters.identity", "help": {"short": "Set the user managed identities."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "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": "2025-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": "string", "name": "recordTypes"}, {"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": "$Subresource", "json": {"schema": {"action": "remove", "type": "IdentityObject", "name": "parameters.identity", "required": true, "userAssigned": {"action": "remove", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "remove", "type": "string"}}, "systemAssigned": {"action": "remove", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}}}}, {"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": "2025-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": "$Subresource", "clientFlatten": true}]}, {"name": "show", "version": "2025-03-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/flowlogs/{}", "version": "2025-03-01", "subresource": "identity", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vZmxvd0xvZ3Mve2Zsb3dMb2dOYW1lfQ==/V/MjAyNS0wMy0wMQ=="}], "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"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "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": "2025-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": "string", "name": "recordTypes"}, {"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"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}]}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml new file mode 100644 index 000000000..df6c55bd8 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9mbG93bG9ncy97fQ==/2025-03-01.xml @@ -0,0 +1,1268 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +