Compartir a través de


PolicyInsightsExtensions.CheckPolicyRestrictions Método

Definición

Sobrecargas

CheckPolicyRestrictions(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

Comprueba qué restricciones Azure Policy colocarán en los recursos de un grupo de administración.

  • Ruta de acceso de solicitud/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • IdPolicyRestrictions_CheckAtManagementGroupScope de operaciones
CheckPolicyRestrictions(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

Comprueba qué restricciones Azure Policy colocarán en un recurso dentro de un grupo de recursos. Úselo cuando ya se conozca el grupo de recursos en el que se creará el recurso.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • IdPolicyRestrictions_CheckAtResourceGroupScope de operación
CheckPolicyRestrictions(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

Comprueba qué restricciones Azure Policy colocarán en un recurso dentro de una suscripción.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • IdPolicyRestrictions_CheckAtSubscriptionScope de operación

CheckPolicyRestrictions(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

Comprueba qué restricciones Azure Policy colocarán en los recursos de un grupo de administración.

  • Ruta de acceso de solicitud/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • IdPolicyRestrictions_CheckAtManagementGroupScope de operaciones
public static Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult> CheckPolicyRestrictions (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.ResourceManager.PolicyInsights.Models.CheckManagementGroupPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictions : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.CheckManagementGroupPolicyRestrictionsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>
<Extension()>
Public Function CheckPolicyRestrictions (managementGroupResource As ManagementGroupResource, content As CheckManagementGroupPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CheckPolicyRestrictionsResult)

Parámetros

managementGroupResource
ManagementGroupResource

Instancia ManagementGroupResource en la que se ejecutará el método.

content
CheckManagementGroupPolicyRestrictionsContent

Parámetros de restricciones de directiva de comprobación.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a

CheckPolicyRestrictions(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

Comprueba qué restricciones Azure Policy colocarán en un recurso dentro de un grupo de recursos. Úselo cuando ya se conozca el grupo de recursos en el que se creará el recurso.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • IdPolicyRestrictions_CheckAtResourceGroupScope de operación
public static Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult> CheckPolicyRestrictions (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictions : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>
<Extension()>
Public Function CheckPolicyRestrictions (resourceGroupResource As ResourceGroupResource, content As CheckPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CheckPolicyRestrictionsResult)

Parámetros

resourceGroupResource
ResourceGroupResource

Instancia ResourceGroupResource en la que se ejecutará el método.

content
CheckPolicyRestrictionsContent

Parámetros de restricciones de directiva de comprobación.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a

CheckPolicyRestrictions(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

Comprueba qué restricciones Azure Policy colocarán en un recurso dentro de una suscripción.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • IdPolicyRestrictions_CheckAtSubscriptionScope de operación
public static Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult> CheckPolicyRestrictions (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckPolicyRestrictions : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PolicyInsights.Models.CheckPolicyRestrictionsResult>
<Extension()>
Public Function CheckPolicyRestrictions (subscriptionResource As SubscriptionResource, content As CheckPolicyRestrictionsContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CheckPolicyRestrictionsResult)

Parámetros

subscriptionResource
SubscriptionResource

Instancia SubscriptionResource en la que se ejecutará el método.

content
CheckPolicyRestrictionsContent

Parámetros de restricciones de directiva de comprobación.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a