private bool CheckTransformationExists(string resourceGroupName, string jobName, string transformationName)
{
try
{
PSTransformation transformation = GetTransformation(resourceGroupName, jobName, transformationName);
return true;
}
catch (CloudException e)
{
//Get throws Exception message with NotFound Status
if (e.Response.StatusCode == HttpStatusCode.NotFound)
{
return false;
}
else
{
throw;
}
}
}
}