app_management_policies
Creates, updates, deletes, gets or lists an app_management_policies resource.
Overview
| Name | app_management_policies |
| Type | Resource |
| Id | entra_id.service_principals.app_management_policies |
Fields
The following fields are returned by SELECT queries:
- get
- list
Retrieved navigation property
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for an entity. Read-only. |
appliesTo | array | Collection of applications and service principals to which the policy is applied. |
deletedDateTime | string (date-time) | Date and time when this object was deleted. Always null when the object hasn't been deleted. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
description | string | Description for this policy. Required. |
displayName | string | Display name for this policy. Required. |
isEnabled | boolean | Denotes whether the policy is enabled. |
restrictions | | Restrictions that apply to an application or service principal object. |
Retrieved collection
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for an entity. Read-only. |
appliesTo | array | Collection of applications and service principals to which the policy is applied. |
deletedDateTime | string (date-time) | Date and time when this object was deleted. Always null when the object hasn't been deleted. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$) |
description | string | Description for this policy. Required. |
displayName | string | Display name for this policy. Required. |
isEnabled | boolean | Denotes whether the policy is enabled. |
restrictions | | Restrictions that apply to an application or service principal object. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_principal_id, app_management_policy_id | The appManagementPolicy applied to this application. | |
list | select | service_principal_id | The appManagementPolicy applied to this application. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
app_management_policy_id | string | The unique identifier of appManagementPolicy |
service_principal_id | string | The unique identifier of servicePrincipal |
SELECT examples
- get
- list
The appManagementPolicy applied to this application.
SELECT
id,
appliesTo,
deletedDateTime,
description,
displayName,
isEnabled,
restrictions
FROM entra_id.service_principals.app_management_policies
WHERE service_principal_id = '{{ service_principal_id }}' -- required
AND app_management_policy_id = '{{ app_management_policy_id }}' -- required
;
The appManagementPolicy applied to this application.
SELECT
id,
appliesTo,
deletedDateTime,
description,
displayName,
isEnabled,
restrictions
FROM entra_id.service_principals.app_management_policies
WHERE service_principal_id = '{{ service_principal_id }}' -- required
;