Skip to content

Commit dc05c8e

Browse files
committed
update the deployer() function output
1 parent 145a045 commit dc05c8e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

articles/azure-resource-manager/bicep/bicep-functions-deployment.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep functions - deployment
33
description: Describes the functions to use in a Bicep file to retrieve deployment information.
44
ms.topic: reference
55
ms.custom: devx-track-bicep
6-
ms.date: 02/12/2025
6+
ms.date: 05/14/2025
77
---
88

99
# Deployment functions for Bicep
@@ -20,12 +20,13 @@ Namespace: [az](bicep-functions.md#namespaces-for-functions).
2020

2121
### Return value
2222

23-
This function returns the information about the current deployment principal, including tenant ID and object ID.
23+
This function returns the information about the current deployment principal, including tenant ID, object ID, and user principal name.
2424

2525
```json
2626
{
2727
"objectId": "",
28-
"tenantId": ""
28+
"tenantId": "",
29+
"userPrincipalName": ""
2930
}
3031
```
3132

@@ -42,7 +43,8 @@ The preceding example returns the following object:
4243
```json
4344
{
4445
"objectId":"aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb",
45-
"tenantId":"aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"
46+
"tenantId":"aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
47+
"userPrincipalName":"[email protected]"
4648
}
4749
```
4850

@@ -141,7 +143,7 @@ The preceding example returns the following object:
141143

142144
`environment()`
143145

144-
Returns information about the Azure environment used for deployment. The `environment()` function is not aware of resource configurations. It can only return a single default DNS suffix for each resource type.
146+
Returns information about the Azure environment used for deployment. The `environment()` function isn't aware of resource configurations. It can only return a single default DNS suffix for each resource type.
145147

146148
Namespace: [az](bicep-functions.md#namespaces-for-functions).
147149

0 commit comments

Comments
 (0)