Simplify applications' permissionScopes (OAuth2 scopes) and appRoles updates via Bicep #197
Labels
bug
Something isn't working
enhancement
New feature or request
graph-platform
triaged
Team has triaged the item
Is your feature request related to a problem? Please describe.
Updating the permissionScopes or appRoles collections is extremely cumbersome on an application registration. We've seen multiple issues filed for this. While it does conform to desired state configuration, it's unintuitive that to remove a permission scope or app role record from the collection it cannot simply be removed from the Bicep file declaration and deployed. Instead it's a 2-step process where:
"isEnabled": false
), and the template deployedThis 2-step process is particularly cumbersome for any pipeline automations.
Describe the solution you'd like
Investigate whether the Graph Bicep extension layer can hide this complexity by offering a more straightforward desired state configuration solution. This solution would allow the template author to simply update the
permissionScopes
andappRoles
collections removing any records that the author no longer needs.Additional context
It's possible that this safeguard was originally introduced in the REST layer to prevent accidental deletion of records in these collections, for customers who might have expected these collections to have "append semantics". This doesn't seem as desirable in the Bicep layer.
The text was updated successfully, but these errors were encountered: