PolicyRestrictionsOperationsExtensions.CheckAtResourceGroupScopeAsync 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 resource group. Use this when the resource group the resource will be created in is already known.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.PolicyInsights.Models.CheckRestrictionsResult> CheckAtResourceGroupScopeAsync (this Microsoft.Azure.Management.PolicyInsights.IPolicyRestrictionsOperations operations, string subscriptionId, string resourceGroupName, Microsoft.Azure.Management.PolicyInsights.Models.CheckRestrictionsRequest parameters, System.Threading.CancellationToken cancellationToken = default);
static member CheckAtResourceGroupScopeAsync : Microsoft.Azure.Management.PolicyInsights.IPolicyRestrictionsOperations * string * string * Microsoft.Azure.Management.PolicyInsights.Models.CheckRestrictionsRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.PolicyInsights.Models.CheckRestrictionsResult>
<Extension()>
Public Function CheckAtResourceGroupScopeAsync (operations As IPolicyRestrictionsOperations, subscriptionId As String, resourceGroupName 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.
- resourceGroupName
- String
The name of the resource group. The name is case insensitive.
- parameters
- CheckRestrictionsRequest
The check policy restrictions parameters.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET