Fix for network configuration serialization for Subnets

Hi, this is a patch for the issue creating an endpoint on a VM if it is part of a VNet:

https://github.com/WindowsAzure/azure-sdk-tools-xplat/issues/543