PolicyExemptionResource.GetAsync(CancellationToken) Method

Definition

This operation retrieves a single policy exemption, given its name and the scope it was created at.

  • Request Path. : /{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}.
  • Operation Id. : PolicyExemptions_Get.
  • Default Api Version. : 2025-12-01-preview.
  • Resource. : PolicyExemptionResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Policy.PolicyExemptionResource>> GetAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Policy.PolicyExemptionResource>>
override this.GetAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Policy.PolicyExemptionResource>>
Public Overridable Function GetAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PolicyExemptionResource))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to