Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixes for NW examples to resolve OAV errors
  • Loading branch information
anton-evseev committed Apr 17, 2019
commit ff55cfe00cf7df5dc1e4b974451dfbbc3f6c1167
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"properties" : {
"source" : {
"resourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"
},
"destination" : {
"address" : "192.168.100.4",
"port" : "3389"
}
"source" : {
"resourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"
},
"destination" : {
"address" : "192.168.100.4",
"port" : 3389
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"properties" : {
"location" : "eastus"
}
"location" : "eastus",
"properties" : {}
}
},
"responses" : {
Expand All @@ -18,7 +17,7 @@
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"type" : "Microsoft.Network/networkWatchers",
"location" : "eastus",
"tags" : [],
"tags" : {},
"properties" : {
"provisioningState" : "Succeeded"
}
Expand All @@ -31,11 +30,11 @@
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"type" : "Microsoft.Network/networkWatchers",
"location" : "eastus",
"tags" : [],
"tags" : {},
"properties" : {
"provisioningState" : "Succeeded"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1",
"properties" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1",
"properties" : {
"storageId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1",
"enabled" : true
}
"storageId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1",
"enabled" : true
}
}
},
Expand All @@ -34,4 +32,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"properties" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"
}
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"
}
},
"responses" : {
Expand All @@ -30,4 +28,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"type" : "Microsoft.Network/networkWatchers",
"location" : "eastus",
"tags" : [],
"tags" : {},
"properties" : {
"provisioningState" : "Succeeded"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"properties" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
"direction" : "Outbound",
"protocol" : "TCP",
"localPort" : "80",
"remotePort" : "80",
"localIPAddress" : "10.2.0.4",
"remoteIPAddress" : "121.10.1.1"
}
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
"direction" : "Outbound",
"protocol" : "TCP",
"localPort" : "80",
"remotePort" : "80",
"localIPAddress" : "10.2.0.4",
"remoteIPAddress" : "121.10.1.1"
}
},
"responses" : {
Expand All @@ -30,4 +28,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"type" : "Microsoft.Network/networkWatchers",
"location" : "eastus",
"tags" : [],
"tags" : {},
"properties" : {
"provisioningState" : "Succeeded"
}
Expand All @@ -25,7 +25,7 @@
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"type" : "Microsoft.Network/networkWatchers",
"location" : "eastus",
"tags" : [],
"tags" : {},
"properties" : {
"provisioningState" : "Succeeded"
}
Expand All @@ -34,4 +34,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"type" : "Microsoft.Network/networkWatchers",
"location" : "eastus",
"tags" : [],
"tags" : {},
"properties" : {
"provisioningState" : "Succeeded"
}
Expand All @@ -24,7 +24,7 @@
"etag" : "W/\"00000000-0000-0000-0000-000000000000\"",
"type" : "Microsoft.Network/networkWatchers",
"location" : "westus",
"tags" : [],
"tags" : {},
"properties" : {
"provisioningState" : "Succeeded"
}
Expand All @@ -33,4 +33,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"properties" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
"sourcIPAddress" : "10.0.0.5",
"destinationIPAddress" : "10.0.0.10",
"targetNicResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1"
}
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
"sourceIPAddress" : "10.0.0.5",
"destinationIPAddress" : "10.0.0.10",
"targetNicResourceId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1"
}
},
"responses" : {
Expand All @@ -29,4 +27,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"body" : {
"name" : "pc1",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc1",
"captureStartTime" : "9/7/2016 12:35:24PM",
"captureStartTime" : "2016-01-08T03:42:33.3387305Z",
"packetCaptureStatus" : "Stopped",
"stopReason" : "TimeExceeded",
"packetCaptureError" : []
Expand All @@ -21,11 +21,11 @@
"body" : {
"name" : "pc1",
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/packetCaptures/pc1",
"captureStartTime" : "9/7/2016 12:35:24PM",
"captureStartTime" : "2016-01-08T03:42:33.3387305Z",
"packetCaptureStatus" : "Stopped",
"stopReason" : "TimeExceeded",
"packetCaptureError" : []
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"properties" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"
}
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"
}
},
"responses" : {
Expand Down Expand Up @@ -37,38 +35,7 @@
"direction" : "Inbound"
}
}
],
"defaultSecurityRules" : [
{
"name" : "AllowVnetInBound",
"id" : "/subscriptions//resourceGroups//providers/Microsoft.Network/networkSecurityGroups//defaultSecurityRules/",
"properties" : {
"provisioningState" : "Succeeded",
"description" : "Allow inbound traffic from all VMs in VNET",
"protocol" : "*",
"sourcePortRange" : "*",
"destinationPortRange" : "*",
"sourceAddressPrefix" : "VirtualNetwork",
"destinationAddressPrefix" : "VirtualNetwork",
"access" : "Allow",
"priority" : 65000,
"direction" : "Inbound"
}
}
],
"effectiveSecurityRules" : [
{
"name" : "DefaultOutboundDenyAll",
"protocol" : "All",
"sourcePortRange" : "0-65535",
"destinationPortRange" : "0-65535",
"sourceAddressPrefix" : "*",
"destinationAddressPrefix" : "*",
"access" : "Deny",
"priority" : 65500,
"direction" : "Outbound"
}
]
]
}
}
}
Expand Down Expand Up @@ -101,43 +68,12 @@
"direction" : "Inbound"
}
}
],
"defaultSecurityRules" : [
{
"name" : "AllowVnetInBound",
"id" : "/subscriptions//resourceGroups//providers/Microsoft.Network/networkSecurityGroups//defaultSecurityRules/",
"properties" : {
"provisioningState" : "Succeeded",
"description" : "Allow inbound traffic from all VMs in VNET",
"protocol" : "*",
"sourcePortRange" : "*",
"destinationPortRange" : "*",
"sourceAddressPrefix" : "VirtualNetwork",
"destinationAddressPrefix" : "VirtualNetwork",
"access" : "Allow",
"priority" : 65000,
"direction" : "Inbound"
}
}
],
"effectiveSecurityRules" : [
{
"name" : "DefaultOutboundDenyAll",
"protocol" : "All",
"sourcePortRange" : "0-65535",
"destinationPortRange" : "0-65535",
"sourceAddressPrefix" : "*",
"destinationAddressPrefix" : "*",
"access" : "Deny",
"priority" : 65500,
"direction" : "Outbound"
}
]
]
}
}
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"properties" : {
"targetResourceGroup": "rg2"
}
"targetResourceGroupName": "rg2"
}
},
"responses" : {
Expand Down Expand Up @@ -38,4 +36,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
"properties" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
"properties" : {
"storageId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1",
"storagePath" : "https://st1.blob.core.windows.net/cn1"
}
"storageId" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1",
"storagePath" : "https://st1.blob.core.windows.net/cn1"
}
}
},
Expand Down Expand Up @@ -70,4 +68,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"resourceGroupName" : "rg1",
"networkWatcherName" : "nw1",
"parameters" : {
"properties" : {
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"
}
"targetResourceId" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"
}
},
"responses" : {
Expand Down Expand Up @@ -66,4 +64,4 @@
}
}
}
}
}
Loading