Compartir a través de


PolicyAssignmentsOperationsExtensions.DeleteById Método

Definición

Elimina una asignación de directiva.

public static Microsoft.Azure.Management.ResourceManager.Models.PolicyAssignment DeleteById (this Microsoft.Azure.Management.ResourceManager.IPolicyAssignmentsOperations operations, string policyAssignmentId);
static member DeleteById : Microsoft.Azure.Management.ResourceManager.IPolicyAssignmentsOperations * string -> Microsoft.Azure.Management.ResourceManager.Models.PolicyAssignment
<Extension()>
Public Function DeleteById (operations As IPolicyAssignmentsOperations, policyAssignmentId As String) As PolicyAssignment

Parámetros

operations
IPolicyAssignmentsOperations

Grupo de operaciones para este método de extensión.

policyAssignmentId
String

Identificador de la asignación de directiva que se va a eliminar. Use el formato '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.

Devoluciones

Comentarios

Esta operación elimina la directiva con el identificador especificado. Los identificadores de asignación de directivas tienen este formato: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Los formatos válidos para {scope} son: '/providers/Microsoft.Management/managementGroups/{managementGroup}' (grupo de administración), '/subscriptions/{subscriptionId}' (subscription), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName }' (grupo de recursos) o '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (recurso).

Se aplica a