resourcemanagement-powershell icon indicating copy to clipboard operation
resourcemanagement-powershell copied to clipboard

Save-resource result not returned when exception is thrown

Open jgreenephd opened this issue 7 years ago • 1 comments

When saving a resource the request ID is returned on a successful save. We have a situation where an exception is thrown because the save goes into an authorization workflow. Save-Resource : Permission is required The save still completes but the request ID is not returned. Is there a way to capture the ID when an exception is thrown?

jgreenephd avatar Jun 18 '18 20:06 jgreenephd

Follow up question for you Ryan: Save-Resource does not always return a value. Could you explain on when we can expect the Request ObjectID to be returned?

jgreenephd avatar Jun 19 '18 14:06 jgreenephd