共用方式為


PolicyRestrictionsOperationsExtensions.CheckAtSubscriptionScopeAsync Method

Definition

Checks what restrictions Azure Policy will place on a resource within a subscription.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.PolicyInsights.Models.CheckRestrictionsResult> CheckAtSubscriptionScopeAsync (this Microsoft.Azure.Management.PolicyInsights.IPolicyRestrictionsOperations operations, string subscriptionId, Microsoft.Azure.Management.PolicyInsights.Models.CheckRestrictionsRequest parameters, System.Threading.CancellationToken cancellationToken = default);
static member CheckAtSubscriptionScopeAsync : Microsoft.Azure.Management.PolicyInsights.IPolicyRestrictionsOperations * string * Microsoft.Azure.Management.PolicyInsights.Models.CheckRestrictionsRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.PolicyInsights.Models.CheckRestrictionsResult>
<Extension()>
Public Function CheckAtSubscriptionScopeAsync (operations As IPolicyRestrictionsOperations, subscriptionId As String, parameters As CheckRestrictionsRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CheckRestrictionsResult)

Parameters

operations
IPolicyRestrictionsOperations

The operations group for this extension method.

subscriptionId
String

The ID of the target subscription.

parameters
CheckRestrictionsRequest

The check policy restrictions parameters.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to