private bool CheckOutputExists(string resourceGroupName, string jobName, string outputName)
{
try
{
PSOutput output = GetOutput(resourceGroupName, jobName, outputName);
return true;
}
catch (CloudException e)
{
//Get throws Exception message with NotFound Status
if (e.Response.StatusCode == HttpStatusCode.NotFound)
{
return false;
}
else
{
throw;
}
}
}
}