My Blog

Empowering developers since 2015. Real articles, real insights.
Cloud and DevOps solutions that will save you hours.

    How to Fix "The connection to the Cosmos DB database could not be made due to missing authorizations" in Azure AI Search

    When integrating Azure AI Search with Cosmos DB, you might encounter the following error:

    The connection to the Cosmos DB database '<the-name-of-the-database>' could not be made due to missing authorizations

    This error typically means that the Managed Identity used by your Azure AI Search service does not have the necessary data plane permissions on the Cosmos DB account.

    Read the complete article

    The correct syntax when using capturing groups in PowerShell

    When working with regular expressions in PowerShell, capturing groups allow you to extract specific parts of a matched pattern. However, there are two important syntax considerations when referencing these groups in your code.

    But first, let us understand what a capturing group is.

    Read the complete article

    Preserving Azure Key Vault access policies when recreating with Bicep

    While RBAC roles are the preferred access control method for Key Vaults, there are still projects where you need to work with access policies, where a Managed Identity is given specific permissions to the Key Vault.

    In the latter case, a common challenge arises when recreating a Key Vault with Bicep - you lose all existing access policies. This phenomenon is documented in this GitHub issue.

    In this article, you will find a simple trick to preserve and reapply them during deployment.

    Read the complete article

    How to reference a feature branch inside an Azure DevOps Pipeline

    When working with Azure Pipelines, you may need to access a repository and reference its code from a specific feature branch instead of the default branch. I am dealing with this scenario almost everyday and the most common case is testing changes made on a feature branch, before they’re merged to the main branch.

    Read the complete article

    How to solve the 403 Forbidden error from a Azure Function when it is called from a Logic App

    When calling an Azure Function from a Logic App, you might encounter a 403 Forbidden error with the response header x-ms-forbidden-ip. This happens when the Function’s networking rules block the IP address or the subnet of the Logic App.

    Read the complete article