PolicyRestrictions interface
Interface representing a PolicyRestrictions.
Methods
check |
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. |
check |
Checks what restrictions Azure Policy will place on a resource within a subscription. |
Method Details
checkAtResourceGroupScope(string, CheckRestrictionsRequest, PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams)
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.
function checkAtResourceGroupScope(resourceGroupName: string, parameters: CheckRestrictionsRequest, options?: PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams): Promise<CheckRestrictionsResult>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- parameters
- CheckRestrictionsRequest
The check policy restrictions parameters.
The options parameters.
Returns
Promise<CheckRestrictionsResult>
checkAtSubscriptionScope(CheckRestrictionsRequest, PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams)
Checks what restrictions Azure Policy will place on a resource within a subscription.
function checkAtSubscriptionScope(parameters: CheckRestrictionsRequest, options?: PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams): Promise<CheckRestrictionsResult>
Parameters
- parameters
- CheckRestrictionsRequest
The check policy restrictions parameters.
The options parameters.
Returns
Promise<CheckRestrictionsResult>