Description
==========version==========
PS /home/testuser> Get-Module -ListAvailable Az.Network
Directory: /usr/local/share/powershell/Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
Script 4.3.0 Az.Network Core,Desk
{Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicationGatewayAuthentic…
PS /home/testuser> Get-Module -ListAvailable Az
Directory: /usr/local/share/powershell/Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
Script 5.2.0 Az Core,Desk
==============================
==========Without Vnet peering==========
We can add the subnet into the VNet.
PS /home/testuser> $vnet = Get-AzvirtualNetwork -Name vNetB -ResourceGroupName InternalSubRG
PS /home/testuser> $V1Subnet = Get-AzVirtualNetworkSubnetConfig -Name appgw -VirtualNetwork $vnet
PS /home/testuser> $vnet = Add-AzVirtualNetworkSubnetConfig -Name testsubnet -AddressPrefix "192.168.4.0/24" -VirtualNetwork $vnet
WARNING: Upcoming breaking changes in the cmdlet 'Add-AzVirtualNetworkSubnetConfig' :
Update Property Name
Cmdlet invocation changes :
Old Way : -ResourceId
New Way : -NatGatewayId
Update Property Name
Cmdlet invocation changes :
Old Way : -InputObject
New Way : -NatGateway
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
PS /home/testuser> Set-AzVirtualNetwork -VirtualNetwork $vnet
Name : vNetB
ResourceGroupName : InternalSubRG
Location : eastus
Id : /subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB
Etag : W/"4fbb3aa4-b688-4098-b02a-a81ede8d8852"
ResourceGuid : aa5f3ae4-19c8-4b09-b927-dac75469480b
ProvisioningState : Succeeded
Tags :
AddressSpace : {
"AddressPrefixes": [
"192.168.0.0/16"
]
}
DhcpOptions : {
"DnsServers": []
}
Subnets : [
{
"Delegations": [],
"Name": "GatewaySubnet",
"Etag": "W/"4fbb3aa4-b688-4098-b02a-a81ede8d8852"",
"Id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/GatewaySubnet",
"AddressPrefix": [
"192.168.2.64/28"
],
"IpConfigurations": [],
"ServiceAssociationLinks": [],
"ResourceNavigationLinks": [],
"ServiceEndpoints": [],
"ServiceEndpointPolicies": [],
"PrivateEndpoints": [],
"ProvisioningState": "Succeeded",
"PrivateEndpointNetworkPolicies": "Enabled",
"PrivateLinkServiceNetworkPolicies": "Enabled",
"IpAllocations": []
},
{
"Delegations": [],
"Name": "AzureFirewallSubnet",
"Etag": "W/"4fbb3aa4-b688-4098-b02a-a81ede8d8852"",
"Id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/AzureFirewallSubnet",
"AddressPrefix": [
"192.168.3.0/24"
],
"IpConfigurations": [],
"ServiceAssociationLinks": [],
"ResourceNavigationLinks": [],
"ServiceEndpoints": [],
"ServiceEndpointPolicies": [],
"PrivateEndpoints": [],
"ProvisioningState": "Succeeded",
"PrivateEndpointNetworkPolicies": "Enabled",
"PrivateLinkServiceNetworkPolicies": "Enabled",
"IpAllocations": []
},
{
"Delegations": [],
"Name": "appgw",
"Etag": "W/"4fbb3aa4-b688-4098-b02a-a81ede8d8852"",
"Id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/appgw",
"AddressPrefix": [
"192.168.2.80/28"
],
"IpConfigurations": [],
"ServiceAssociationLinks": [],
"ResourceNavigationLinks": [],
"NetworkSecurityGroup": {
"Id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/internalsubrg/providers/Microsoft.Network/networkSecurityGroups/vnetb-NSG"
},
"ServiceEndpoints": [],
"ServiceEndpointPolicies": [],
"PrivateEndpoints": [],
"ProvisioningState": "Succeeded",
"PrivateEndpointNetworkPolicies": "Enabled",
"PrivateLinkServiceNetworkPolicies": "Enabled",
"IpAllocations": []
},
{
"Delegations": [],
"Name": "subnetb",
"Etag": "W/"4fbb3aa4-b688-4098-b02a-a81ede8d8852"",
"Id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/subnetb",
"AddressPrefix": [
"192.168.2.0/26"
],
"IpConfigurations": [],
"ServiceAssociationLinks": [],
"ResourceNavigationLinks": [],
"NetworkSecurityGroup": {
"Id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/internalsubrg/providers/Microsoft.Network/networkSecurityGroups/vnetb-NSG"
},
"ServiceEndpoints": [
{
"ProvisioningState": "Succeeded",
"Service": "Microsoft.Sql",
"Locations": [
"eastus"
]
}
],
"ServiceEndpointPolicies": [],
"PrivateEndpoints": [],
"ProvisioningState": "Succeeded",
"PrivateEndpointNetworkPolicies": "Enabled",
"PrivateLinkServiceNetworkPolicies": "Enabled",
"IpAllocations": []
},
{
"Delegations": [],
"Name": "testsubnet",
"Etag": "W/"4fbb3aa4-b688-4098-b02a-a81ede8d8852"",
"Id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/testsubnet",
"AddressPrefix": [
"192.168.4.0/24"
],
"IpConfigurations": [],
"ServiceAssociationLinks": [],
"ResourceNavigationLinks": [],
"ServiceEndpoints": [],
"ServiceEndpointPolicies": [],
"PrivateEndpoints": [],
"ProvisioningState": "Succeeded",
"PrivateEndpointNetworkPolicies": "Enabled",
"PrivateLinkServiceNetworkPolicies": "Enabled",
"IpAllocations": []
}
]
VirtualNetworkPeerings : []
EnableDdosProtection : false
DdosProtectionPlan : null
========================================
==========With VNet peering==========
PS /home/testuser> $vnet = Get-AzvirtualNetwork -Name vNetB -ResourceGroupName InternalSubRG
PS /home/testuser> $V1Subnet = Get-AzVirtualNetworkSubnetConfig -Name appgw -VirtualNetwork $vnet
PS /home/testuser> $vnet = Add-AzVirtualNetworkSubnetConfig -Name testsubnet -AddressPrefix "192.168.4.0/24" -VirtualNetwork $vnet
WARNING: Upcoming breaking changes in the cmdlet 'Add-AzVirtualNetworkSubnetConfig' :
Update Property Name
Cmdlet invocation changes :
Old Way : -ResourceId
New Way : -NatGatewayId
Update Property Name
Cmdlet invocation changes :
Old Way : -InputObject
New Way : -NatGateway
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
PS /home/testuser> Set-AzVirtualNetwork -VirtualNetwork $vnet
Set-AzVirtualNetwork: Cannot parse the request.
StatusCode: 400
ReasonPhrase: Bad Request
ErrorCode: InvalidRequestFormat
ErrorMessage: Cannot parse the request.
Additional details:
Code: InvalidJson
Message: Could not find member 'remoteVirtualNetworkAddressSpace' on object of type 'VirtualNetworkPeeringProperties'. Path 'properties.virtualNetworkPeerings[0].properties.remoteVirtualNetworkAddressSpace', line 118, position 45.
OperationID : e834cc82-75a8-4210-a65c-fa46c71dee71
PS /home/testuser> Set-AzVirtualNetwork -VirtualNetwork $vnet -debug
DEBUG: 7:50:52 AM - SetAzureVirtualNetworkCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 7:50:52 AM - using account id 'MSI@50342'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '72f988bf-86f1-41af-91ab-2d7cd011db47'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: [Common.Authentication]: Received token with LoginType 'ManagedService', Tenant: '72f988bf-86f1-41af-91ab-2d7cd011db47', UserId: 'MSI@50342'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Headers:
x-ms-client-request-id : e11a2776-bd12-49c6-809f-cc750e4d612d
Accept-Language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
ETag : W/"04577862-731f-41fd-bc29-ef966b4e1442"
x-ms-request-id : a2725b64-9bb8-4054-ad2c-a12024187f13
x-ms-correlation-request-id : 060ab05d-1fa1-4e88-a0dd-755e8e817031
x-ms-arm-service-request-id : 09c56838-9193-4316-964e-f2e1e37ceb39
Strict-Transport-Security : max-age=31536000; includeSubDomains
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-routing-request-id : SOUTHEASTASIA:20201209T075052Z:060ab05d-1fa1-4e88-a0dd-755e8e817031
X-Content-Type-Options : nosniff
Date : Wed, 09 Dec 2020 07:50:52 GMT
Body:
{
"name": "vNetB",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB",
"etag": "W/"04577862-731f-41fd-bc29-ef966b4e1442"",
"type": "Microsoft.Network/virtualNetworks",
"location": "eastus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "aa5f3ae4-19c8-4b09-b927-dac75469480b",
"addressSpace": {
"addressPrefixes": [
"192.168.0.0/16"
]
},
"dhcpOptions": {
"dnsServers": []
},
"subnets": [
{
"name": "GatewaySubnet",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/GatewaySubnet",
"etag": "W/"04577862-731f-41fd-bc29-ef966b4e1442"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "192.168.2.64/28",
"serviceEndpoints": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"type": "Microsoft.Network/virtualNetworks/subnets"
},
{
"name": "AzureFirewallSubnet",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/AzureFirewallSubnet",
"etag": "W/"04577862-731f-41fd-bc29-ef966b4e1442"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "192.168.3.0/24",
"serviceEndpoints": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"type": "Microsoft.Network/virtualNetworks/subnets"
},
{
"name": "appgw",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/appgw",
"etag": "W/"04577862-731f-41fd-bc29-ef966b4e1442"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "192.168.2.80/28",
"networkSecurityGroup": {
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/internalsubrg/providers/Microsoft.Network/networkSecurityGroups/vnetb-NSG"
},
"serviceEndpoints": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"type": "Microsoft.Network/virtualNetworks/subnets"
},
{
"name": "subnetb",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/subnetb",
"etag": "W/"04577862-731f-41fd-bc29-ef966b4e1442"",
"properties": {
"provisioningState": "Succeeded",
"addressPrefix": "192.168.2.0/26",
"networkSecurityGroup": {
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/internalsubrg/providers/Microsoft.Network/networkSecurityGroups/vnetb-NSG"
},
"serviceEndpoints": [
{
"provisioningState": "Succeeded",
"service": "Microsoft.Sql",
"locations": [
"eastus"
]
}
],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"type": "Microsoft.Network/virtualNetworks/subnets"
}
],
"virtualNetworkPeerings": [
{
"name": "toAppGW",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/virtualNetworkPeerings/toAppGW",
"etag": "W/"04577862-731f-41fd-bc29-ef966b4e1442"",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "26e3343e-3215-06d4-2435-56557a04c958",
"peeringState": "Connected",
"remoteVirtualNetwork": {
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/NewInternal/providers/Microsoft.Network/virtualNetworks/AppGWtest"
},
"allowVirtualNetworkAccess": true,
"allowForwardedTraffic": true,
"allowGatewayTransit": false,
"useRemoteGateways": false,
"doNotVerifyRemoteGateways": false,
"remoteAddressSpace": {
"addressPrefixes": [
"10.6.0.0/16"
]
},
"routeServiceVips": {}
},
"type": "Microsoft.Network/virtualNetworks/virtualNetworkPeerings"
}
],
"enableDdosProtection": false,
"enableVmProtection": false
}
}
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Headers:
x-ms-client-request-id : b90b1656-3e47-4759-8f65-e5aff54abd66
Accept-Language : en-US
Body:
{
"properties": {
"addressSpace": {
"addressPrefixes": [
"192.168.0.0/16"
]
},
"dhcpOptions": {
"dnsServers": []
},
"subnets": [
{
"properties": {
"addressPrefix": "192.168.2.64/28",
"addressPrefixes": [],
"serviceEndpoints": [],
"serviceEndpointPolicies": [],
"ipAllocations": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"name": "GatewaySubnet",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/GatewaySubnet"
},
{
"properties": {
"addressPrefix": "192.168.3.0/24",
"addressPrefixes": [],
"serviceEndpoints": [],
"serviceEndpointPolicies": [],
"ipAllocations": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"name": "AzureFirewallSubnet",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/AzureFirewallSubnet"
},
{
"properties": {
"addressPrefix": "192.168.2.80/28",
"addressPrefixes": [],
"networkSecurityGroup": {
"properties": {
"securityRules": []
},
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/internalsubrg/providers/Microsoft.Network/networkSecurityGroups/vnetb-NSG",
"tags": {}
},
"serviceEndpoints": [],
"serviceEndpointPolicies": [],
"ipAllocations": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"name": "appgw",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/appgw"
},
{
"properties": {
"addressPrefix": "192.168.2.0/26",
"addressPrefixes": [],
"networkSecurityGroup": {
"properties": {
"securityRules": []
},
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/internalsubrg/providers/Microsoft.Network/networkSecurityGroups/vnetb-NSG",
"tags": {}
},
"serviceEndpoints": [
{
"service": "Microsoft.Sql",
"locations": [
"eastus"
]
}
],
"serviceEndpointPolicies": [],
"ipAllocations": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"name": "subnetb",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/subnets/subnetb"
},
{
"properties": {
"addressPrefix": "192.168.4.0/24",
"addressPrefixes": [],
"serviceEndpoints": [],
"serviceEndpointPolicies": [],
"ipAllocations": [],
"delegations": [],
"privateEndpointNetworkPolicies": "Enabled",
"privateLinkServiceNetworkPolicies": "Enabled"
},
"name": "testsubnet"
}
],
"virtualNetworkPeerings": [
{
"properties": {
"allowVirtualNetworkAccess": true,
"allowForwardedTraffic": true,
"allowGatewayTransit": false,
"useRemoteGateways": false,
"remoteVirtualNetwork": {
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/NewInternal/providers/Microsoft.Network/virtualNetworks/AppGWtest"
},
"remoteAddressSpace": {
"addressPrefixes": [
"10.6.0.0/16"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"10.6.0.0/16"
]
},
"peeringState": "Connected"
},
"name": "toAppGW",
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB/virtualNetworkPeerings/toAppGW"
}
],
"enableDdosProtection": false,
"ipAllocations": []
},
"id": "/subscriptions/66bef1e6-a2cb-4f94-a009-eaacf5ae1be3/resourceGroups/InternalSubRG/providers/Microsoft.Network/virtualNetworks/vNetB",
"location": "eastus"
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-request-id : 96899bb4-eff8-4832-9086-820b785431b7
Strict-Transport-Security : max-age=31536000; includeSubDomains
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : 0da5ef7d-6fee-4436-889a-b1d54376eba2
x-ms-routing-request-id : SOUTHEASTASIA:20201209T075053Z:0da5ef7d-6fee-4436-889a-b1d54376eba2
X-Content-Type-Options : nosniff
Date : Wed, 09 Dec 2020 07:50:52 GMT
Body:
{
"error": {
"code": "InvalidRequestFormat",
"message": "Cannot parse the request.",
"details": [
{
"code": "InvalidJson",
"message": "Could not find member 'remoteVirtualNetworkAddressSpace' on object of type 'VirtualNetworkPeeringProperties'. Path 'properties.virtualNetworkPeerings[0].properties.remoteVirtualNetworkAddressSpace', line 118, position 45."
}
]
}
}
Set-AzVirtualNetwork: Cannot parse the request.
StatusCode: 400
ReasonPhrase: Bad Request
ErrorCode: InvalidRequestFormat
ErrorMessage: Cannot parse the request.
Additional details:
Code: InvalidJson
Message: Could not find member 'remoteVirtualNetworkAddressSpace' on object of type 'VirtualNetworkPeeringProperties'. Path 'properties.virtualNetworkPeerings[0].properties.remoteVirtualNetworkAddressSpace', line 118, position 45.
OperationID : 96899bb4-eff8-4832-9086-820b785431b7
DEBUG: AzureQoSEvent: CommandName - Set-AzVirtualNetwork; IsSuccess - False; Duration - 00:00:00.9991107;; Exception - Microsoft.Azure.Commands.Network.Common.NetworkCloudException: Cannot parse the request.
StatusCode: 400
ReasonPhrase: Bad Request
ErrorCode: InvalidRequestFormat
ErrorMessage: Cannot parse the request.
Additional details:
Code: InvalidJson
Message: Could not find member 'remoteVirtualNetworkAddressSpace' on object of type 'VirtualNetworkPeeringProperties'. Path 'properties.virtualNetworkPeerings[0].properties.remoteVirtualNetworkAddressSpace', line 118, position 45.
OperationID : 96899bb4-eff8-4832-9086-820b785431b7
---> Microsoft.Rest.Azure.CloudException: Cannot parse the request.
at Microsoft.Azure.Management.Network.VirtualNetworksOperations.BeginCreateOrUpdateWithHttpMessagesAsync(String resourceGroupName, String virtualNetworkName, VirtualNetwork parameters, Dictionary2 customHeaders, CancellationToken cancellationToken) at Microsoft.Azure.Management.Network.VirtualNetworksOperations.CreateOrUpdateWithHttpMessagesAsync(String resourceGroupName, String virtualNetworkName, VirtualNetwork parameters, Dictionary
2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.Management.Network.VirtualNetworksOperationsExtensions.CreateOrUpdateAsync(IVirtualNetworksOperations operations, String resourceGroupName, String virtualNetworkName, VirtualNetwork parameters, CancellationToken cancellationToken)
at Microsoft.Azure.Management.Network.VirtualNetworksOperationsExtensions.CreateOrUpdate(IVirtualNetworksOperations operations, String resourceGroupName, String virtualNetworkName, VirtualNetwork parameters)
at Microsoft.Azure.Commands.Network.SetAzureVirtualNetworkCommand.Execute()
at Microsoft.Azure.Commands.Network.NetworkBaseCmdlet.ExecuteCmdlet()
--- End of inner exception stack trace ---
at Microsoft.Azure.Commands.Network.NetworkBaseCmdlet.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__31.<ExecuteSynchronouslyOrAsJob>b__3_0(T c) at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action
1 executor)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord();
DEBUG: Finish sending metric.
DEBUG: 7:50:54 AM - SetAzureVirtualNetworkCommand end processing.
========================================
I think the parameter "remoteVirtualNetworkAddressSpace" in HTTP request is wrong. Could check this bug ?