public Collection<VirtualNetworkConfigContext> GetAzureVNetConfig(string filePath)
{
GetAzureVNetConfigCmdletInfo getAzureVNetConfigCmdletInfo = new GetAzureVNetConfigCmdletInfo(filePath);
WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(getAzureVNetConfigCmdletInfo);
Collection<PSObject> result = azurePowershellCmdlet.Run();
Collection<VirtualNetworkConfigContext> vnetGateways = new Collection<VirtualNetworkConfigContext>();
foreach (PSObject re in result)
{
vnetGateways.Add((VirtualNetworkConfigContext)re.BaseObject);
}
return vnetGateways;
}