/// <summary> /// Gets application state from the specified HDInsight cluster. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='appId'> /// The id of the job. /// </param> public static AppState GetAppState(this IJobOperations operations, string appId) { return(operations.GetAppStateAsync(appId).GetAwaiter().GetResult()); }