setting off custom errors for azure