共用方式為


PolicyRestrictions interface

代表 PolicyRestrictions 的介面。

方法

checkAtManagementGroupScope(string, CheckManagementGroupRestrictionsRequest, PolicyRestrictionsCheckAtManagementGroupScopeOptionalParams)

檢查 Azure 原則會對管理群組內的資源放置哪些限制。

checkAtResourceGroupScope(string, CheckRestrictionsRequest, PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams)

檢查 Azure 原則會對資源群組內的資源放置哪些限制。 當資源群組中建立資源已已知時,請使用此選項。

checkAtSubscriptionScope(CheckRestrictionsRequest, PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams)

檢查 Azure 原則會對訂用帳戶內的資源放置哪些限制。

方法詳細資料

checkAtManagementGroupScope(string, CheckManagementGroupRestrictionsRequest, PolicyRestrictionsCheckAtManagementGroupScopeOptionalParams)

檢查 Azure 原則會對管理群組內的資源放置哪些限制。

function checkAtManagementGroupScope(managementGroupId: string, parameters: CheckManagementGroupRestrictionsRequest, options?: PolicyRestrictionsCheckAtManagementGroupScopeOptionalParams): Promise<CheckRestrictionsResult>

參數

managementGroupId

string

管理群組標識碼。

parameters
CheckManagementGroupRestrictionsRequest

檢查原則限制參數。

傳回

checkAtResourceGroupScope(string, CheckRestrictionsRequest, PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams)

檢查 Azure 原則會對資源群組內的資源放置哪些限制。 當資源群組中建立資源已已知時,請使用此選項。

function checkAtResourceGroupScope(resourceGroupName: string, parameters: CheckRestrictionsRequest, options?: PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams): Promise<CheckRestrictionsResult>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

parameters
CheckRestrictionsRequest

檢查原則限制參數。

傳回

checkAtSubscriptionScope(CheckRestrictionsRequest, PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams)

檢查 Azure 原則會對訂用帳戶內的資源放置哪些限制。

function checkAtSubscriptionScope(parameters: CheckRestrictionsRequest, options?: PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams): Promise<CheckRestrictionsResult>

參數

parameters
CheckRestrictionsRequest

檢查原則限制參數。

傳回