Microsoft.Authorization (stable:2016-04-01)

2025/12/05 • 13 new, 13 deleted methods

PolicyAssignments_Delete (new)
Description Deletes a policy assignment.
Reference Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_Create (new)
Description Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
parameters:
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_Get (new)
Description Gets a policy assignment.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_ListForResourceGroup (new)
Description Gets policy assignments for the resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments
{
resourceGroupName: string ,
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
]
,
nextLink: string ,
}
PolicyAssignments_ListForResource (new)
Description Gets policy assignments for a resource.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments
{
resourceGroupName: string ,
resourceProviderNamespace: string ,
parentResourcePath: string ,
resourceType: string ,
resourceName: string ,
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
]
,
nextLink: string ,
}
PolicyAssignments_List (new)
Description Gets all the policy assignments for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments
{
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
]
,
nextLink: string ,
}
PolicyAssignments_DeleteById (new)
Description When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
Reference Link ¶

⚼ Request

DELETE:  /{policyAssignmentId}
{
policyAssignmentId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_CreateById (new)
Description Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
Reference Link ¶

⚼ Request

PUT:  /{policyAssignmentId}
{
policyAssignmentId: string ,
parameters:
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_GetById (new)
Description When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
Reference Link ¶

⚼ Request

GET:  /{policyAssignmentId}
{
policyAssignmentId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyDefinitions_CreateOrUpdate (new)
Description Creates or updates a policy definition.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}
{
policyDefinitionName: string ,
parameters:
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
policyRule: object ,
}
,
id: string ,
name: string ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
policyRule: object ,
}
,
id: string ,
name: string ,
}
PolicyDefinitions_Delete (new)
Description Deletes a policy definition.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}
{
policyDefinitionName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}
PolicyDefinitions_Get (new)
Description Gets the policy definition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}
{
policyDefinitionName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
policyRule: object ,
}
,
id: string ,
name: string ,
}
PolicyDefinitions_List (new)
Description Gets all the policy definitions for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions
{
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
policyRule: object ,
}
,
id: string ,
name: string ,
}
,
]
,
nextLink: string ,
}
PolicyAssignments_Delete (removed)
Description Deletes a policy assignment.
Reference Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_Create (removed)
Description Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
parameters:
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_Get (removed)
Description Gets a policy assignment.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_ListForResourceGroup (removed)
Description Gets policy assignments for the resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments
{
resourceGroupName: string ,
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
]
,
nextLink: string ,
}
PolicyAssignments_ListForResource (removed)
Description Gets policy assignments for a resource.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments
{
resourceGroupName: string ,
resourceProviderNamespace: string ,
parentResourcePath: string ,
resourceType: string ,
resourceName: string ,
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
]
,
nextLink: string ,
}
PolicyAssignments_List (removed)
Description Gets all the policy assignments for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments
{
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
]
,
nextLink: string ,
}
PolicyAssignments_DeleteById (removed)
Description When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
Reference Link ¶

⚼ Request

DELETE:  /{policyAssignmentId}
{
policyAssignmentId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_CreateById (removed)
Description Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
Reference Link ¶

⚼ Request

PUT:  /{policyAssignmentId}
{
policyAssignmentId: string ,
parameters:
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyAssignments_GetById (removed)
Description When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
Reference Link ¶

⚼ Request

GET:  /{policyAssignmentId}
{
policyAssignmentId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
scope: string ,
}
,
id: string ,
type: string ,
name: string ,
}
PolicyDefinitions_CreateOrUpdate (removed)
Description Creates or updates a policy definition.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}
{
policyDefinitionName: string ,
parameters:
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
policyRule: object ,
}
,
id: string ,
name: string ,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
policyRule: object ,
}
,
id: string ,
name: string ,
}
PolicyDefinitions_Delete (removed)
Description Deletes a policy definition.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}
{
policyDefinitionName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}
PolicyDefinitions_Get (removed)
Description Gets the policy definition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}
{
policyDefinitionName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
policyRule: object ,
}
,
id: string ,
name: string ,
}
PolicyDefinitions_List (removed)
Description Gets all the policy definitions for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions
{
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
policyRule: object ,
}
,
id: string ,
name: string ,
}
,
]
,
nextLink: string ,
}