PolicySetDefinitionVersionCollection.GetAsync Method

Definition

This operation retrieves the policy set definition version in the given subscription with the given name and version.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}.
  • Operation Id. : PolicySetDefinitionVersions_Get.
  • Default Api Version. : 2025-12-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Policy.PolicySetDefinitionVersionResource>> GetAsync(string policyDefinitionVersion, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Policy.PolicySetDefinitionVersionResource>>
override this.GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Policy.PolicySetDefinitionVersionResource>>
Public Overridable Function GetAsync (policyDefinitionVersion As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PolicySetDefinitionVersionResource))

Parameters

policyDefinitionVersion
String

The policy set definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.

expand
String

Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

policyDefinitionVersion is null.

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

Applies to