From 3187c7aa38341fcff1aee7bb594e0feaa8eb3c8e Mon Sep 17 00:00:00 2001 From: snagpal99 <95475229+snagpal99@users.noreply.github.com> Date: Fri, 17 Dec 2021 12:40:15 +0530 Subject: [PATCH] Update Swagger Spec for VMSS Packet Capture (#17045) --- .../stable/2021-06-01/networkWatcher.json | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-06-01/networkWatcher.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-06-01/networkWatcher.json index cddf659f6936..0f936efca5eb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-06-01/networkWatcher.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-06-01/networkWatcher.json @@ -2725,7 +2725,23 @@ "properties": { "target": { "type": "string", - "description": "The ID of the targeted resource, only VM is currently supported." + "description": "The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported." + }, + "scope": { + "$ref": "#/definitions/PacketCaptureMachineScope", + "description": "A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS." + }, + "targetType": { + "description": "Target type of the resource provided.", + "type": "string", + "enum": [ + "AzureVM", + "AzureVMSS" + ], + "x-ms-enum": { + "name": "PcTargetType", + "modelAsString": true + } }, "bytesToCapturePerPacket": { "type": "integer", @@ -2769,6 +2785,26 @@ ], "description": "Parameters that define the create packet capture operation." }, + "PacketCaptureMachineScope": { + "type": "object", + "properties": { + "include": { + "type": "array", + "description": "List of AzureVMSS instances to run packet capture on.", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "description": "List of AzureVMSS instances which has to be excluded from the AzureVMSS from running packet capture.", + "items": { + "type": "string" + } + } + }, + "description": "A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS." + }, "PacketCaptureStorageLocation": { "properties": { "storageId": {