Azure / Azure/bicep

deployer() function should include principal type in result

Open
#16,503 5 comments 9 reactions 0 assignees View on GitHub
enhancement Needs: Upvote
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**
Sometimes deployment (role assignment) stuck because ARM or Entra struggling to find the information about the principal (identity).
To avoid the issue, you should provide principalType.

**Describe the solution you'd like**
[deployer()](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-deployment) function should include principal type in result.

So it could be like
```json
{
"objectId": "",
"tenantId": "",
"type": "User"
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the deployer() function documentation linked in the issue and locate the implementation and tests for its returned object. Determine where the principal type would be sourced, then verify that the result includes a type value such as User alongside objectId and tenantId.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.