### YamlMime:JavaType uid: "com.azure.resourcemanager.avs.models.ScriptExecution.DefinitionStages.WithFailureReason" fullName: "com.azure.resourcemanager.avs.models.ScriptExecution.DefinitionStages.WithFailureReason" name: "ScriptExecution.DefinitionStages.WithFailureReason" nameWithType: "ScriptExecution.DefinitionStages.WithFailureReason" summary: "The stage of the ScriptExecution definition allowing to specify failureReason." syntax: "public static interface **ScriptExecution.DefinitionStages.WithFailureReason**" methods: - uid: "com.azure.resourcemanager.avs.models.ScriptExecution.DefinitionStages.WithFailureReason.withFailureReason(java.lang.String)" fullName: "com.azure.resourcemanager.avs.models.ScriptExecution.DefinitionStages.WithFailureReason.withFailureReason(String failureReason)" name: "withFailureReason(String failureReason)" nameWithType: "ScriptExecution.DefinitionStages.WithFailureReason.withFailureReason(String failureReason)" summary: "Specifies the failureReason property: Error message if the script was able to run, but if the script itself had errors or powershell threw an exception." modifiers: - "abstract" parameters: - description: "Error message if the script was able to run, but if the script itself had\n errors or powershell threw an exception." name: "failureReason" type: "String" syntax: "public abstract ScriptExecution.DefinitionStages.WithCreate withFailureReason(String failureReason)" desc: "Specifies the failureReason property: Error message if the script was able to run, but if the script itself had errors or powershell threw an exception." returns: description: "the next definition stage." type: "" type: "interface" desc: "The stage of the ScriptExecution definition allowing to specify failureReason." metadata: {} package: "com.azure.resourcemanager.avs.models" artifact: com.azure.resourcemanager:azure-resourcemanager-avs:1.2.0