Description | : This operation deletes a policy assignment, given its name and the scope it was created in. The scope of a policy assignment is the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. |
Reference | : Link ¶ |
⚼ Request
DELETE:
/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}
{
scope:
string
,
policyAssignmentName:
string
,
api-version:
string
,
}
⚐ Response (200)
{
properties:
{
,
displayName:
string
,
policyDefinitionId:
string
,
definitionVersion:
string
,
latestDefinitionVersion:
string
,
effectiveDefinitionVersion:
string
,
scope:
string
,
notScopes:
[
,
string
,
]
parameters:
object
,
description:
string
,
metadata:
object
,
enforcementMode:
enum
,
nonComplianceMessages:
[
]
,
{
,
message:
string
,
policyDefinitionReferenceId:
string
,
}
resourceSelectors:
[
]
,
{
,
name:
string
,
selectors:
}
[
]
,
{
,
kind:
enum
,
in:
[
,
string
,
]
notIn:
}
[
,
string
,
]
overrides:
[
]
,
{
,
kind:
enum
,
value:
string
,
selectors:
}
[
]
,
{
,
kind:
enum
,
in:
[
,
string
,
]
notIn:
}
[
,
string
,
]
assignmentType:
enum
,
instanceId:
string
,
}
id:
string
,
type:
string
,
name:
string
,
location:
string
,
identity:
{
,
principalId:
string
,
tenantId:
string
,
type:
enum
,
userAssignedIdentities:
object
,
}
systemData:
}
{
,
createdBy:
string
,
createdByType:
enum
,
createdAt:
string
,
lastModifiedBy:
string
,
lastModifiedByType:
enum
,
lastModifiedAt:
string
,
}
⚐ Response (204)
{}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}