PolicyRestrictionsOperationsExtensions.CheckAtSubscriptionScopeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET