Blog
Entries

Home // Service Principale / Setting Up an ARM Service Connection : automatic implementation

Setting Up an ARM Service Connection for Azure DevOps with Workload Identity Federation : implemetation with terraform


Posted 01 January 2024
By Ramy RZEM 8 min read

Implementation automatic Workload Identity Federation 🔐

Choosing this feature is recommended if you have the required permissions.

Prerequisites

Before you start, ensure you have the following:

  • An Azure subscription and Azure Entra Id permissions.
  • An Azure DevOps organization.
  • Federation feature activated on Azure DevOps organization.
  • The necessary permissions to create service connections in Azure DevOps.
  • An Azure subscription access with the required permissions to configure identity federation.
  • Service Connection Name: You can put the name of you service-connection, depends on your name convention, it could have this kind of pattern : ProjetName-Environnement-TypeService-SC
  • Scope level: It depends on your needs of use, you can select Machine Learning Workspace or Management Group or extend to subscription level if needed.
  • Description: It's optional bu setting a description good for better visiblity which describe what the service connection is about on the quick review.
Finally you can use your service connection on your terraform code. **terraform code here ***

                            // Votre code ici
                            console.log('Hello, world!');
                                

Conclusion:

En conclusion, utiliser la fédération automatique avec Azure DevOps est fortement recommandé, à condition d'avoir les permissions nécessaires. Cela permet de simplifier les workflows tout en garantissant la sécurité et l'efficacité des projets. official Microsoft documentation.