How to Add Federated Credentials to an Existing App Registration Using Bicep?

Muhammad Ibrahim 0 Reputation points
2025-04-21T14:52:28.93+00:00

Hi,

I have manually created an App Registration in Azure Entra ID, and now I want to use Bicep to add federated credentials (for GitHub Actions) to it. Specifically, I want the Bicep script to reference the existing App Registration instead of creating a new one.

The problem I'm facing is that I can't find any official guidance or Bicep examples that show how to reference an existing App Registration and add federated credentials to it.

Could anyone provide an example or point me to documentation on how to:

  1. Reference an existing App Registration or creating new App Registration in Bicep.
  2. Add federated identity credentials to it (for GitHub Actions).

Thanks in advance!

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.