Simplifying Azure Role Assignments with roleDefinitions() in Bicep

Previously in Azure Bicep, you had to use GUIDs for Role Assignments when referencing built-in roles (such as b24988ac-6180-42a0-ab88-20f7382dd24c for the Contributor role). This often made the code difficult to read and error-prone. And AI loves to invent GUIDs.

Thanks to a recent update (introduced in v0.42.1), Bicep now supports the roleDefinitions() function. This allows us to use readable role names for Built-in Roles.

Simplifying Azure Role Assignments with roleDefinitions() in Bicep weiterlesen