public ManagementOperationContext SetAzureVNetConfig(string filePath)
{
SetAzureVNetConfigCmdletInfo setAzureVNetConfigCmdletInfo = new SetAzureVNetConfigCmdletInfo(filePath);
WindowsAzurePowershellCmdlet azurePowershellCmdlet = new WindowsAzurePowershellCmdlet(setAzureVNetConfigCmdletInfo);
Collection<PSObject> result = azurePowershellCmdlet.Run();
if (result.Count == 1)
{
return (ManagementOperationContext) result[0].BaseObject;
}
return null;
}