Partager via


PolicyRestrictionsOperationsExtensions.CheckAtSubscriptionScopeAsync Méthode

Définition

Vérifie les restrictions que Azure Policy placeront sur une ressource au sein d’un abonnement.

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)

Paramètres

operations
IPolicyRestrictionsOperations

Groupe d’opérations pour cette méthode d’extension.

subscriptionId
String

ID de l’abonnement cible.

parameters
CheckRestrictionsRequest

Paramètres de restrictions de stratégie case activée.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à