You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Describes the functions to use in a Bicep file to retrieve deployment information.
4
4
ms.topic: reference
5
5
ms.custom: devx-track-bicep
6
-
ms.date: 05/14/2025
6
+
ms.date: 05/16/2025
7
7
---
8
8
9
9
# Deployment functions for Bicep
@@ -14,19 +14,26 @@ This article describes the Bicep functions for getting values related to the cur
14
14
15
15
`deployer()`
16
16
17
-
Returns the information about the current deploymentprincipal.
17
+
Returns information about the principal (identity) that initiated the current deployment. The principal can be a user, service principal, or managed identity, depending on how the deployment was started.
@@ -38,7 +45,7 @@ The following example Bicep file returns the deployer object.
38
45
output deployer object = deployer()
39
46
```
40
47
41
-
The preceding example returns the following object:
48
+
Sample output (values differ based on your deployment):
42
49
43
50
```json
44
51
{
@@ -48,6 +55,8 @@ The preceding example returns the following object:
48
55
}
49
56
```
50
57
58
+
For more information about Azure identities, see [What is an Azure Active Directory identity?](/azure/active-directory/fundamentals/active-directory-whatis).
0 commit comments