/// <summary> /// List all reports for the guest configuration assignment, latest report /// first. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='guestConfigurationAssignmentName'> /// The guest configuration assignment name. /// </param> /// <param name='vmName'> /// The name of the virtual machine. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <GuestConfigurationAssignmentReportList> ListAsync(this IGuestConfigurationAssignmentReportsOperations operations, string resourceGroupName, string guestConfigurationAssignmentName, string vmName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, guestConfigurationAssignmentName, vmName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get a report for the guest configuration assignment, by reportId. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='guestConfigurationAssignmentName'> /// The guest configuration assignment name. /// </param> /// <param name='reportId'> /// The GUID for the guest configuration assignment report. /// </param> /// <param name='vmName'> /// The name of the virtual machine. /// </param> public static GuestConfigurationAssignmentReport Get(this IGuestConfigurationAssignmentReportsOperations operations, string resourceGroupName, string guestConfigurationAssignmentName, string reportId, string vmName) { return(operations.GetAsync(resourceGroupName, guestConfigurationAssignmentName, reportId, vmName).GetAwaiter().GetResult()); }