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.

Continue reading Simplifying Azure Role Assignments with roleDefinitions() in Bicep

Azure Functions + Storage with Managed Identity via Bicep

Today I needed to migrate an Azure Functions project that used to connect to Azure Storage with a normal connection string. Since that’s prohibited by policy in my new Azure subscription, we needed to change that.

This also meant we needed to move the Function App to a dedicated plan since Managed Identity is not supported with Consumption or Elastic Premium plans.

Continue reading Azure Functions + Storage with Managed Identity via Bicep

Deploying OpenAI Models to Azure with Bicep

Deploying an Azure OpenAI Service with GPT Models is pretty straight forward. However, I ran into an issue where deploying two models at the same time resulted in the following error most of the time:

“Another operation is being performed on the parent resource ‘/subscriptions/xxxxxxxxxxxxxxxx/resourceGroups/openaibiceptest/providers/Microsoft.CognitiveServices/accounts/mlbiceptest’. Please try again later.”

Continue reading Deploying OpenAI Models to Azure with Bicep