Microsoft.Authorization (preview:2020-07-01)

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

PolicyExemptions_Delete (new)
Description This operation deletes a policy exemption, given its name and the scope it was created in. The scope of a policy exemption is the part of its ID preceding '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'.
Reference Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}
{
scope: string ,
policyExemptionName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_CreateOrUpdate (new)
Description This operation creates or updates a policy exemption with the given scope and name. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or above level, the exemption exempts to all applicable resources in the resource group.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}
{
scope: string ,
policyExemptionName: string ,
api-version: string ,
parameters:
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}

⚐ Response (201)

{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_Get (new)
Description This operation retrieves a single policy exemption, given its name and the scope it was created at.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}
{
scope: string ,
policyExemptionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_List (new)
Description This operation retrieves the list of all policy exemptions associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_ListForResourceGroup (new)
Description This operation retrieves the list of all policy exemptions associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_ListForResource (new)
Description This operation retrieves the list of all policy exemptions associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_ListForManagementGroup (new)
Description This operation retrieves the list of all policy exemptions applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy exemptions that are assigned to the management group or the management group's ancestors.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyExemptions
{
managementGroupId: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_Delete (removed)
Description This operation deletes a policy exemption, given its name and the scope it was created in. The scope of a policy exemption is the part of its ID preceding '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'.
Reference Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}
{
scope: string ,
policyExemptionName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_CreateOrUpdate (removed)
Description This operation creates or updates a policy exemption with the given scope and name. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or above level, the exemption exempts to all applicable resources in the resource group.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}
{
scope: string ,
policyExemptionName: string ,
api-version: string ,
parameters:
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}

⚐ Response (201)

{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_Get (removed)
Description This operation retrieves a single policy exemption, given its name and the scope it was created at.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}
{
scope: string ,
policyExemptionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_List (removed)
Description This operation retrieves the list of all policy exemptions associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_ListForResourceGroup (removed)
Description This operation retrieves the list of all policy exemptions associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_ListForResource (removed)
Description This operation retrieves the list of all policy exemptions associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyExemptions_ListForManagementGroup (removed)
Description This operation retrieves the list of all policy exemptions applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy exemptions that are assigned to the management group or the management group's ancestors.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyExemptions
{
managementGroupId: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyAssignmentId: string ,
policyDefinitionReferenceIds:
[
string ,
]
,
exemptionCategory: enum ,
expiresOn: string ,
displayName: string ,
description: string ,
metadata: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}