MockableComputeScheduleArmClient.GetAssociatedOccurrencesAsync Method

Definition

List OccurrenceExtensionResource resources by parent

  • Request Path. : /{resourceUri}/providers/Microsoft.ComputeSchedule/associatedOccurrences.
  • Operation Id. : OccurrenceExtension_ListOccurrenceByVms.
  • Default Api Version. : 2026-04-15-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.ComputeSchedule.Models.OccurrenceExtensionData> GetAssociatedOccurrencesAsync(Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAssociatedOccurrencesAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ComputeSchedule.Models.OccurrenceExtensionData>
override this.GetAssociatedOccurrencesAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ComputeSchedule.Models.OccurrenceExtensionData>
Public Overridable Function GetAssociatedOccurrencesAsync (scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of OccurrenceExtensionData)

Parameters

scope
ResourceIdentifier

The scope that the resource will apply against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of OccurrenceExtensionData that may take multiple service requests to iterate over.

Exceptions

scope is an empty string, and was expected to be non-empty.

scope is null.

Applies to